diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-17 12:46:01 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-17 12:46:01 (GMT) |
commit | 603b36a2ccfb6f825dff7259c4d5397c896cc08e (patch) | |
tree | 2f720700b903f95cef1bda6fff45a4d35d563886 /src/FbTk/StringUtil.hh | |
parent | 041d586972db4da170123f5468d7b11d4eda8ae5 (diff) | |
download | fluxbox_pavel-603b36a2ccfb6f825dff7259c4d5397c896cc08e.zip fluxbox_pavel-603b36a2ccfb6f825dff7259c4d5397c896cc08e.tar.bz2 |
use FbTk::API to reduce code duplication
Diffstat (limited to 'src/FbTk/StringUtil.hh')
-rw-r--r-- | src/FbTk/StringUtil.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh index a16e709..9e45460 100644 --- a/src/FbTk/StringUtil.hh +++ b/src/FbTk/StringUtil.hh | |||
@@ -36,10 +36,14 @@ namespace StringUtil { | |||
36 | /// @return 1 - ok, result stored in 'out' | 36 | /// @return 1 - ok, result stored in 'out' |
37 | int extractNumber(const std::string& in, unsigned int& out); | 37 | int extractNumber(const std::string& in, unsigned int& out); |
38 | int extractNumber(const std::string& in, int& out); | 38 | int extractNumber(const std::string& in, int& out); |
39 | int extractNumber(const std::string& in, unsigned long& out); | ||
40 | int extractNumber(const std::string& in, long& out); | ||
41 | int extractNumber(const std::string& in, long long& out); | ||
42 | int extractNumber(const std::string& in, unsigned long& out); | ||
39 | /// \@} | 43 | /// \@} |
40 | 44 | ||
41 | /// creates a number to a string | 45 | /// creates a number to a string |
42 | std::string number2String(int num); | 46 | std::string number2String(long long num); |
43 | 47 | ||
44 | /// Similar to `strstr' but this function ignores the case of both strings | 48 | /// Similar to `strstr' but this function ignores the case of both strings |
45 | const char *strcasestr(const char *str, const char *ptn); | 49 | const char *strcasestr(const char *str, const char *ptn); |