AK: Allow the kernel to have access to StringBuilder::to_string

This is mostly to prevent String.h from acquiring ifdef-soup. In any
case, it's fine for the kernel to see this symbol as it is fallible.
This commit is contained in:
Timothy Flynn 2023-01-27 14:53:04 -05:00 committed by Linus Groh
parent 0d722b4111
commit 79aaa2fe0f
Notes: sideshowbarker 2024-07-17 01:04:42 +09:00

View file

@ -63,9 +63,10 @@ public:
#ifndef KERNEL
[[nodiscard]] DeprecatedString to_deprecated_string() const;
ErrorOr<String> to_string() const;
#endif
ErrorOr<String> to_string() const;
[[nodiscard]] ByteBuffer to_byte_buffer() const;
[[nodiscard]] StringView string_view() const;