ladybird/Applications/HexEditor
asynts 7c2cd81edb AK+Format: Exclude prefix from width calculation.
When we write the format specifier '{:#08x}' we are asking for eight
significant digits, zero padding and the prefix '0x'.

However, previously we got only six significant digits because the
prefix counted towards the width. (The number '8' here is the total
width and not the number of significant digits.)

Both fmtlib and printf shared this behaviour. However, I am introducing
a special case here because when we do zero padding we really only care
about the digits and not the width.

Notice that zero padding is a special case anyways, because zero padding
goes after the prefix as opposed to any other padding which goes before
it.
2020-10-06 15:28:39 +02:00
..
CMakeLists.txt Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
HexEditor.cpp AK+Format: Exclude prefix from width calculation. 2020-10-06 15:28:39 +02:00
HexEditor.h HexEditor: Use widget override cursors 2020-09-11 14:37:30 +02:00
HexEditorWidget.cpp AK+Format: Exclude prefix from width calculation. 2020-10-06 15:28:39 +02:00
HexEditorWidget.h AK: Rename FileSystemPath -> LexicalPath 2020-05-26 14:35:10 +02:00
main.cpp Applications: Stop setting initial window location 2020-08-01 08:06:48 +02:00