summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-16 00:27:51 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-16 00:32:49 +0300
commit2ed0917b4ee942ff55639500f846ae9cb4f48b90 (patch)
tree431158e61d703a747115088e1b084651c923e0dd /src/utils/stringutils.h
parent875ece90ff94c4cf295b53c8bb37d9238ece38e9 (diff)
downloadmanaverse-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.gz
manaverse-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.bz2
manaverse-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.xz
manaverse-2ed0917b4ee942ff55639500f846ae9cb4f48b90.zip
Fix some signed/unsigned chars issues.
Diffstat (limited to 'src/utils/stringutils.h')
-rw-r--r--src/utils/stringutils.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h
index 582f7f8ed..9355e1720 100644
--- a/src/utils/stringutils.h
+++ b/src/utils/stringutils.h
@@ -93,7 +93,7 @@ const char *ipToString(const int address);
/**
* A safe version of sprintf that returns a std::string of the result.
*/
-std::string strprintf(char const *const format, ...)
+std::string strprintf(const char *const format, ...)
#ifdef __GNUC__
/* This attribute is nice: it even works through gettext invokation. For
example, gcc will complain that strprintf(_("%s"), 42) is ill-formed. */
@@ -136,7 +136,7 @@ int compareStrI(const std::string &a, const std::string &b);
/**
* Tells wether the character is a word separator.
*/
-bool isWordSeparator(const char chr);
+bool isWordSeparator(const signed char chr);
size_t findI(std::string str, std::string subStr);
@@ -176,9 +176,11 @@ void replaceSpecialChars(std::string &text);
*/
std::string normalize(const std::string &name);
-std::set<int> splitToIntSet(const std::string &text, const char separator);
+std::set<int> splitToIntSet(const std::string &text,
+ const char separator);
-std::list<int> splitToIntList(const std::string &text, const char separator);
+std::list<int> splitToIntList(const std::string &text,
+ const char separator);
std::list<std::string> splitToStringList(const std::string &text,
const char separator);