diff options
author | crupest <crupest@outlook.com> | 2024-06-01 17:09:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-06-08 17:01:55 +0800 |
commit | d1f409530db6f9b712fd672c4c3154cac7eebad1 (patch) | |
tree | 1e48a3e2ff14e66aac2503a74df28cca7d85d02c /include/cru/common/String.h | |
parent | ad796a167e33b54c7fa23ea21c73d57dba4fc928 (diff) | |
download | cru-d1f409530db6f9b712fd672c4c3154cac7eebad1.tar.gz cru-d1f409530db6f9b712fd672c4c3154cac7eebad1.tar.bz2 cru-d1f409530db6f9b712fd672c4c3154cac7eebad1.zip |
HALF WORK: refactor something and implement part of subprocess.
Diffstat (limited to 'include/cru/common/String.h')
-rw-r--r-- | include/cru/common/String.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/common/String.h b/include/cru/common/String.h index c1ea839c..2156f060 100644 --- a/include/cru/common/String.h +++ b/include/cru/common/String.h @@ -1,6 +1,7 @@ #pragma once #include "Base.h" +#include "Buffer.h" #include "Range.h" #include "StringToNumberConverter.h" #include "StringUtil.h" @@ -241,6 +242,7 @@ class CRU_BASE_API String { String Format(T&&... args) const; std::string ToUtf8() const; + Buffer ToUtf8Buffer(bool end_zero = true) const; int Compare(const String& other) const; int CaseInsensitiveCompare(const String& other) const; @@ -374,6 +376,7 @@ class CRU_BASE_API StringView { std::vector<double> ParseToDoubleList(value_type separator = u' ') const; std::string ToUtf8() const; + Buffer ToUtf8Buffer(bool end_zero = true) const; private: const char16_t* ptr_; |