mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
impr: Removed more instanced of codecvt
This commit is contained in:
2
lib/external/libwolv
vendored
2
lib/external/libwolv
vendored
Submodule lib/external/libwolv updated: 759035de2d...2d2329aa12
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
Submodule lib/external/pattern_language updated: c7cd053979...7a0e7800ef
@@ -14,7 +14,6 @@
|
||||
#if defined(OS_WINDOWS)
|
||||
#include <windows.h>
|
||||
#include <shellapi.h>
|
||||
#include <codecvt>
|
||||
#endif
|
||||
|
||||
namespace hex::init {
|
||||
|
||||
@@ -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