MCPcopy Create free account
hub / github.com/SaschaWillems/HowToVulkan / parseReal

Function parseReal

source/external/tinyobj/tiny_obj_loader.h:1041–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041static inline real_t parseReal(const char **token, double default_value = 0.0) {
1042 (*token) += strspn((*token), " \t");
1043 const char *end = (*token) + strcspn((*token), " \t\r");
1044 double val = default_value;
1045 tryParseDouble((*token), end, &val);
1046 real_t f = static_cast<real_t>(val);
1047 (*token) = end;
1048 return f;
1049}
1050
1051static inline bool parseReal(const char **token, real_t *out) {
1052 (*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