diff options
author | fluxgen <fluxgen> | 2003-08-22 19:37:07 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-22 19:37:07 (GMT) |
commit | 6ec807a118c0c2ffede19ae93255fd221a0f99f9 (patch) | |
tree | 0cd26e67aa93d99192f502d89bb12521692bf172 /src | |
parent | f9058a548028f7505022b56b260342bef75daaff (diff) | |
download | fluxbox_lack-6ec807a118c0c2ffede19ae93255fd221a0f99f9.zip fluxbox_lack-6ec807a118c0c2ffede19ae93255fd221a0f99f9.tar.bz2 |
cleaning, added toUpper
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/StringUtil.hh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh index 1439308..0c798ee 100644 --- a/src/FbTk/StringUtil.hh +++ b/src/FbTk/StringUtil.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | //$Id: StringUtil.hh,v 1.3 2003/07/01 01:49:13 rathnor Exp $ | 22 | //$Id: StringUtil.hh,v 1.4 2003/08/22 19:37:07 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_STRINGUTIL_HH | 24 | #ifndef FBTK_STRINGUTIL_HH |
25 | #define FBTK_STRINGUTIL_HH | 25 | #define FBTK_STRINGUTIL_HH |
@@ -37,17 +37,18 @@ const char *strcasestr(const char *str, const char *ptn); | |||
37 | 37 | ||
38 | /// expands ~ to value of ${HOME} enviroment variable | 38 | /// expands ~ to value of ${HOME} enviroment variable |
39 | std::string expandFilename(const std::string &filename); | 39 | std::string expandFilename(const std::string &filename); |
40 | /// @return extension of filename (ex: filename.txt will return txt) | ||
41 | std::string findExtension(const std::string &filename); | ||
40 | 42 | ||
41 | /// returns string between character first and last | 43 | /// returns string between character first and last |
42 | int getStringBetween(std::string& out, const char *instr, | 44 | int getStringBetween(std::string& out, const char *instr, |
43 | char first, char last, | 45 | char first, char last, |
44 | const char *ok_chars=" \t\n", bool allow_nesting = false); | 46 | const char *ok_chars=" \t\n", bool allow_nesting = false); |
45 | 47 | ||
46 | /// converts a string to lover case | 48 | /// @return lower case letters of conv |
47 | void toLower(char * const conv); | ||
48 | |||
49 | std::string toLower(const std::string &conv); | 49 | std::string toLower(const std::string &conv); |
50 | 50 | /// @return upper case letters of conv | |
51 | std::string toUpper(const std::string &conv); | ||
51 | 52 | ||
52 | /// Breaks a string into tokens | 53 | /// Breaks a string into tokens |
53 | template <typename Container> | 54 | template <typename Container> |