String class
anchor(name)
- returns <a name="name">string</a>
big()
- returns <big>string</big>
bold()
- returns <b>string</b>
charAt()
- returns the character in the given position.
charCodeAt()
- returns the character's character code at the given position:
concat()
- concatenates one or more strings to another and returns the concatenated string.
fixed()
- returns <tt>string</tt>
fontcolor(color)
- returns <font color="color">string</font>
fontsize(size)
- returns <font size="size">string</font>
fromCharCode()
- takes one or more character codes and convert them into a string.
indexOf()
- searches a string and return the position. returns -1 if the substring isn't found.
italics()
- returns <i>string</i>
lastIndexOf()
- searches a string and return the position.lastIndexOf() returns -1 if the substring isn't found.
length
- indicates the number of characters in the string.
link(url)
- returns <a href="url">string</a>
localeCompare()
- localeCompare() compares two strings
match()
- is the same as RegExp object's exec() method.
replace()
- replaces string
search()
- returns the index of the first pattern occurrence in the string.search() returns -1 if not found.
slice()
- returns a substring and accepts either one or two arguments.
small()
- returns <small>string</small>
split()
- split() separates the string into an array of substrings based on a separator.
strike()
- returns <strike>string</strike>
sub()
- returns <sub>string</sub>
substr()
- returns a substring and accepts either one or two arguments.
substring()
- returns a substring and accepts either one or two arguments.
sup()
- returns <sup>string</sup>
toLocaleLowerCase()
- converts string to lower case a locale.
toLocaleUpperCase()
- converts string to upper case a locale.
toLowerCase()
- converts string to lower case.
toUpperCase()
- converts string to upper case.
trim()
- removes all leading and trailing white space.