summaryrefslogtreecommitdiffstats
path: root/core/string
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2024-04-20 02:36:41 -0700
committerAaron Franke <arnfranke@yahoo.com>2024-04-20 02:36:41 -0700
commitb1f5e9fe3a0a8b8f99518eea0b39ea1625e4f657 (patch)
treeaceadf0996ca8360679d9f13abae01a8bf138824 /core/string
parent4a0160241fd0c1e874e297f6b08676cf0761e5e8 (diff)
downloadredot-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.h2
-rw-r--r--core/string/translation.cpp2
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;
}