|
rlib
Convenience library for useful things
|
One token of a parsed scan pattern. More...
#include <rlib/rmem.h>
Data Fields | |
| RMemTokenType | type |
| const rchar * | pattern |
| RMemChunk | chunk |
One token of a parsed scan pattern.
type identifies the token class; pattern points back at the pattern string for the token's text; chunk locates the matching bytes inside the haystack once the scan succeeds.
| RMemChunk RMemScanToken::chunk |
Matched bytes inside the haystack.
| const rchar* RMemScanToken::pattern |
Borrowed pointer into the original pattern string.
| RMemTokenType RMemScanToken::type |
Token class.