You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Inline String::utf8 and String::utf16 for their simplicity.
This commit is contained in:
@@ -1790,13 +1790,6 @@ Error String::append_ascii(const Span<char> &p_range) {
|
||||
return decode_failed ? ERR_INVALID_DATA : OK;
|
||||
}
|
||||
|
||||
String String::utf8(const char *p_utf8, int p_len) {
|
||||
String ret;
|
||||
ret.append_utf8(p_utf8, p_len);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Error String::append_utf8(const char *p_utf8, int p_len, bool p_skip_cr) {
|
||||
if (!p_utf8) {
|
||||
return ERR_INVALID_DATA;
|
||||
@@ -2066,13 +2059,6 @@ CharString String::utf8(Vector<uint8_t> *r_ch_length_map) const {
|
||||
return utf8s;
|
||||
}
|
||||
|
||||
String String::utf16(const char16_t *p_utf16, int p_len) {
|
||||
String ret;
|
||||
ret.append_utf16(p_utf16, p_len, true);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Error String::append_utf16(const char16_t *p_utf16, int p_len, bool p_default_little_endian) {
|
||||
if (!p_utf16) {
|
||||
return ERR_INVALID_DATA;
|
||||
|
||||
Reference in New Issue
Block a user