[TextServer] Expose ICU title case string conversion to scripting.
This commit is contained in:
parent
f47f4a02c8
commit
27f6f4147b
10 changed files with 66 additions and 0 deletions
|
|
@ -4439,6 +4439,10 @@ String TextServerFallback::_string_to_lower(const String &p_string, const String
|
|||
return p_string.to_lower();
|
||||
}
|
||||
|
||||
String TextServerFallback::_string_to_title(const String &p_string, const String &p_language) const {
|
||||
return p_string.capitalize();
|
||||
}
|
||||
|
||||
PackedInt32Array TextServerFallback::_string_get_word_breaks(const String &p_string, const String &p_language, int64_t p_chars_per_line) const {
|
||||
PackedInt32Array ret;
|
||||
|
||||
|
|
|
|||
|
|
@ -848,6 +848,7 @@ public:
|
|||
|
||||
MODBIND2RC(String, string_to_upper, const String &, const String &);
|
||||
MODBIND2RC(String, string_to_lower, const String &, const String &);
|
||||
MODBIND2RC(String, string_to_title, const String &, const String &);
|
||||
|
||||
MODBIND0(cleanup);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue