The width and precision of print allow '*'
| 236 | |
| 237 | // The width and precision of print allow '*' |
| 238 | static int ParsePrintWidth(const char* format, int* value) |
| 239 | { |
| 240 | const char* f = format; |
| 241 | int n = ParseWidth(f, value); |
| 242 | if (n > 0) { |
| 243 | f += n; |
| 244 | } else if (*f == '*') { |
| 245 | *value = -'*'; |
| 246 | ++f; |
| 247 | } |
| 248 | return f - format; |
| 249 | } |
| 250 | |
| 251 | int PrintSpecification::Parse(const char* format) |
| 252 | { |