mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
impr: Removed more instanced of codecvt
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include <hex/providers/provider.hpp>
|
||||
|
||||
#include <cstring>
|
||||
#include <codecvt>
|
||||
#include <string>
|
||||
|
||||
#include <imgui_internal.h>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <fonts/vscode_icons.hpp>
|
||||
|
||||
#include <bit>
|
||||
#include <codecvt>
|
||||
|
||||
namespace hex::plugin::builtin {
|
||||
|
||||
@@ -286,8 +285,7 @@ namespace hex::plugin::builtin {
|
||||
break;
|
||||
}
|
||||
case Encoding::UTF16: {
|
||||
std::wstring_convert<std::codecvt_utf8<char16_t>, char16_t> convert16;
|
||||
auto utf16 = convert16.from_bytes(s_inputString);
|
||||
auto utf16 = wolv::util::utf8ToUtf16(s_inputString);
|
||||
|
||||
for (auto &c: utf16) {
|
||||
swapEndianness(c, Encoding::UTF16, m_stringEndianness);
|
||||
@@ -299,8 +297,7 @@ namespace hex::plugin::builtin {
|
||||
break;
|
||||
}
|
||||
case Encoding::UTF32: {
|
||||
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> convert32;
|
||||
auto utf32 = convert32.from_bytes(s_inputString);
|
||||
auto utf32 = wolv::util::utf8ToUtf32(s_inputString);
|
||||
|
||||
for (auto &c: utf32) {
|
||||
swapEndianness(c, Encoding::UTF32, m_stringEndianness);
|
||||
|
||||
Reference in New Issue
Block a user