pub fn substr_j(
s: &JsString,
start: i64,
length: Option<i64>,
) -> Result<JsString>Expand description
JavaScript-like substr(start, length) using UTF-16 code-unit indices.
start may be negative (relative to the end). length is clamped to
>= 0 and truncated to the remaining string length.