1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix CharPointer_UTF8::isWhitespace() when encountering ideographic whitespace

This commit is contained in:
attila 2021-12-07 11:29:42 +01:00
parent 1a8fb3e540
commit f052e1becb

View file

@ -449,7 +449,7 @@ public:
}
/** Returns true if the first character of this string is whitespace. */
bool isWhitespace() const noexcept { const CharType c = *data; return c == ' ' || (c <= 13 && c >= 9); }
bool isWhitespace() const noexcept { return CharacterFunctions::isWhitespace ((juce_wchar) *(*this)); }
/** Returns true if the first character of this string is a digit. */
bool isDigit() const noexcept { const CharType c = *data; return c >= '0' && c <= '9'; }
/** Returns true if the first character of this string is a letter. */