| 188 | } |
| 189 | |
| 190 | int ScanSpecification::Parse(const char* format) |
| 191 | { |
| 192 | const char* f = format; |
| 193 | if (*f == '*') { |
| 194 | ++f; |
| 195 | this->skip = true; |
| 196 | } |
| 197 | |
| 198 | f += ParseWidth(f, &this->width); |
| 199 | f += ParseLength(f, &this->length); |
| 200 | |
| 201 | int this_width = ParseScanSpecifier(f, this); |
| 202 | if (this_width == 0) |
| 203 | return 0; |
| 204 | f += this_width; |
| 205 | |
| 206 | return f - format; |
| 207 | } |
| 208 | |
| 209 | static int ParseFlags(const char* format, PrintSpecification::Flags* flags) |
| 210 | { |
nothing calls this directly
no test coverage detected