WMLScript String Library

Σκέψεις Λέξεων String περιέχει λειτουργίες για την επεξεργασία κειμένων.

WMLScript Σκέψεις Λέξεων για Κείμενα

Function Description
charAt() Return the character at a specified position.
compare() Compare two strings and return a value representing the comparison result.
elementAt() Divide a string into elements and return a specified element.
elements() Return the number of times a specified value appears in a string.
find() Return the position of a substring in a string.
format() Format a value.
insertAt() Divide 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() Divide a string into elements and delete a specified element.
replace() Replace a part of the string with a new string.
replaceAt() Divide 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 after removing leading and trailing spaces.