This function is rarely used, so don't add another function pointer to reduce performance of most common case.
| 405 | // This function is rarely used, so don't add another function pointer to |
| 406 | // reduce performance of most common case. |
| 407 | bool 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 |
no test coverage detected