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

Method AsUuidString

util/generic/guid.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27TString TGUID::AsUuidString() const {
28 TStringBuilder s;
29 s.reserve(50);
30 s << Hex(dw[0], HF_FULL) << '-';
31 s << Hex(static_cast<ui16>(dw[1] >> 16), HF_FULL) << '-' << Hex(static_cast<ui16>(dw[1]), HF_FULL) << '-';
32 s << Hex(static_cast<ui16>(dw[2] >> 16), HF_FULL) << '-' << Hex(static_cast<ui16>(dw[2]), HF_FULL);
33 s << Hex(dw[3], HF_FULL);
34 LowerCaseHex(s);
35 return std::move(s);
36}
37
38TGUID TGUID::Create() {
39 TGUID result;

Callers 1

Y_UNIT_TESTFunction · 0.80

Calls 4

LowerCaseHexFunction · 0.85
HexFunction · 0.50
moveFunction · 0.50
reserveMethod · 0.45

Tested by

no test coverage detected