MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteAltEncoding

Method WriteAltEncoding

Source/cmGeneratedFileStream.cxx:243–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void cmGeneratedFileStream::WriteAltEncoding(std::string const& data,
244 Encoding encoding)
245{
246#ifndef CMAKE_BOOTSTRAP
247 std::locale prevLocale =
248 this->imbue(std::locale(this->getloc(), new codecvt(encoding)));
249 this->write(data.data(), data.size());
250 this->imbue(prevLocale);
251#else
252 static_cast<void>(encoding);
253 this->write(data.data(), data.size());
254#endif
255}

Callers 1

GenerateMethod · 0.80

Calls 3

writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected