Module boa_engine::string

source ·
Expand description

A UTF-16–encoded, reference counted, immutable string.

This module contains the JsString type, the js_string macro and the utf16 macro.

The js_string macro is used when you need to create a new JsString, and the utf16 macro is used for const conversions of string literals to UTF-16.

Macros§

  • Construct a utf-16 array literal from a utf-8 str literal.

Structs§

  • A UTF-16–encoded, reference counted, immutable string.

Enums§