diff options
author | markt <markt> | 2007-12-14 20:05:14 (GMT) |
---|---|---|
committer | markt <markt> | 2007-12-14 20:05:14 (GMT) |
commit | d90befb43007274c03fb1783b3236072120e78e1 (patch) | |
tree | ab8adc830da61a6dc0ea56fee0e463634427650d /src/FbTk/StringUtil.hh | |
parent | 254fb289f318eaedbfe8e3dff4454afd0f66e868 (diff) | |
download | fluxbox-d90befb43007274c03fb1783b3236072120e78e1.zip fluxbox-d90befb43007274c03fb1783b3236072120e78e1.tar.bz2 |
StringUtil::removeFirst/TrailingWhitespace didn't truncate a string that was only whitespace
Diffstat (limited to 'src/FbTk/StringUtil.hh')
-rw-r--r-- | src/FbTk/StringUtil.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh index 7f0cf54..d3c131e 100644 --- a/src/FbTk/StringUtil.hh +++ b/src/FbTk/StringUtil.hh | |||
@@ -64,7 +64,7 @@ std::string basename(const std::string &basename); | |||
64 | std::string::size_type removeFirstWhitespace(std::string &str); | 64 | std::string::size_type removeFirstWhitespace(std::string &str); |
65 | std::string::size_type removeTrailingWhitespace(std::string &str); | 65 | std::string::size_type removeTrailingWhitespace(std::string &str); |
66 | 66 | ||
67 | /// removes the first part of a string and returns the two pieces | 67 | /// splits input at first non-leading whitespace and returns both parts |
68 | void getFirstWord(const std::string &in, std::string &first, std::string &rest); | 68 | void getFirstWord(const std::string &in, std::string &first, std::string &rest); |
69 | 69 | ||
70 | /// Breaks a string into tokens | 70 | /// Breaks a string into tokens |