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

Method toWideString

src/SFML/System/String.cpp:266–276  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

264
265////////////////////////////////////////////////////////////
266std::wstring String::toWideString(std::optional<wchar_t> replacement) const
267{
268 // Prepare the output string
269 std::wstring output;
270 output.reserve(m_string.length() + 1);
271
272 // Convert
273 Utf32::toWide(m_string.begin(), m_string.end(), std::back_inserter(output), replacement);
274
275 return output;
276}
277
278
279////////////////////////////////////////////////////////////

Callers 2

String.test.cppFile · 0.80
getRecordsFunction · 0.80

Calls 3

lengthMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected