aboutsummaryrefslogtreecommitdiff
path: root/src/common/StringUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/StringUtil.cpp')
-rw-r--r--src/common/StringUtil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/StringUtil.cpp b/src/common/StringUtil.cpp
index 04435a0a..1f5f6150 100644
--- a/src/common/StringUtil.cpp
+++ b/src/common/StringUtil.cpp
@@ -258,6 +258,8 @@ bool IsWhitespace(char16_t c) {
return c == u' ' || c == u'\t' || c == u'\n' || c == u'\r';
}
+bool IsDigit(char16_t c) { return c >= u'0' && c <= u'9'; }
+
Utf8CodePointIterator CreateUtf8Iterator(const std::byte* buffer, Index size) {
return Utf8CodePointIterator(reinterpret_cast<const char*>(buffer), size);
}