You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #81639 from MJacred/is_letter
Add `is_valid_letter()` to `TextServer`
This commit is contained in:
@@ -7342,6 +7342,16 @@ bool TextServerAdvanced::_is_valid_identifier(const String &p_string) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TextServerAdvanced::_is_valid_letter(char32_t p_unicode) const {
|
||||
#ifndef ICU_STATIC_DATA
|
||||
if (!icu_data_loaded) {
|
||||
return TextServer::is_valid_letter(p_unicode);
|
||||
}
|
||||
#endif
|
||||
|
||||
return u_isalpha(p_unicode);
|
||||
}
|
||||
|
||||
TextServerAdvanced::TextServerAdvanced() {
|
||||
_insert_num_systems_lang();
|
||||
_insert_feature_sets();
|
||||
|
||||
Reference in New Issue
Block a user