summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-22 19:37:07 (GMT)
committerfluxgen <fluxgen>2003-08-22 19:37:07 (GMT)
commit6ec807a118c0c2ffede19ae93255fd221a0f99f9 (patch)
tree0cd26e67aa93d99192f502d89bb12521692bf172 /src/FbTk
parentf9058a548028f7505022b56b260342bef75daaff (diff)
downloadfluxbox_lack-6ec807a118c0c2ffede19ae93255fd221a0f99f9.zip
fluxbox_lack-6ec807a118c0c2ffede19ae93255fd221a0f99f9.tar.bz2
cleaning, added toUpper
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/StringUtil.hh11
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
39std::string expandFilename(const std::string &filename); 39std::string expandFilename(const std::string &filename);
40/// @return extension of filename (ex: filename.txt will return txt)
41std::string findExtension(const std::string &filename);
40 42
41/// returns string between character first and last 43/// returns string between character first and last
42int getStringBetween(std::string& out, const char *instr, 44int 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
47void toLower(char * const conv);
48
49std::string toLower(const std::string &conv); 49std::string toLower(const std::string &conv);
50 50/// @return upper case letters of conv
51std::string toUpper(const std::string &conv);
51 52
52/// Breaks a string into tokens 53/// Breaks a string into tokens
53template <typename Container> 54template <typename Container>