The String Library

The String Library is an important (and widely used) WMLScript Library that enables developers to perform a number of important operations to strings.

You’ll find the String Library useful because the majority of data inputted by users from a WML file will be of the string data type. (see Chapter 6, “User Input with Variables,” for more information). A string, by definition, is a set of characters grouped together.

The built-in functions in the String Library specify how to separate elements of a string. For example, the trim function enables developers to remove any whitespace characters from a string.

Many of these String functions use indexes. Indexes are a numeric way of identifying a particular character of a string. ...

Get WAP 2.0 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.