diff options
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r-- | include/hashcomp.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h index 8fb76bcd0..b99b97aa4 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -162,6 +162,12 @@ namespace irc * @return Pointer to the first occurance of c in s1 */ static const char *find(const char *s1, int n, char c); + + /** Convert a char to lowercase + * @param c1 The character to convert + * @return The lowercase version of the char + */ + static const char chartolower(char c1); }; /** This typedef declares irc::string based upon irc_char_traits. @@ -233,6 +239,12 @@ namespace ci * @return Pointer to the first occurance of c in s1 */ static const char *find(const char *s1, int n, char c); + + /** Convert a char to lowercase + * @param c1 The character to convert + * @return The lowercase version of the char + */ + static const char chartolower(char c1); }; /** This typedef declares ci::string based upon ci_char_traits. @@ -259,6 +271,17 @@ namespace ci namespace std { + /** The std_char_traits class is used for normal comparison of strings. + */ + struct CoreExport std_char_traits : char_traits<char> + { + /** Convert a char to lowercase + * @param c1 The character to convert + * @return The lowercase version of the char + */ + static const char chartolower(char c1); + }; + /** An overload for std::equal_to<ci::string> that uses Anope::string, passed for the fourth temmplate * argument for unordered_map */ |