[−][src]Module boa::js::string
The global String object
Functions
| _create | Create a new |
| 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 |
| concat | Returns a String that is the result of concatenating this String and all strings provided as arguments https://tc39.github.io/ecma262/#sec-string.prototype.concat |
| ends_with | Returns a Boolean indicating whether the sequence of code units of the "search string" is the same as the corresponding code units of this string starting at position "end position" - length https://tc39.github.io/ecma262/#sec-string.prototype.endswith |
| get_string_length | Get a string's length |
| includes | Returns a Boolean indicating whether searchString appears as a substring of the result of converting this object to a String, at one or more indices that are greater than or equal to position. If position is undefined, 0 is assumed, so as to search all of the String. https://tc39.github.io/ecma262/#sec-string.prototype.includes |
| index_of | If searchString appears as a substring of the result of converting this object to a String, at one or more indices that are greater than or equal to position, then the smallest such index is returned; otherwise, -1 is returned. If position is undefined, 0 is assumed, so as to search all of the String. https://tc39.github.io/ecma262/#sec-string.prototype.includes |
| init | Initialise the |
| last_index_of | object to a String at one or more indices that are smaller than or equal to position, then the greatest such index is returned; otherwise, -1 is returned. If position is undefined, the length of the String value is assumed, so as to search all of the String. https://tc39.github.io/ecma262/#sec-string.prototype.lastindexof |
| make_string | Create new string https://searchfox.org/mozilla-central/source/js/src/vm/StringObject.h#19 |
| repeat | Returns a String that is the result of repeating this String the number of times given by the first argument https://tc39.github.io/ecma262/#sec-string.prototype.repeat |
| slice | Returns a String which contains the slice of the JS String from character at "start" index up to but not including character at "end" index https://tc39.github.io/ecma262/#sec-string.prototype.slice |
| starts_with | Returns a Boolean indicating whether the sequence of code units of the "search string" is the same as the corresponding code units of this string starting at index "position" https://tc39.github.io/ecma262/#sec-string.prototype.startswith |
| to_string | Get the string value to a primitive string |
| trim | |
| trim_end | |
| trim_start |