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

Function ParseBool

library/cpp/yt/string/string.cpp:334–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334bool ParseBool(TStringBuf value)
335{
336 bool result;
337 if (!TryParseBool(value, &result)) {
338 throw TSimpleException(Format("Error parsing boolean value %Qv",
339 value));
340 }
341 return result;
342}
343
344TStringBuf FormatBool(bool value)
345{

Callers

nothing calls this directly

Calls 3

TryParseBoolFunction · 0.85
TSimpleExceptionClass · 0.85
FormatFunction · 0.70

Tested by

no test coverage detected