1
0
mirror of synced 2024-11-29 01:44:31 +01:00
ImHex/include/views/view_strings.hpp
2020-11-15 01:42:43 +01:00

36 lines
697 B
C++

#pragma once
#include "views/view.hpp"
#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(prv::Provider* &dataProvider);
~ViewStrings() override;
void createView() override;
void createMenu() override;
private:
prv::Provider* &m_dataProvider;
bool m_windowOpen = true;
bool m_shouldInvalidate = false;
std::vector<FoundString> m_foundStrings;
int m_minimumLength = 5;
char *m_filter;
};
}