mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
Add a String::format() and use that in place of ksprintf() in the Kernel.
You're never gonna be right 100% of the time when guessing how much buffer space you need. This avoids having to make that type of decision in a bunch of cases. :^)
This commit is contained in:
parent
e9b948103d
commit
027d26cd5d
Notes:
sideshowbarker
2024-07-19 15:55:19 +09:00
Author: https://github.com/awesomekling
Commit: 027d26cd5d
11 changed files with 40 additions and 34 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "AKString.h"
|
||||
#include "Vector.h"
|
||||
#include <LibC/stdarg.h>
|
||||
|
||||
namespace AK {
|
||||
|
||||
|
@ -14,6 +15,7 @@ public:
|
|||
void append(char);
|
||||
void append(const char*, size_t);
|
||||
void appendf(const char*, ...);
|
||||
void appendvf(const char*, va_list);
|
||||
|
||||
String build();
|
||||
ByteBuffer to_byte_buffer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue