diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-12-09 12:55:49 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-09 12:55:49 -0700 |
commit | 9587aa47d1c5584d3582828a2f53b374d49dd702 (patch) | |
tree | 6267ef69d4a2da0755c2664512c0d8bb18fed6f4 /src/utils/string.hpp | |
parent | ace44b8fa60b713eeae029afefd15bcdca51ecd6 (diff) | |
download | manaserv-9587aa47d1c5584d3582828a2f53b374d49dd702.tar.gz manaserv-9587aa47d1c5584d3582828a2f53b374d49dd702.tar.bz2 manaserv-9587aa47d1c5584d3582828a2f53b374d49dd702.tar.xz manaserv-9587aa47d1c5584d3582828a2f53b374d49dd702.zip |
Fix detecting collision layer for maps
Diffstat (limited to 'src/utils/string.hpp')
-rw-r--r-- | src/utils/string.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/string.hpp b/src/utils/string.hpp index 448376f2..5d494b70 100644 --- a/src/utils/string.hpp +++ b/src/utils/string.hpp @@ -28,6 +28,16 @@ namespace utils std::string toupper(std::string); bool isNumeric(const std::string &); int stringToInt(const std::string &); + + /** + * Compares the two strings case-insensitively. + * + * @param a the first string in the comparison + * @param b the second string in the comparison + * @return 0 if the strings are equal, positive if the first is greater, + * negative if the second is greater + */ + int compareStrI(const std::string &a, const std::string &b); } #endif // UTILS_STRING_HPP |