Skip to main content

quick_check

Function quick_check 

Source
pub fn quick_check(input: &[u8]) -> NfcQc
Expand description

UAX #15 NFC_Quick_Check (UAX #15 §6 Quick_Check). Walks input once; returns Yes if every code point has NFC_QC = Yes and the canonical combining classes are non-decreasing within each combining run; returns No if any code point has NFC_QC = No or any reorder is required; returns Maybe otherwise.

§Errors

Returns NfcQc::No for input containing invalid UTF-8 — the caller’s input must be valid UTF-8 to be NFC.