|
void | Match (const char *cstr, MatchCallback callback, void *user_obj) noexcept |
| Inspects the string to detect the target string registered in Trie. More...
|
|
void | Match (const char *cstr, MatchCallback callback) noexcept |
| Runs Match(cstr, callback, NULL).
|
|
void | Match (const void *data, size_t n, MatchCallback callback, void *user_obj) noexcept |
| Inspects the data to detect the target pattern. More...
|
|
void | Match (const void *data, size_t n, MatchCallback callback) noexcept |
| Runs Match(data, n, callback, NULL).
|
|
void | MatchBackward (const void *data, size_t n, MatchCallback callback, void *user_obj) noexcept |
| Inspects the data backwards to detect the target pattern. More...
|
|
void | MatchBackward (const void *data, size_t n, MatchCallback callback) noexcept |
| Runs MatchBackward(data, n, callback, NULL).
|
|
errno_t | GetCommonPrefixWords (const void *prefix, size_t n, ReallocCstringVec *vec) noexcept |
| Lists the data with a common prefix in dictionary order. More...
|
|
void | Reset () noexcept |
| Returns the object to the state immediately after the constructor is called.
|
|
|
constexpr | Trie () noexcept |
| Instantiates the object.
|
|
| ~Trie () noexcept |
| Destructor.
|
|
Trie & | assign (Trie &rhs, move_tag) |
| Corresponds to a move assignment operator.
|
|
| Trie (Trie &rhs, move_tag) |
| Corresponds to a move constructor.
|
|
| Trie (Trie &&rhs) |
| Instantiates the object (move constructor). This function is useful when using C++11.
|
|
Trie & | operator= (Trie &&rhs) |
| Move assignment operator. This function is useful when using C++11.
|
|
void | swap (Trie &rhs) noexcept |
| Swaps the contents of an object. More...
|
|
bool | Init () noexcept |
| Resets the contents of an object. More...
|
|
|
bool | Export (BinaryWriter *w) const noexcept |
| Writes the object to the file. More...
|
|
bool | Import (BinaryReader *r) noexcept |
| Reads the written object. More...
|
|
Implements Trie using LOUDS.
- Description
- Trie can be used with a compact data size. Used by creating using
TrieBuilder
, or importing it using the Import
method.
Definition at line 35 of file Trie.h.