MCPcopy Create free account
hub / github.com/Siv3D/OpenSiv3D / parseReal

Function parseReal

Siv3D/src/ThirdParty/tinyobjloader/tiny_obj_loader.h:967–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967static inline real_t parseReal(const char **token, double default_value = 0.0) {
968 (*token) += strspn((*token), " \t");
969 const char *end = (*token) + strcspn((*token), " \t\r");
970 double val = default_value;
971 tryParseDouble((*token), end, &val);
972 real_t f = static_cast<real_t>(val);
973 (*token) = end;
974 return f;
975}
976
977static inline bool parseReal(const char **token, real_t *out) {
978 (*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.85

Tested by

no test coverage detected