diff --git a/src/common/str_utils.hpp b/src/common/str_utils.hpp index 7b1f0288cc..a822d17525 100644 --- a/src/common/str_utils.hpp +++ b/src/common/str_utils.hpp @@ -6,6 +6,7 @@ #include #include #include +#include "../lang/string_view_utf8.hpp" inline constexpr char CHAR_SPACE = ' '; inline constexpr char CHAR_NBSP = '\xA0'; /// Non Breaking Space @@ -384,6 +385,8 @@ class StringBuilder { void append_string(const char *str); + void append_string_view(string_view_utf8 str); + /// Appends text to the builder, using vsnprintf under the hood. void __attribute__((format(__printf__, 2, 3))) append_printf(const char *fmt, ...);