+ if (version[2].empty ())
+ return;
+ case 3:
+ if (version[2].find_first_not_of (digits) != string::npos
+ || version[1].empty ())
+ return;
+ patch_ = String_convert::dec2int (version[2]);
+ case 2:
+ if (version[1].find_first_not_of (digits) != string::npos
+ || version[1].empty () || version[0].empty ())
+ return;
+ minor_ = String_convert::dec2int (version[1]);
+ if (version[0].find_first_not_of (digits) != string::npos)
+ return;
+ major_ = String_convert::dec2int (version[0]);
+ }