omni::extras::stringToVersionOrDefault

Defined in omni/extras/Version.h

inline SemanticVersion omni::extras::stringToVersionOrDefault(const std::string &str)

Parses a string to a semantic version, or a default value if parsing fails.

Parameters

str – The string to parse

Returns

a SemanticVersion parsed from str, or SemanticVersion::getDefault() if parsing fails