diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-22 12:53:28 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-22 12:53:28 +0200 |
| commit | 659cf339bc365d596e7b9279552231fbb673b53c (patch) | |
| tree | 4e8e9502b5391a6c49b145c8825ff242b7a9223c /core/string | |
| parent | 8931a3ec1471c8a42c36d902dffc31492f4c54c6 (diff) | |
| parent | b1f5e9fe3a0a8b8f99518eea0b39ea1625e4f657 (diff) | |
| download | redot-engine-659cf339bc365d596e7b9279552231fbb673b53c.tar.gz | |
Merge pull request #90931 from aaronfranke/is-ascii-alphabet-char
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; } |
