MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / insert_codepoints

Function insert_codepoints

library/strings.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99UString insert_codepoints(const UStringView str, size_t offset, const UStringView insert)
100{
101 auto u32str = to_u32string(str);
102 auto u32insert = to_u32string(insert);
103 u32str.insert(offset, u32insert);
104 return to_ustring(u32str);
105}
106
107int Strings::toInteger(const UStringView s)
108{

Callers 1

test_insertFunction · 0.85

Calls 3

to_u32stringFunction · 0.85
to_ustringFunction · 0.85
insertMethod · 0.80

Tested by 1

test_insertFunction · 0.68