Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/string_utils.cpp')
-rw-r--r--base/string_utils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/string_utils.cpp b/base/string_utils.cpp
index 5f26059688..da13ecb282 100644
--- a/base/string_utils.cpp
+++ b/base/string_utils.cpp
@@ -220,6 +220,10 @@ bool IsASCIIString(string const & str)
return true;
}
+bool IsASCIIDigit(UniChar c) { return c >= '0' && c <= '9'; }
+
+bool IsASCIILatin(UniChar c) { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); }
+
bool StartsWith(UniString const & s, UniString const & p)
{
if (p.size() > s.size())