|
libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
|
Cached range metadata for a single charclass set. More...
#include <vm.h>
Public Attributes | |
| const uint8_t * | ranges_ptr |
| uint16_t | count |
| uint16_t | case_insensitive |
| uint64_t | ascii_map [2] |
| bool | has_ascii_map |
Cached range metadata for a single charclass set.
Built once at compile time (or state-create time) so that get_ranges_ptr() can resolve set_id to range data via O(1) array lookup instead of re-parsing the bytecode trailer.
| uint64_t snobol_range_meta_t::ascii_map[2] |
Precomputed ASCII membership bitmap (bytes 0-127), derived once from ranges_ptr. Valid only when has_ascii_map is set; ranges that exceed the ASCII range (start/end > 127) leave the flag clear and callers fall back to the range walk. Lets the search-VM class ops (BREAKX, SPAN, ANY, NOTANY) test membership with a single bitmap load instead of rebuilding the bitmap per subject byte.
| uint16_t snobol_range_meta_t::case_insensitive |
| const uint8_t* snobol_range_meta_t::ranges_ptr |