diff options
author | rathnor <rathnor> | 2003-07-01 01:49:13 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-01 01:49:13 (GMT) |
commit | 015c61ede0661fe4e563052b4d8418ac6223e843 (patch) | |
tree | b5c5051cf3bd594ebbb9bb977ff09af308ea9b00 /src/FbTk | |
parent | 17665c37f7a19cf21526bc1ff1654d26446956a2 (diff) | |
download | fluxbox_lack-015c61ede0661fe4e563052b4d8418ac6223e843.zip fluxbox_lack-015c61ede0661fe4e563052b4d8418ac6223e843.tar.bz2 |
make it work... (fix some small issues)
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/StringUtil.cc | 9 | ||||
-rw-r--r-- | src/FbTk/StringUtil.hh | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/FbTk/StringUtil.cc b/src/FbTk/StringUtil.cc index 5d6c742..761014f 100644 --- a/src/FbTk/StringUtil.cc +++ b/src/FbTk/StringUtil.cc | |||
@@ -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.cc,v 1.2 2003/06/12 15:14:02 rathnor Exp $ | 22 | // $Id: StringUtil.cc,v 1.3 2003/07/01 01:49:13 rathnor Exp $ |
23 | 23 | ||
24 | #include "StringUtil.hh" | 24 | #include "StringUtil.hh" |
25 | 25 | ||
@@ -152,6 +152,13 @@ void toLower(char * const conv) { | |||
152 | conv[byte_pos] = tolower(conv[byte_pos]); | 152 | conv[byte_pos] = tolower(conv[byte_pos]); |
153 | } | 153 | } |
154 | 154 | ||
155 | std::string toLower(const std::string &conv) { | ||
156 | char ret_str[conv.size()+1]; | ||
157 | ::strcpy(ret_str, conv.c_str()); | ||
158 | toLower(ret_str); | ||
159 | return ret_str; | ||
160 | } | ||
161 | |||
155 | }; // end namespace StringUtil | 162 | }; // end namespace StringUtil |
156 | 163 | ||
157 | }; // end namespace FbTk | 164 | }; // end namespace FbTk |
diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh index b193d66..1439308 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.2 2003/06/12 15:14:03 rathnor Exp $ | 22 | //$Id: StringUtil.hh,v 1.3 2003/07/01 01:49:13 rathnor Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_STRINGUTIL_HH | 24 | #ifndef FBTK_STRINGUTIL_HH |
25 | #define FBTK_STRINGUTIL_HH | 25 | #define FBTK_STRINGUTIL_HH |
@@ -46,6 +46,8 @@ int getStringBetween(std::string& out, const char *instr, | |||
46 | /// converts a string to lover case | 46 | /// converts a string to lover case |
47 | void toLower(char * const conv); | 47 | void toLower(char * const conv); |
48 | 48 | ||
49 | std::string toLower(const std::string &conv); | ||
50 | |||
49 | 51 | ||
50 | /// Breaks a string into tokens | 52 | /// Breaks a string into tokens |
51 | template <typename Container> | 53 | template <typename Container> |