mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
[ion/unicode/codepoint] Rename is[(Lower|Upper)Case]Letter to isLatin[(Small|Capital)]Letter
to conform with unicode terminology
This commit is contained in:
committed by
Léa Saviot
parent
575b911da9
commit
179ce5d5d5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user