aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/cru/common/StringUtil.hpp5
-rw-r--r--src/common/StringUtil.cpp3
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));