aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/StringUtil.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2005-10-20 14:48:53 (GMT)
committerfluxgen <fluxgen>2005-10-20 14:48:53 (GMT)
commita9f9e6d6eec6a42921e4446baef92eb5b2356d60 (patch)
tree98ae1484d46074cf61469284acad18f5f90350f4 /src/FbTk/StringUtil.hh
parent4dec832b6bcef0503ac092a8cfdc370ab65f8f8f (diff)
downloadfluxbox-a9f9e6d6eec6a42921e4446baef92eb5b2356d60.zip
fluxbox-a9f9e6d6eec6a42921e4446baef92eb5b2356d60.tar.bz2
added replaceString
Diffstat (limited to 'src/FbTk/StringUtil.hh')
-rw-r--r--src/FbTk/StringUtil.hh5
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)
42std::string findExtension(const std::string &filename); 42std::string findExtension(const std::string &filename);
43 43
44/// @return copy of original with find_string replaced with "replace"
45std::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
45int getStringBetween(std::string& out, const char *instr, 50int getStringBetween(std::string& out, const char *instr,
46 char first, char last, 51 char first, char last,