diff options
author | crupest <crupest@outlook.com> | 2024-06-10 13:40:32 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-06-10 13:40:32 +0800 |
commit | 633c77d7cd2dd5cd22018aca17da1490e34d94ec (patch) | |
tree | ac007e9c84dbf662662f8b2ff06c2321945d2c6a /include/cru/common/String.h | |
parent | 4725b4bc48722356fea4570ed7770137a0999491 (diff) | |
download | cru-633c77d7cd2dd5cd22018aca17da1490e34d94ec.tar.gz cru-633c77d7cd2dd5cd22018aca17da1490e34d94ec.tar.bz2 cru-633c77d7cd2dd5cd22018aca17da1490e34d94ec.zip |
test: develop SubProcess test, fix various error.
NEED TEST: BufferStream, AutoReadStream, SubProcess.
Diffstat (limited to 'include/cru/common/String.h')
-rw-r--r-- | include/cru/common/String.h | 2 |
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) { |