Generated Python Unicode properties #
This file is generated by scripts/generate_unicode_table.py; do not edit it by hand. It
freezes the CPython 3.12.13 character predicates for Unicode 15.0.0 that the einops lexer
reproduces.
The table lists the maximal runs of code points sharing the same nonzero property flags, in
ascending order and pairwise disjoint. Bit 0 records str.isalnum, bit 1 records
str.isidentifier on the single character, bit 2 records whether the character may continue
an identifier, and bit 3 records str.isdecimal. Every decimal run covers exactly the ten
digits of one decimal alphabet in order, so the digit value of a decimal character is its
offset from the start of its run.
Instances For
Instances For
Flag bit recording str.isalnum.
Instances For
Flag bit recording that the character may start an identifier.
Instances For
Flag bit recording that the character may continue an identifier.
Instances For
Flag bit recording str.isdecimal.
Instances For
Part 0 of intervals, split to stay within elaborator limits.
Instances For
Part 1 of intervals, split to stay within elaborator limits.
Instances For
Part 2 of intervals, split to stay within elaborator limits.
Instances For
The 1147 property runs of Unicode 15.0.0, ascending and disjoint.
Instances For
Binary search for the run containing codepoint within the index range [lo, hi) of
intervals. The fuel argument bounds the recursion so the definition is structural and
reduces inside the kernel.
Instances For
The property run containing a character, if it has any recorded property.
Instances For
Whether a character carries the given property flag.
Instances For
The digit value of a str.isdecimal character.