| 15 | |
| 16 | |
| 17 | int readInt(const char* str, int & number) |
| 18 | { |
| 19 | number = 0; |
| 20 | int read = 0; |
| 21 | char c; |
| 22 | while (isdigit(c = *str++)) |
| 23 | { |
| 24 | number = 10 * number + (c - '0'); |
| 25 | read++; |
| 26 | } |
| 27 | |
| 28 | return read; |
| 29 | } |
| 30 | |
| 31 | void parseFormat(std::ostream & stream, const char * & format) |
| 32 | { |