renamed char_* functions
This commit is contained in:
@@ -117,7 +117,7 @@ u32 str_hash32(const str s){
|
||||
str str_toUpper(const str src){
|
||||
str r = str_copy(src);
|
||||
for (u32 i = 0; i < r.size; i++){
|
||||
if(isAlphabeticalLower(r.data[i]))
|
||||
if(char_isLatinLower(r.data[i]))
|
||||
r.data[i] = r.data[i] - 'a' + 'A';
|
||||
}
|
||||
return r;
|
||||
@@ -126,7 +126,7 @@ str str_toUpper(const str src){
|
||||
str str_toLower(const str src){
|
||||
str r = str_copy(src);
|
||||
for (u32 i = 0; i < r.size; i++){
|
||||
if(isAlphabeticalUpper(r.data[i]))
|
||||
if(char_isLatinUpper(r.data[i]))
|
||||
r.data[i] = r.data[i] - 'A' + 'a';
|
||||
}
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user