diff options
author | fluxgen <fluxgen> | 2005-10-20 14:48:53 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2005-10-20 14:48:53 (GMT) |
commit | a9f9e6d6eec6a42921e4446baef92eb5b2356d60 (patch) | |
tree | 98ae1484d46074cf61469284acad18f5f90350f4 /src/FbTk/StringUtil.hh | |
parent | 4dec832b6bcef0503ac092a8cfdc370ab65f8f8f (diff) | |
download | fluxbox-a9f9e6d6eec6a42921e4446baef92eb5b2356d60.zip fluxbox-a9f9e6d6eec6a42921e4446baef92eb5b2356d60.tar.bz2 |
added replaceString
Diffstat (limited to 'src/FbTk/StringUtil.hh')
-rw-r--r-- | src/FbTk/StringUtil.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh index 3112a9d..b79b46a 100644 --- a/src/FbTk/StringUtil.hh +++ b/src/FbTk/StringUtil.hh | |||
@@ -41,6 +41,11 @@ std::string expandFilename(const std::string &filename); | |||
41 | /// @return extension of filename (ex: filename.txt will return txt) | 41 | /// @return extension of filename (ex: filename.txt will return txt) |
42 | std::string findExtension(const std::string &filename); | 42 | std::string findExtension(const std::string &filename); |
43 | 43 | ||
44 | /// @return copy of original with find_string replaced with "replace" | ||
45 | std::string replaceString(const std::string &original, | ||
46 | const char *find_string, | ||
47 | const char *replace); | ||
48 | |||
44 | /// returns string between character first and last | 49 | /// returns string between character first and last |
45 | int getStringBetween(std::string& out, const char *instr, | 50 | int getStringBetween(std::string& out, const char *instr, |
46 | char first, char last, | 51 | char first, char last, |