diff options
author | Adam <Adam@anope.org> | 2013-04-07 23:46:44 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-07 23:46:44 -0500 |
commit | fb7fef7a849342ab8463743497e781c5c3e6ae88 (patch) | |
tree | 5d230a68b6eed70c7b4f718410dd62fea779654c /src/misc.cpp | |
parent | 36602224b8b1a11326a224779d16bcb12f0ed532 (diff) |
Optimizations of much of the more commonly used code
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index ad8512c56..20a53e7cc 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -406,7 +406,7 @@ bool Anope::Match(const Anope::string &str, const Anope::string &mask, bool case } else { - if (tolower(wild) != tolower(string) && wild != '?') + if (Anope::tolower(wild) != Anope::tolower(string) && wild != '?') return false; } @@ -441,7 +441,7 @@ bool Anope::Match(const Anope::string &str, const Anope::string &mask, bool case } else { - if (tolower(wild) == tolower(string) || wild == '?') + if (Anope::tolower(wild) == Anope::tolower(string) || wild == '?') { ++m; ++s; @@ -529,7 +529,7 @@ void Anope::Unhex(const Anope::string &src, Anope::string &dest) Anope::string rv; for (size_t i = 0; i + 1 < len; i += 2) { - char h = std::tolower(src[i], Anope::casemap), l = std::tolower(src[i + 1], Anope::casemap); + char h = Anope::tolower(src[i]), l = Anope::tolower(src[i + 1]); unsigned char byte = (h >= 'a' ? h - 'a' + 10 : h - '0') << 4; byte += (l >= 'a' ? l - 'a' + 10 : l - '0'); rv += byte; |