You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Remove String clipping constructors.
Callers should instead call constructors with explicit encoding names, with known length `Span`.
This commit is contained in:
@@ -182,7 +182,7 @@ Error GDScriptTokenizerBuffer::set_code_buffer(const Vector<uint8_t> &p_buffer)
|
||||
cs.write[j] = decode_uint32(tmp);
|
||||
}
|
||||
|
||||
String s(reinterpret_cast<const char32_t *>(cs.ptr()), len);
|
||||
String s = String::utf32(Span(reinterpret_cast<const char32_t *>(cs.ptr()), len));
|
||||
b += len * 4;
|
||||
total_len -= len * 4;
|
||||
identifiers.write[i] = s;
|
||||
|
||||
Reference in New Issue
Block a user