You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
[TextServer] Expose ICU title case string conversion to scripting.
This commit is contained in:
@@ -341,6 +341,7 @@ void TextServerExtension::_bind_methods() {
|
||||
|
||||
GDVIRTUAL_BIND(_string_to_upper, "string", "language");
|
||||
GDVIRTUAL_BIND(_string_to_lower, "string", "language");
|
||||
GDVIRTUAL_BIND(_string_to_title, "string", "language");
|
||||
|
||||
GDVIRTUAL_BIND(_parse_structured_text, "parser_type", "args", "text");
|
||||
|
||||
@@ -1507,6 +1508,14 @@ String TextServerExtension::string_to_upper(const String &p_string, const String
|
||||
return p_string;
|
||||
}
|
||||
|
||||
String TextServerExtension::string_to_title(const String &p_string, const String &p_language) const {
|
||||
String ret;
|
||||
if (GDVIRTUAL_CALL(_string_to_title, p_string, p_language, ret)) {
|
||||
return ret;
|
||||
}
|
||||
return p_string;
|
||||
}
|
||||
|
||||
String TextServerExtension::string_to_lower(const String &p_string, const String &p_language) const {
|
||||
String ret;
|
||||
if (GDVIRTUAL_CALL(_string_to_lower, p_string, p_language, ret)) {
|
||||
|
||||
Reference in New Issue
Block a user