Expand description
JavaScript string manipulation, escaping, and regex helper functions.
Functions§
- char_
code_ at - Returns the UTF-16 code unit at
index, matching JScharCodeAt. - char_
code_ at_ j - Returns the UTF-16 code unit at
index, matching JScharCodeAt. - index_
of - JavaScript-like
indexOf(search, fromIndex)using UTF-16 code-unit indices. - index_
of_ j - JavaScript-like
indexOf(search, fromIndex)using UTF-16 code-unit indices. - js_
regex - js_
string - search
- JavaScript-like
search(regex)using UTF-16 code-unit indices, given Rust string as input. - search_
j - JavaScript-like
search(regex)using UTF-16 code-unit indices. - slice
- JavaScript-like
slice(start, end)using UTF-16 code-unit indices. - slice_j
- JavaScript-like
slice(start, end)using UTF-16 code-unit indices. - substr
- JavaScript-like
substr(start, length)using UTF-16 code-unit indices. - substr_
j - JavaScript-like
substr(start, length)using UTF-16 code-unit indices. - take_
char_ at - Take a single “character” at
index, keeping surrogate pairs together. - take_
char_ at_ j - Take a single “character” at
index, keeping surrogate pairs together.