aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/String.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/common/String.h')
-rw-r--r--include/cru/common/String.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/common/String.h b/include/cru/common/String.h
index 2156f060..5d9fc549 100644
--- a/include/cru/common/String.h
+++ b/include/cru/common/String.h
@@ -35,9 +35,11 @@ class CRU_BASE_API String {
public:
static String FromUtf8(const char* str);
static String FromUtf8(const char* str, Index size);
+ static String FromUtf8(const std::byte* str, Index size);
static String FromUtf8(std::string_view str) {
return FromUtf8(str.data(), str.size());
}
+ static String FromUtf8(const Buffer& buffer);
static String FromUtf16(const char16_t* str) { return String(str); }
static String FromUtf16(const char16_t* str, Index size) {