diff options
author | crupest <crupest@outlook.com> | 2021-11-14 22:44:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-14 22:44:59 +0800 |
commit | 63b4956c3a802ee1c0fd92d1ce56e9330b6de4d2 (patch) | |
tree | f13f592d810b797c4c64803719acbd258565ebce /include/cru/common/String.hpp | |
parent | a744ed1fea0eaf4d946909da7fdc0a4c0f9c5ec0 (diff) | |
download | cru-63b4956c3a802ee1c0fd92d1ce56e9330b6de4d2.tar.gz cru-63b4956c3a802ee1c0fd92d1ce56e9330b6de4d2.tar.bz2 cru-63b4956c3a802ee1c0fd92d1ce56e9330b6de4d2.zip |
...
Diffstat (limited to 'include/cru/common/String.hpp')
-rw-r--r-- | include/cru/common/String.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cru/common/String.hpp b/include/cru/common/String.hpp index 0a8d88a0..9996f617 100644 --- a/include/cru/common/String.hpp +++ b/include/cru/common/String.hpp @@ -273,6 +273,8 @@ class CRU_BASE_API StringView { return std::u16string_view(data(), size()); } + std::string ToUtf8() const; + private: const char16_t* ptr_; Index size_; @@ -402,6 +404,9 @@ inline Index Utf16NextWord(StringView str, Index position, bool* is_space = nullptr) { return Utf16NextWord(str.data(), str.size(), position, is_space); } + +String CRU_BASE_API ToLower(StringView s); +String CRU_BASE_API ToUpper(StringView s); } // namespace cru template <> |