summaryrefslogtreecommitdiff
path: root/AK/StringBuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/StringBuilder.h')
-rw-r--r--AK/StringBuilder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/AK/StringBuilder.h b/AK/StringBuilder.h
index c7e81e8625..6abf6d99a2 100644
--- a/AK/StringBuilder.h
+++ b/AK/StringBuilder.h
@@ -22,7 +22,9 @@ public:
~StringBuilder() = default;
ErrorOr<void> try_append(StringView);
+#ifndef KERNEL
ErrorOr<void> try_append(Utf16View const&);
+#endif
ErrorOr<void> try_append(Utf32View const&);
ErrorOr<void> try_append_code_point(u32);
ErrorOr<void> try_append(char);
@@ -35,7 +37,9 @@ public:
ErrorOr<void> try_append(char const*, size_t);
void append(StringView);
+#ifndef KERNEL
void append(Utf16View const&);
+#endif
void append(Utf32View const&);
void append(char);
void append_code_point(u32);
@@ -52,8 +56,10 @@ public:
MUST(vformat(*this, fmtstr.view(), variadic_format_params));
}
+#ifndef KERNEL
[[nodiscard]] String build() const;
[[nodiscard]] String to_string() const;
+#endif
[[nodiscard]] ByteBuffer to_byte_buffer() const;
[[nodiscard]] StringView string_view() const;