diff options
author | megamage <none@none> | 2008-11-25 16:36:50 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-25 16:36:50 -0600 |
commit | f6ea784eda445794bf99ba2b9f97012ea4009f59 (patch) | |
tree | 97ed434b569dd1194854908cd3fe67a9129a5e8b /src/shared/Util.h | |
parent | 52f2e35d65af17abfd9499232398bab338db78e1 (diff) |
*Update to Mangos 6848. Source: Mangos.
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Util.h')
-rw-r--r-- | src/shared/Util.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/shared/Util.h b/src/shared/Util.h index 690f1ec0ac0..44c0dda8370 100644 --- a/src/shared/Util.h +++ b/src/shared/Util.h @@ -172,9 +172,19 @@ inline bool isEastAsianCharacter(wchar_t wchar) return false; } +inline bool isNumeric(wchar_t wchar) +{ + return (wchar >= L'0' && wchar <=L'9'); +} + +inline bool isNumeric(char c) +{ + return (c >= '0' && c <='9'); +} + inline bool isNumericOrSpace(wchar_t wchar) { - return (wchar >= L'0' && wchar <=L'9') || wchar == L' '; + return isNumeric(wchar) || wchar == L' '; } inline bool isBasicLatinString(std::wstring wstr, bool numericOrSpace) |