| 209 | } |
| 210 | |
| 211 | void CommandLineArguments::setRepeatCount(int ac, const char *const *av, int& i) |
| 212 | { |
| 213 | repeat_ = 0; |
| 214 | |
| 215 | SimpleString repeatParameter(av[i]); |
| 216 | if (repeatParameter.size() > 2) repeat_ = (size_t) (SimpleString::AtoI(av[i] + 2)); |
| 217 | else if (i + 1 < ac) { |
| 218 | repeat_ = (size_t) (SimpleString::AtoI(av[i + 1])); |
| 219 | if (repeat_ != 0) i++; |
| 220 | } |
| 221 | |
| 222 | if (0 == repeat_) repeat_ = 2; |
| 223 | |
| 224 | } |
| 225 | |
| 226 | bool CommandLineArguments::setShuffle(int ac, const char * const *av, int& i) |
| 227 | { |