[][src]Module boa::js::string

The global String object

Functions

_create

Create a new String object

char_at

Returns a single element String containing the code unit at index pos within the String value resulting from converting this object to a String. If there is no element at that index, the result is the empty String. The result is a String value, not a String object. https://tc39.github.io/ecma262/#sec-string.prototype.charat

char_code_at

Returns a Number (a nonnegative integer less than 216) that is the numeric value of the code unit at index pos within the String resulting from converting this object to a String. If there is no element at that index, the result is NaN. https://tc39.github.io/ecma262/#sec-string.prototype.charcodeat

get_string_length

Get a string's length

init

Initialise the String object on the global object

make_string

Create new string https://searchfox.org/mozilla-central/source/js/src/vm/StringObject.h#19

to_string

Get the string value to a primitive string