libzed 1.9.9
A general-purpose library for quick and simple data manipulation.
 
Loading...
Searching...
No Matches
dictRange.hpp
1#pragma once
2
3namespace z {
4namespace util {
5class dictionary;
6
13class dictRange {
14protected:
16 int left;
17
19 int right;
20
23
24public:
27
29 bool isWord;
30
32 friend dictionary;
33};
34} // namespace util
35} // namespace z
A class to allow efficient, custom dictionary search functions.
Definition dictRange.hpp:13
bool exhausted
Whether the range can be narrowed any further.
Definition dictRange.hpp:26
bool isWord
Whether the leftmost side of the current range happens to be a word in the dictionary.
Definition dictRange.hpp:29
friend dictionary
z::util::dictionary is allowed to modify
Definition dictRange.hpp:32
int left
The leftmost word in the current range.
Definition dictRange.hpp:16
int right
The rightmost word in the current range.
Definition dictRange.hpp:19
int charPos
The index of the next character to compare.
Definition dictRange.hpp:22