WMLScript String Library
The String library contains functions for manipulating text.
WMLScript String Library Functions
| Function |
Description |
| charAt() |
Returns the character at a specified position |
| compare() |
Compares two strings and returns a value that represents
the result of the comparison |
| elementAt() |
Divides a string into elements and returns a
specified element |
| elements() |
Returns the number of times a specified value appears in a string |
| find() |
Returns the position of a substring in a string |
| format() |
Formats a value |
| insertAt() |
Divides a string into elements and inserts a substring at a
specified index position |
| isEmpty() |
Checks whether a string is empty |
| length() |
Returns the length of a string |
| removeAt() |
Divides a string into elements and removes a specified element |
| replace() |
Replaces a part of a string with a new string |
| replaceAt() |
Divides a string into elements and replaces a specified element |
| squeeze() |
Reduces all multiple spaces to single spaces in a string |
| subString() |
Returns a specified part of a string |
| toString() |
Converts a value to a string |
| trim() |
Returns a string without leading and trailing spaces |

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data.
Then it transforms data instantly or auto-generates royalty-free data integration code for recurrent conversions.
Download a free, fully functional 30-day trial to experience the following features:
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
Download a fully-functional trial today!
|
|
|
|