diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2024-04-20 02:36:41 -0700 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2024-04-20 02:36:41 -0700 |
commit | b1f5e9fe3a0a8b8f99518eea0b39ea1625e4f657 (patch) | |
tree | aceadf0996ca8360679d9f13abae01a8bf138824 /core/string | |
parent | 4a0160241fd0c1e874e297f6b08676cf0761e5e8 (diff) | |
download | redot-engine-b1f5e9fe3a0a8b8f99518eea0b39ea1625e4f657.tar.gz |
Rename internal is_ascii_char to is_ascii_alphabet_char
Diffstat (limited to 'core/string')
-rw-r--r-- | core/string/char_utils.h | 2 | ||||
-rw-r--r-- | core/string/translation.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/string/char_utils.h b/core/string/char_utils.h index aa9bc198ca..fc2fbb95a1 100644 --- a/core/string/char_utils.h +++ b/core/string/char_utils.h @@ -92,7 +92,7 @@ static _FORCE_INLINE_ bool is_binary_digit(char32_t c) { return (c == '0' || c == '1'); } -static _FORCE_INLINE_ bool is_ascii_char(char32_t c) { +static _FORCE_INLINE_ bool is_ascii_alphabet_char(char32_t c) { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); } diff --git a/core/string/translation.cpp b/core/string/translation.cpp index 613edd11cd..344fe42fa0 100644 --- a/core/string/translation.cpp +++ b/core/string/translation.cpp @@ -993,7 +993,7 @@ String TranslationServer::add_padding(const String &p_message, int p_length) con } const char32_t *TranslationServer::get_accented_version(char32_t p_character) const { - if (!is_ascii_char(p_character)) { + if (!is_ascii_alphabet_char(p_character)) { return nullptr; } |