blob: 50acb2e638a4648796b8c2ad19cb57e1e0e8cb96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include <string>
#include <vector>
#include <cstdint>
namespace dictzip {
class IndexFile {
public:
struct Entry {
Entry(const std::string& line);
Entry(const std::string& word, std::size_t offset, std::size_t length);
const std::string word;
const std::size_t offset;
const std::size_t length;
};
IndexFile(const std::string& path);
std::vector<Entry> get(const std::string& word);
private:
const std::string path_;
};
}
|