MCPcopy Create free account
hub / github.com/catboost/catboost / WriteString

Function WriteString

library/cpp/containers/cow_string/output.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9template <typename TCharType>
10static void WriteString(IOutputStream& o, const TCharType* w, size_t n) {
11 const size_t buflen = (n * MAX_UTF8_BYTES); // * 4 because the conversion functions can convert unicode character into maximum 4 bytes of UTF8
12 TTempBuf buffer(buflen + 1);
13 size_t written = 0;
14 WideToUTF8(w, n, buffer.Data(), written);
15 o.Write(buffer.Data(), written);
16}
17
18template <>
19void Out<TCowString>(IOutputStream& o, const TCowString& p) {

Callers 10

Out<TUtf16CowString>Function · 0.70
Out<TUtf32CowString>Function · 0.70
OnStringMethod · 0.50
OnMapKeyMethod · 0.50
WriteStringMethod · 0.50
WriteFloatImplMethod · 0.50
WriteJsonValueMethod · 0.50
WriteStringMethod · 0.50
WriteFloatImplMethod · 0.50
WriteJsonValueMethod · 0.50

Calls 3

WideToUTF8Function · 0.85
DataMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected