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

Function IsInfinity

catboost/libs/helpers/memory_utils.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25bool IsInfinity(const TStringBuf value) {
26 static const TStringBuf examples[] = {
27 "",
28 "no", "none",
29 "off",
30 "inf", "infinity",
31 "unlim", "unlimited"
32 };
33 for (const auto example : examples) {
34 if (example == value) {
35 return true;
36 }
37 }
38
39 return false;
40}
41
42ui64 ParseMemorySizeDescription(const TStringBuf description) {
43 char* suffixBegin = nullptr;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected