WMLScript String Library

De String-functiebibliotheek bevat functies voor tekstbewerking.

Functies van de WMLScript String-bibliotheek

Function Description
charAt() Return the character at a specified position.
compare() Compare two strings and return a value representing the comparison result.
elementAt() Split a string into elements and return a specified element.
elements() Return the number of times a specified value appears in the string.
find() Return the position of the substring in the string.
format() Format a value.
insertAt() Split a string into elements and insert a substring at a specified index.
isEmpty() Check if the string is empty.
length() Return the length of the string.
removeAt() Split a string into elements and delete a specified element.
replace() Replace a part of the string with a new string.
replaceAt() Split a string into elements and replace a specified element.
squeeze() Compress all consecutive spaces in a string into a single space.
subString() Return the specified part of the string.
toString() Convert a value to a string.
trim() Return the string without leading and trailing spaces.