Andrew Kaster
64aac345d3
AK: Use new Formatter for each element in Formatter<Vector<T>>
...
The state of the formatter for the previous element should be thrown
away for each iteration. This showed up when trying to format a
Vector<String>, since Formatter<StringView> was unhappy about some state
that gets set when it's called. Add a test for Formatter<Vector>.
2021-07-19 05:17:05 +04:30
Timothy Flynn
06ddfcde89
AK: Allow setting both width and precision when formatting a string
2021-07-18 02:57:49 +02:00
Gunnar Beutner
3bbe86d8ea
Everywhere: Prefer using "..."sv over StringView { "..." }
2021-07-04 14:24:03 +02:00
Idan Horowitz
5e53a690ac
AK: Add support for keeping trailing zeros in fixed precision floats
...
This uses the same syntax as zero padding integers:
String::formatted("{:0.5}", 1.234) => "1.23400"
2021-06-19 16:13:59 +01:00
Ali Mohammad Pur
ac6a3d068d
AK: Add some tests for hexdump formatting
2021-06-17 18:44:00 +04:30
Ali Mohammad Pur
944855ca18
AK+Everywhere: Fix compiletime format parsing of replacement fields
2021-06-01 23:12:17 +04:30
Brian Gianforcaro
67322b0702
Tests: Move AK tests to Tests/AK
2021-05-06 17:54:28 +02:00