Skip to main content

detect_complex_script

Function detect_complex_script 

Source
pub fn detect_complex_script(code: u32) -> Option<ComplexScript>
Expand description

Detect complex script for a character code (O(1) complexity)

Returns the specific complex script type if the character belongs to a complex script, or None if it’s not a complex script character.

§Fast Path

The implementation checks the Devanagari range first as it’s most common.