MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / parseReal

Function parseReal

engine/3rdparty/tinyobjloader/tiny_obj_loader.h:998–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996}
997
998static inline real_t parseReal(const char **token, double default_value = 0.0) {
999 (*token) += strspn((*token), " \t");
1000 const char *end = (*token) + strcspn((*token), " \t\r");
1001 double val = default_value;
1002 tryParseDouble((*token), end, &val);
1003 real_t f = static_cast<real_t>(val);
1004 (*token) = end;
1005 return f;
1006}
1007
1008static inline bool parseReal(const char **token, real_t *out) {
1009 (*token) += strspn((*token), " \t");

Callers 8

parseReal2Function · 0.85
parseReal3Function · 0.85
parseVFunction · 0.85
parseVertexWithColorFunction · 0.85
LoadMtlFunction · 0.85
LoadObjFunction · 0.85
LoadObjWithCallbackFunction · 0.85

Calls 1

tryParseDoubleFunction · 0.70

Tested by

no test coverage detected