Simplify format specs to not use a per-character state machine

This commit is contained in:
Rangi42
2025-08-30 12:23:01 -04:00
parent 531278961f
commit 0ccdbf509a
6 changed files with 90 additions and 151 deletions

View File

@@ -1,8 +1,8 @@
+42 %d
$2a %x
42 %4d
42 %f
42.00000 %16f %16f
+42 %++d
$2a %##x
42 %--4d
42 %..f
42.00000 %q.16f %qq16f
42 42
2a 2a
hello

View File

@@ -8,5 +8,5 @@ void are 0
3.141586304 ~ three
1 -> 1.235 -> 1.23456
1 eol %
invalid % spec
invalid %w spec
one=1 two=% three=%