mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +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
11 changed files with 40 additions and 34 deletions
|
@ -95,6 +95,8 @@ public:
|
|||
|
||||
ByteBuffer to_byte_buffer() const;
|
||||
|
||||
static String format(const char*, ...);
|
||||
|
||||
private:
|
||||
RetainPtr<StringImpl> m_impl;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue