Use templates to reduce the redundant number-lexing functions (#1963)

This commit is contained in:
Rangi
2026-05-21 23:13:09 +02:00
committed by GitHub
parent 1871b0a0b8
commit 48fcd9a0ca
8 changed files with 121 additions and 216 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ size_t FormatSpec::parseSpec(char const *spec) {
padZero = true;
}
// <width>
if (isDigit(spec[i])) {
if (isDigit<10>(spec[i])) {
width = parseSpecNumber();
}
// <frac>