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

Function ParseNameValuePair

src/apps/ocioconvert/main.cpp:689–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687// return true on success.
688
689bool ParseNameValuePair(std::string& name,
690 std::string& value,
691 const std::string& input)
692{
693 // split string into name=value.
694 size_t pos = input.find('=');
695 if (pos==std::string::npos)
696 {
697 return false;
698 }
699
700 name = input.substr(0,pos);
701 value = input.substr(pos+1);
702 return true;
703}
704
705// return true on success.
706bool StringToFloat(float * fval, const char * str)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected