Skip to main content

convert_case_with_limit

Function convert_case_with_limit 

Source
pub fn convert_case_with_limit(
    input: &JsString,
    upper: bool,
    max_len: usize,
) -> Result<JsString, JsStringError>
Expand description

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.