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

Method toUtf8

src/SFML/System/String.cpp:280–290  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

278
279////////////////////////////////////////////////////////////
280U8String String::toUtf8(std::optional<std::uint8_t> replacement) const
281{
282 // Prepare the output string
283 U8String output;
284 output.reserve(m_string.length());
285
286 // Convert
287 Utf32::toUtf8(m_string.begin(), m_string.end(), std::back_inserter(output), replacement);
288
289 return output;
290}
291
292
293////////////////////////////////////////////////////////////

Callers 5

Clipboard.test.cppFile · 0.80
String.test.cppFile · 0.80
setTitleMethod · 0.80
processEventMethod · 0.80
setupTlsMethod · 0.80

Calls 3

lengthMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected