XML Script logo
str, strlen, uc, is_whitespace - usage of
Usage

This function forces the parameter to be returned as a string. (Used in previous version of X-Tract when there was a distinction between integers and strings)

This function returns the length of the string it takes as its only parameter. If the parameter is a number, it is automatically converted to a string and then its length is calculated.(N.B. If that number contains whitespace, the whitespace is ignored when calculating the length of the string.)

This function converts any lower-case characters in 'string' to upper-case.

This function tests whether a string contains only whitespace characters. A space, tab or newline counts as whitespace.

The trim() function removes whitespace from either side of a value.

Examples

Example of str

Example of strlen

Example of uc

Example of is_whitespace

Trim - Example of usage

Version

1.1

Ref

t.72

Date

25 January 2000

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited