MCPcopy Create free account
hub / github.com/SFML/SFML / toUtf16

Method toUtf16

src/SFML/System/String.cpp:294–304  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

292
293////////////////////////////////////////////////////////////
294std::u16string String::toUtf16(std::optional<std::uint16_t> replacement) const
295{
296 // Prepare the output string
297 std::u16string output;
298 output.reserve(m_string.length());
299
300 // Convert
301 Utf32::toUtf16(m_string.begin(), m_string.end(), std::back_inserter(output), replacement);
302
303 return output;
304}
305
306
307////////////////////////////////////////////////////////////

Callers 4

String.test.cppFile · 0.80
setStringMethod · 0.80
WindowImplWin32Method · 0.80
setTitleMethod · 0.80

Calls 3

lengthMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected