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

Function ParsePrintWidth

base/string/format/specification.cpp:238–249  ·  view source on GitHub ↗

The width and precision of print allow '*'

Source from the content-addressed store, hash-verified

236
237// The width and precision of print allow '*'
238static 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
251int PrintSpecification::Parse(const char* format)
252{

Callers 1

ParseMethod · 0.85

Calls 1

ParseWidthFunction · 0.85

Tested by

no test coverage detected