[ion/unicode/codepoint] Rename is[(Lower|Upper)Case]Letter to isLatin[(Small|Capital)]Letter

to conform with unicode terminology
This commit is contained in:
Ruben Dashyan
2020-01-27 16:37:01 +01:00
committed by Léa Saviot
parent 575b911da9
commit 179ce5d5d5
5 changed files with 14 additions and 14 deletions

View File

@@ -48,7 +48,7 @@ bool Script::nameCompliant(const char * name) {
* problems with case sensitivity. */
UTF8Decoder decoder(name);
CodePoint c = decoder.nextCodePoint();
if (c == UCodePointNull || !(c.isLowerCaseLetter() || c == '_' || c == '.')) {
if (c == UCodePointNull || !(c.isLatinSmallLetter() || c == '_' || c == '.')) {
/* The name cannot be empty. Its first letter must be in [a-z_] or the
* extension dot. */
return false;
@@ -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.isDecimalDigit())) {
if (!(c.isLatinSmallLetter() || c == '_' || c.isDecimalDigit())) {
return false;
}
c = decoder.nextCodePoint();