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

Function DoubleVecToString

src/OpenColorIO/ParseUtils.cpp:611–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611std::string DoubleVecToString(const double * val, unsigned int size)
612{
613 if (size <= 0) return "";
614
615 std::ostringstream pretty;
616 pretty.imbue(std::locale::classic());
617 pretty.precision(DOUBLE_DECIMALS);
618 for (unsigned int i = 0; i<size; ++i)
619 {
620 if (i != 0) pretty << " ";
621 pretty << val[i];
622 }
623
624 return pretty.str();
625}
626
627bool StringVecToFloatVec(std::vector<float> &floatArray, const StringUtils::StringVec &lineParts)
628{

Callers 1

WriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected