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

Function CanonicalToString

library/cpp/yt/string/unittests/guid_ut.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13static_assert(CFormattable<TGuid>);
14
15std::string CanonicalToString(TGuid value)
16{
17 return Sprintf("%x-%x-%x-%x",
18 value.Parts32[3],
19 value.Parts32[2],
20 value.Parts32[1],
21 value.Parts32[0]);
22}
23
24const ui32 TrickyValues[] = {
25 0, 0x1, 0x12, 0x123, 0x1234, 0x12345, 0x123456, 0x1234567, 0x12345678

Callers 1

TESTFunction · 0.85

Calls 1

SprintfFunction · 0.85

Tested by

no test coverage detected