diff options
author | crupest <crupest@outlook.com> | 2020-07-07 23:12:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-07-07 23:12:37 +0800 |
commit | b699f23d8d192a3dac2133f1678207ab42244360 (patch) | |
tree | ddbb489458bbd212f10c9331e675ec57479e8686 /include/cru/common/StringUtil.hpp | |
parent | 1f6ae975355271bba248204f9930a93a51068f7c (diff) | |
download | cru-b699f23d8d192a3dac2133f1678207ab42244360.tar.gz cru-b699f23d8d192a3dac2133f1678207ab42244360.tar.bz2 cru-b699f23d8d192a3dac2133f1678207ab42244360.zip |
...
Diffstat (limited to 'include/cru/common/StringUtil.hpp')
-rw-r--r-- | include/cru/common/StringUtil.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/cru/common/StringUtil.hpp b/include/cru/common/StringUtil.hpp index 39aa2d14..5dacfa12 100644 --- a/include/cru/common/StringUtil.hpp +++ b/include/cru/common/StringUtil.hpp @@ -124,33 +124,4 @@ void Utf16EncodeCodePointAppend(CodePoint code_point, std::u16string& str); std::string ToUtf8(std::u16string_view s); std::u16string ToUtf16(std::string_view s); - -// class Utf8Iterator : public Object { -// public: -// explicit Utf8Iterator(const std::string_view& string) : string_(string) {} -// Utf8Iterator(const std::string_view& string, Index position) -// : string_(string), position_(position) {} - -// CRU_DEFAULT_COPY(Utf8Iterator) -// CRU_DEFAULT_MOVE(Utf8Iterator) - -// ~Utf8Iterator() = default; - -// public: -// void SetToHead() { position_ = 0; } -// void SetPosition(Index position) { position_ = position; } - -// // Advance current position and get next code point. Return -// k_invalid_code_point -// // if there is no next code unit(point). Throw TextEncodeException if -// decoding -// // fails. -// CodePoint Next(); - -// Index CurrentPosition() const { return this->position_; } - -// private: -// std::string_view string_; -// Index position_ = 0; -// }; } // namespace cru |