+ major_ = 0;
+ minor_ = 0;
+ patch_ = 0;
+
+ vector<string> version;
+ version = string_split (str, '.');
+
+ if (version.size () > 0 && isdigit (version[0][0]))
+ major_ = String_convert::dec2int (version[0]);
+ if (version.size () > 1 && isdigit (version[1][0]))
+ minor_ = String_convert::dec2int (version[1]);