mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +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
@@ -27,7 +27,7 @@ bool Function::BaseNameCompliant(const char * baseName, NameNotCompliantError *
|
||||
while (c != UCodePointNull) {
|
||||
// FIXME '_' should be accepted but not as first character
|
||||
// TODO Factor this piece of code with similar one in the Parser
|
||||
if (!(c.isLetter() || c.isDecimalDigit()) || c == '_') {
|
||||
if (!(c.isDecimalDigit()) || c.isLatinLetter() || c == '_') {
|
||||
if (error != nullptr) {
|
||||
*error = NameNotCompliantError::CharacterNotAllowed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user