diff options
author | crupest <crupest@outlook.com> | 2021-08-10 01:42:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-08-10 01:42:52 +0800 |
commit | 7be2ea15e41d296cd26635f276551959362aa39d (patch) | |
tree | 5df258f2f38a9791b79278d4fda512b1e8e643c0 | |
parent | a9bdeccd01e2a7f37b533b674adc2b879237fbe3 (diff) | |
download | cru-7be2ea15e41d296cd26635f276551959362aa39d.tar.gz cru-7be2ea15e41d296cd26635f276551959362aa39d.tar.bz2 cru-7be2ea15e41d296cd26635f276551959362aa39d.zip |
...
-rw-r--r-- | include/cru/common/StringUtil.hpp | 5 | ||||
-rw-r--r-- | src/common/StringUtil.cpp | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/include/cru/common/StringUtil.hpp b/include/cru/common/StringUtil.hpp index 0ea842c2..481566a6 100644 --- a/include/cru/common/StringUtil.hpp +++ b/include/cru/common/StringUtil.hpp @@ -118,11 +118,6 @@ class CodePointIterator { mutable Index next_position_cache_; }; -extern template CRU_BASE_API class CodePointIterator<std::string_view, - &Utf8NextCodePoint>; -extern template CRU_BASE_API class CodePointIterator<std::u16string_view, - &Utf16NextCodePoint>; - using Utf8CodePointIterator = CodePointIterator<std::string_view, &Utf8NextCodePoint>; diff --git a/src/common/StringUtil.cpp b/src/common/StringUtil.cpp index 54adebd9..36f4df4e 100644 --- a/src/common/StringUtil.cpp +++ b/src/common/StringUtil.cpp @@ -153,9 +153,6 @@ CodePoint Utf16PreviousCodePoint(std::u16string_view str, Index current, return result; } -template class CodePointIterator<std::string_view, &Utf8NextCodePoint>; -template class CodePointIterator<std::u16string_view, &Utf16NextCodePoint>; - void Utf8EncodeCodePointAppend(CodePoint code_point, std::string& str) { auto write_continue_byte = [&str](std::uint8_t byte6) { str.push_back((1u << 7) + (((1u << 6) - 1) & byte6)); |