mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
build: Updated libwolv
This commit is contained in:
@@ -45,7 +45,7 @@ namespace hex::plugin::builtin {
|
||||
ImGui::EndTabBar();
|
||||
}
|
||||
|
||||
if(ImGuiExt::IconHyperlink(ICON_VS_SEARCH, "hex.builtin.view.hex_editor.search.advanced"_lang)) {
|
||||
if (ImGuiExt::IconHyperlink(ICON_VS_SEARCH, "hex.builtin.view.hex_editor.search.advanced"_lang)) {
|
||||
TaskManager::doLater([editor] {
|
||||
const auto& view = ContentRegistry::Views::getViewByName("hex.builtin.view.find.name");
|
||||
|
||||
@@ -286,25 +286,29 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
case Encoding::UTF16: {
|
||||
auto utf16 = wolv::util::utf8ToUtf16(s_inputString);
|
||||
if (!utf16.has_value())
|
||||
return;
|
||||
|
||||
for (auto &c: utf16) {
|
||||
for (auto &c : *utf16) {
|
||||
swapEndianness(c, Encoding::UTF16, m_stringEndianness);
|
||||
}
|
||||
|
||||
std::copy(reinterpret_cast<const u8 *>(utf16.data()),
|
||||
reinterpret_cast<const u8 *>(utf16.data() + utf16.size()),
|
||||
std::copy(reinterpret_cast<const u8 *>(utf16->data()),
|
||||
reinterpret_cast<const u8 *>(utf16->data() + utf16->size()),
|
||||
std::back_inserter(m_searchByteSequence));
|
||||
break;
|
||||
}
|
||||
case Encoding::UTF32: {
|
||||
auto utf32 = wolv::util::utf8ToUtf32(s_inputString);
|
||||
if (!utf32.has_value())
|
||||
return;
|
||||
|
||||
for (auto &c: utf32) {
|
||||
for (auto &c : *utf32) {
|
||||
swapEndianness(c, Encoding::UTF32, m_stringEndianness);
|
||||
}
|
||||
|
||||
std::copy(reinterpret_cast<const u8 *>(utf32.data()),
|
||||
reinterpret_cast<const u8 *>(utf32.data() + utf32.size()),
|
||||
std::copy(reinterpret_cast<const u8 *>(utf32->data()),
|
||||
reinterpret_cast<const u8 *>(utf32->data() + utf32->size()),
|
||||
std::back_inserter(m_searchByteSequence));
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user