diff options
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, |