This renames AsciiWordChar to Alphanumeric.
And just after making the Avoid low bits PR, I changed AsciiWordChar to use the low bits (?!). Better use a shift than a mask now.
Adding the [inline] attribute to RangeInt::new and RangeInt::new_inclusive helps LLVM to calculate the range and zone at compile time if the range is constant. That makes it a better choice than the current bitmask or even simple_range for Codepoint.
This renames
AsciiWordChar
toAlphanumeric
. And just after making the Avoid low bits PR, I changedAsciiWordChar
to use the low bits (?!). Better use a shift than a mask now.Adding the
[inline]
attribute toRangeInt::new
andRangeInt::new_inclusive
helps LLVM to calculate the range and zone at compile time if the range is constant. That makes it a better choice than the current bitmask or evensimple_range
forCodepoint
.Benchmarks before:
After