| 23 | } |
| 24 | |
| 25 | bool 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 | |
| 42 | ui64 ParseMemorySizeDescription(const TStringBuf description) { |
| 43 | char* suffixBegin = nullptr; |
no outgoing calls
no test coverage detected