[ion/unicode] Split isDigit into isDecimalDigit, isBinaryDigit, isHexadecimalDigit

This commit is contained in:
Ruben Dashyan
2020-01-27 15:16:05 +01:00
committed by Léa Saviot
parent d48a882f04
commit 575b911da9
4 changed files with 17 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ bool Script::nameCompliant(const char * name) {
if (c == '.' && strcmp(decoder.stringPosition(), ScriptStore::k_scriptExtension) == 0) {
return true;
}
if (!(c.isLowerCaseLetter() || c == '_' || c.isDigit())) {
if (!(c.isLowerCaseLetter() || c == '_' || c.isDecimalDigit())) {
return false;
}
c = decoder.nextCodePoint();