Linus Groh
6e7459322d
AK: Remove StringBuilder::build() in favor of to_deprecated_string()
...
Having an alias function that only wraps another one is silly, and
keeping the more obvious name should flush out more uses of deprecated
strings.
No behavior change.
2023-01-27 20:38:49 +00:00
Peter Elliott
b217045f8f
AK: Don't write trailing zeros with %g
2023-01-19 12:22:24 +01:00
Linus Groh
6e19ab2bbc
AK+Everywhere: Rename String to DeprecatedString
...
We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
2022-12-06 08:54:33 +01:00
Matthias Zimmerman
c10d48b72c
AK/ByteBuffer+Everywhere: Handle errors in ByteBuffer::slice()
2022-06-13 15:38:51 +01:00
Tim Schumacher
66170ff632
Tests: Add a test for printf truncation
2022-04-14 03:12:56 +04:30
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Peter Ross
34108547b6
AK: Print NaN and infinite numbers in PrintfImplementation
2022-03-02 11:40:37 +01:00
Peter Ross
6c06b70911
LibC: Set PRI[xX]8/PRI[xX]16 macros to x
and X
...
Described in:
<https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/
inttypes.h.html>
The macros were first added in a7a456002e
,
but it is not clear why the PRIx16/32 macros were defined as 'b' & 'w'.
PrintfImplementation was never able to parse these values.
2022-03-02 11:40:37 +01:00
Timur Sultanov
ffbd630ca6
AK: Add tests for integer values formatting in printf
2022-02-28 14:08:24 +01:00
Ali Mohammad Pur
97e97bccab
Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe
2021-09-06 01:53:26 +02:00
Andrew Kaster
b3e3e4d45d
Tests: Convert remaining LibC tests to LibTest
...
Convert them to using outln instead of printf at the same time.
2021-09-01 13:44:24 +02:00