.. _String: ================================================ String ================================================ Description ----------- A character string. Each character is adressable by index. Properties ^^^^^^^^^^ +---------------------------------------+---------------------------+ | :ref:`length` readonly | The length of the string. | +---------------------------------------+---------------------------+ Constructors ^^^^^^^^^^^^ +---------------------------------------+--------------------------------------------------------------------+ | :ref:`String` readonly | Returns a string representation of the value given as an argument. | +---------------------------------------+--------------------------------------------------------------------+ Methods ^^^^^^^ +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`anchor` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`big` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`blink` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bold` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`charAt` readonly | Returns the character at the specified index. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`charCodeAt` readonly | Returns the Unicode value of the character at the given index. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`concat` readonly | If necessary, converts the one or more given values to strings. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`fixed` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`fontcolor` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`fontsize` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`indexOf` readonly | Returns the index within the string of the first occurrence of the specified string, starting the search at fromIndex if provided. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`italics` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`lastIndexOf` readonly | Returns the index within the string of the last occurrence of the specified value. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`link` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`localeCompare` readonly | Performs a localized comparison of two strings. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`match` readonly | Matches a string against a regular expression. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`replace` readonly | | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`search` readonly | | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`slice` readonly | Extracts a substring of the given string and returns it as a new string. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`small` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`split` readonly | Splits a string into a group of substrings, places those strings in an array, and returns the array. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`strike` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`sub` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`substr` readonly | Returns a string containing the characters beginning at the specified index, start, through the specified number of characters. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`substring` readonly | Returns a substring of the given string by extracting characters from indexA up to but not including indexB. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`sup` readonly | Returns a string consisting of this string enclosed in a tag. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toLocaleLowerCase` readonly | Returns a new string which contains all the characters of the original string converted to lowercase (localized). | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toLocaleUpperCase` readonly | Returns a new string which contains all the characters of the original string converted to uppercase (localized). | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toLowerCase` readonly | Returns a new string which contains all the characters of the original string converted to lowercase. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toSource` readonly | Creates a string representation of this object that can be fed back to?eval()?to re-create an object. Works only with built-in classes. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toString` readonly | Returns itself. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toUpperCase` readonly | Returns a new string which contains all the characters of the original string converted to uppercase. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`valueOf` readonly | Returns itself. | +-------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ Static Methods ^^^^^^^^^^^^^^ +---------------------------------------------------+---------------------------------------------------------------------------------------------+ | :ref:`fromCharCode` readonly | Returns a string created by concatenation one or more characters specified as ASCII values. | +---------------------------------------------------+---------------------------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 String/length.rst String/toString.rst String/toSource.rst String/valueOf.rst String/charAt.rst String/charCodeAt.rst String/concat.rst String/indexOf.rst String/lastIndexOf.rst String/slice.rst String/toLowerCase.rst String/toUpperCase.rst String/toLocaleLowerCase.rst String/toLocaleUpperCase.rst String/localeCompare.rst String/match.rst String/replace.rst String/search.rst String/split.rst String/substr.rst String/substring.rst String/anchor.rst String/big.rst String/blink.rst String/bold.rst String/fixed.rst String/fontcolor.rst String/fontsize.rst String/italics.rst String/link.rst String/small.rst String/strike.rst String/sub.rst String/sup.rst String/fromCharCode.rst String/String.rst