mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-05 23:07:42 -05:00
Remove String clipping constructors.
Callers should instead call constructors with explicit encoding names, with known length `Span`.
This commit is contained in:
@@ -59,7 +59,7 @@ TEST_CASE("[String] Assign from Latin-1 char string (copycon)") {
|
||||
const String &t1(s);
|
||||
CHECK(u32scmp(t1.get_data(), U"Sheep") == 0);
|
||||
|
||||
String t2 = String("Sheep", 3);
|
||||
String t2 = String::latin1(Span("Sheep", 3));
|
||||
CHECK(u32scmp(t2.get_data(), U"She") == 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user