ImHex/include/views/view_strings.hpp

40 lines
780 B
C++
Raw Normal View History

2020-11-15 00:42:43 +00:00
#pragma once
#include <hex/views/view.hpp>
2020-11-15 00:42:43 +00:00
#include <cstdio>
#include <string>
namespace hex {
namespace prv { class Provider; }
struct FoundString {
std::string string;
u64 offset;
size_t size;
};
class ViewStrings : public View {
public:
explicit ViewStrings();
2020-11-15 00:42:43 +00:00
~ViewStrings() override;
void drawContent() override;
void drawMenu() override;
2020-11-15 00:42:43 +00:00
private:
2021-02-22 09:16:58 +00:00
bool m_searching = false;
2020-11-15 00:42:43 +00:00
std::vector<FoundString> m_foundStrings;
int m_minimumLength = 5;
2021-02-17 13:47:25 +00:00
std::vector<char> m_filter;
std::string m_selectedString;
std::string m_demangledName;
2021-02-22 09:16:58 +00:00
void searchStrings();
void createStringContextMenu(const FoundString &foundString);
2020-11-15 00:42:43 +00:00
};
}