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

Function to_u32string

library/strings.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16U32String to_u32string(const UStringView str)
17{
18 // FIXME: Boost api doesn't work with string views yet?
19 auto string_copy = UString(str);
20 return boost::locale::conv::utf_to_utf<char32_t>(string_copy);
21}
22
23UString to_ustring(const std::u32string_view str)
24{

Callers 11

removeFunction · 0.85
insert_codepointsFunction · 0.85
getStringMethod · 0.85
getFontWidthMethod · 0.85
TextEditMethod · 0.85
eventOccuredMethod · 0.85
setTextMethod · 0.85
setAllowedCharactersMethod · 0.85
configureSelfFromXmlMethod · 0.85
test_32_8_roundtripFunction · 0.85
testMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_32_8_roundtripFunction · 0.68
testMethod · 0.68