MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / StringToInt

Function StringToInt

src/OpenColorIO/ParseUtils.cpp:590–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590bool StringToInt(int * ival, const char * str, bool failIfLeftoverChars)
591{
592 if(!str) return false;
593 if(!ival) return false;
594
595 std::istringstream i(str);
596 i.imbue(std::locale::classic());
597 char c=0;
598 if (!(i >> *ival) || (failIfLeftoverChars && i.get(c))) return false;
599 return true;
600}
601
602std::string DoubleToString(double value)
603{

Callers 11

StringVecToIntVecFunction · 0.70
GetCDLFunction · 0.50
readMethod · 0.50
readMethod · 0.50
readMethod · 0.50
buildFileOpsMethod · 0.50
readMethod · 0.50
readMethod · 0.50
buildFileOpsMethod · 0.50
readMethod · 0.50
readMethod · 0.50

Calls 1

getMethod · 0.45

Tested by

no test coverage detected