omni::extras::stringToVersion
Defined in omni/extras/Version.h
- 
inline bool omni::extras::stringToVersion(const std::string &str, SemanticVersion &outVersion)
- Parses a given string into a semantic version. - Parameters
- str – The string to parse into a semantic version, as described by SemanticVersion::toString() 
- outVersion – A reference that will receive the semantic version. If - falseis returned, this reference will be in an indeterminate state.
 
- Returns
- trueif parsing succeeded and- outVersionhas received the parsed semantic version;- falseif parsing failed and- outVersionis in an indeterminate state and should not be used