Unicode-property sparse 2-stage membership for code points > U+07FF (page = cp>>8 → 256-bit block). A thread-local heap cache, so basic_pike_state (and the ASCII class loop) keeps its size.
More...
#include <pike.hpp>
|
| bool | contains (char32_t cp) const noexcept |
| | Two-stage membership probe: page index, then bit test inside that page's 256-bit block.
|
| |
|
|
std::vector< std::uint16_t > | page_of |
| | page_of[cp>>8] → index into blocks, or empty.
|
| |
|
std::vector< std::array< std::uint8_t, 32 > > | blocks |
| | Non-empty 256-bit pages only.
|
| |
|
|
static constexpr std::uint16_t | empty {0xFFFFU} |
| | page_of sentinel: no members in that page.
|
| |
Unicode-property sparse 2-stage membership for code points > U+07FF (page = cp>>8 → 256-bit block). A thread-local heap cache, so basic_pike_state (and the ASCII class loop) keeps its size.
◆ contains()
| bool real::detail::cp_hi_table::contains |
( |
char32_t |
cp | ) |
const |
|
inlinenoexcept |
Two-stage membership probe: page index, then bit test inside that page's 256-bit block.
- Parameters
-
| [in] | cp | Code point to test. |
- Returns
- True when
cp is a member; false for any code point above the built range.
The documentation for this struct was generated from the following file: