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

Function IsHexNumberT

util/string/type.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template <typename TStringType>
36static bool IsHexNumberT(const TStringType& s) noexcept {
37 if (s.empty()) {
38 return false;
39 }
40
41 return std::all_of(s.begin(), s.end(), IsAsciiHex<typename TStringType::value_type>);
42}
43
44bool IsHexNumber(const TStringBuf s) noexcept {
45 return IsHexNumberT(s);

Callers 1

IsHexNumberFunction · 0.85

Calls 4

all_ofFunction · 0.50
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected