MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / atot

Function atot

native/thirdpart/flatbuffers/idl_parser.cpp:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205template<typename T> CheckedError atot(const char *s, Parser &parser, T *val) {
206 auto done = atot_scalar(s, val, bool_constant<is_floating_point<T>::value>());
207 if (done) return NoError();
208 if (0 == *val)
209 return parser.Error("invalid number: \"" + std::string(s) + "\"");
210 else
211 return parser.Error("invalid number: \"" + std::string(s) + "\"" +
212 ", constant does not fit " + TypeToIntervalString<T>());
213}
214template<>
215inline CheckedError atot<Offset<void>>(const char *s, Parser &parser,
216 Offset<void> *val) {

Callers 4

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

Calls 3

atot_scalarFunction · 0.85
NoErrorFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected