summaryrefslogtreecommitdiff
path: root/platform/default/codecvt/codecvt
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-10-18 17:33:27 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-10-23 12:23:40 +0200
commit282c71e8e9a8ec9c2eab612f2e60a71b15d24c8a (patch)
tree2d5a7d0f9b054af2686fe94dfa8c5690e8c92e72 /platform/default/codecvt/codecvt
parent729eeeb3f821981cc5d3c9e06ffbb85ed4d857d7 (diff)
downloadqtlocation-mapboxgl-282c71e8e9a8ec9c2eab612f2e60a71b15d24c8a.tar.gz
[core] unify UTF-8/16 conversion to <boost/locale/encoding_utf.hpp>
Diffstat (limited to 'platform/default/codecvt/codecvt')
-rw-r--r--platform/default/codecvt/codecvt30
1 files changed, 0 insertions, 30 deletions
diff --git a/platform/default/codecvt/codecvt b/platform/default/codecvt/codecvt
deleted file mode 100644
index 8d21e82348..0000000000
--- a/platform/default/codecvt/codecvt
+++ /dev/null
@@ -1,30 +0,0 @@
-#pragma once
-
-// This is a minimal polyfill that'll only work exactly for how we use codecvt
-
-#include <string>
-#include <boost/locale/encoding_utf.hpp>
-
-namespace std {
-
-template <typename Codecvt, typename Elem = wchar_t>
-class wstring_convert {
-public:
- static_assert(std::is_same<Elem, typename Codecvt::Elem>::value, "type mismatch");
-
- inline std::basic_string<Elem> from_bytes(const string& str) {
- return boost::locale::conv::utf_to_utf<Elem>(str);
- }
-
- inline string to_bytes(const std::basic_string<Elem>& str) {
- return boost::locale::conv::utf_to_utf<char>(str);
- }
-};
-
-template <typename E>
-class codecvt_utf8_utf16 {
-public:
- using Elem = E;
-};
-
-} // namespace std