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

Function atot

contrib/libs/flatbuffers/src/idl_parser.cpp:114–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113template<typename T>
114static CheckedError atot(const char *s, Parser &parser, T *val) {
115 auto done = atot_scalar(s, val, bool_constant<is_floating_point<T>::value>());
116 if (done) return NoError();
117 if (0 == *val)
118 return parser.Error("invalid number: \"" + std::string(s) + "\"");
119 else
120 return parser.Error("invalid number: \"" + std::string(s) + "\"" +
121 ", constant does not fit " + TypeToIntervalString<T>());
122}
123template<>
124CheckedError atot<Offset<void>>(const char *s, Parser &parser,
125 Offset<void> *val) {

Callers 5

ParseFieldMethod · 0.85
ParseAnyValueMethod · 0.85
ParseTableMethod · 0.85
ParseFunctionMethod · 0.85
ParseDeclMethod · 0.85

Calls 4

atot_scalarFunction · 0.85
NoErrorFunction · 0.85
stringClass · 0.50
ErrorMethod · 0.45

Tested by

no test coverage detected