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
false
is returned, this reference will be in an indeterminate state.
- Returns
true
if parsing succeeded andoutVersion
has received the parsed semantic version;false
if parsing failed andoutVersion
is in an indeterminate state and should not be used