Skip to main content

Module case

Module case 

Source
Expand description

Case conversion over engine strings; see oxide_regexp::unicode::case.

Functions§

convert_case_with_limit
Convert one raw UTF-16 string with QuickJS 2026-06-04’s Unicode 17 case tables and contextual lowercase rule. An empty input is returned as is, without reserving a buffer.
regexp_canonicalize
Apply QuickJS’s RegExp-specific canonicalization using the checksum-pinned Unicode 17 tables. Legacy expressions use the single-code-point uppercase rule; u/v expressions use Unicode simple case folding.
regexp_canonicalize_range_pairs
Canonicalize inclusive ranges with QuickJS’s RegExp case-folding algorithm. Unlike a full-domain expansion, this visits only code points in the case-conversion mask (1,585 points for Unicode 17).