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

Function RangeOk

util/string/ascii.h:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44 template <class T>
45 bool RangeOk(T c) noexcept {
46 static_assert(std::is_integral<T>::value, "Integral type character expected");
47
48 if (sizeof(T) == 1) {
49 return true;
50 }
51
52 return c >= static_cast<T>(0) && c <= static_cast<T>(127);
53 }
54
55#ifndef TSTRING_IS_STD_STRING
56 template <class String>

Callers 8

IsAsciiSpaceFunction · 0.85
IsAsciiUpperFunction · 0.85
IsAsciiLowerFunction · 0.85
IsAsciiDigitFunction · 0.85
IsAsciiAlphaFunction · 0.85
IsAsciiAlnumFunction · 0.85
IsAsciiHexFunction · 0.85
IsAsciiPunctFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected