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

Method WriteInt

base/string/format/scan_arg.cpp:407–415  ·  view source on GitHub ↗

This function is rarely used, so don't add another function pointer to reduce performance of most common case.

Source from the content-addressed store, hash-verified

405// This function is rarely used, so don't add another function pointer to
406// reduce performance of most common case.
407bool FormatScanArg::WriteInt(int n, const ScanSpecification& spec) const
408{
409 char buf[16];
410 IntegerToString(n, buf);
411
412 ScanSpecification new_spec(spec);
413 new_spec.specifier = 'd';
414 return Parse(buf, new_spec) > 0;
415}
416
417} // namespace toft

Callers 1

StringVScanFunction · 0.80

Calls 1

IntegerToStringFunction · 0.85

Tested by

no test coverage detected