MCPcopy Create free account
hub / github.com/chen3feng/toft / Parse

Method Parse

base/string/format/specification.cpp:190–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190int 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
209static int ParseFlags(const char* format, PrintSpecification::Flags* flags)
210{

Callers

nothing calls this directly

Calls 6

ParseWidthFunction · 0.85
ParseLengthFunction · 0.85
ParseScanSpecifierFunction · 0.85
ParseFlagsFunction · 0.85
ParsePrintWidthFunction · 0.85
ParsePrintSpecifierFunction · 0.85

Tested by

no test coverage detected