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

Method toAnsiString

src/SFML/System/String.cpp:252–262  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

250
251////////////////////////////////////////////////////////////
252std::string String::toAnsiString(const std::locale& locale, std::optional<char> replacement) const
253{
254 // Prepare the output string
255 std::string output;
256 output.reserve(m_string.length() + 1);
257
258 // Convert
259 Utf32::toAnsi(m_string.begin(), m_string.end(), std::back_inserter(output), replacement, locale);
260
261 return output;
262}
263
264
265////////////////////////////////////////////////////////////

Callers 15

String.test.cppFile · 0.80
SystemUtil.cppFile · 0.80
getErrorStringFunction · 0.80
openDInputMethod · 0.80
WindowImplX11Method · 0.80
setTitleMethod · 0.80
processEventMethod · 0.80
loadSystemCertificatesFunction · 0.80
encodeHostnameFunction · 0.80
resolveMethod · 0.80
queryNsMethod · 0.80
queryMxMethod · 0.80

Calls 3

lengthMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected