diff options
author | crupest <crupest@outlook.com> | 2022-01-18 22:40:39 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-18 22:40:39 +0800 |
commit | bc37fdb4b746ce0f5f5c49ad9779464acb488284 (patch) | |
tree | 53aa5b98ebba25016be1ec74a2ff161a70de4762 /src/common/StringUtil.cpp | |
parent | d28248cc4ccb1a1d81f0d82b8317767f4e2bff44 (diff) | |
download | cru-bc37fdb4b746ce0f5f5c49ad9779464acb488284.tar.gz cru-bc37fdb4b746ce0f5f5c49ad9779464acb488284.tar.bz2 cru-bc37fdb4b746ce0f5f5c49ad9779464acb488284.zip |
...
Diffstat (limited to 'src/common/StringUtil.cpp')
-rw-r--r-- | src/common/StringUtil.cpp | 2 |
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); } |