7.5

Table Of Contents
StringWidthUTF8 (function)
Returns the length, in inches, of the string as it would be displayed on a page, using the current font. Bear in mind that the com-
bination of many bytes sometimes results in a single glyph and that text orientation can also affect the number of glyphs dis-
played.
Syntax
stringwidthutf8(text, mode)
Arguments
text
UTF8 text string to be measured.
mode
String specifying how the contextual analysis is to be performed. Possible values are 'normal', 'reverse', and 'none' (for no con-
textual analysis).
Strip (function)
Removes all occurrences of a string within another string.
Syntax
strip( string1, string2 ) string value
Arguments
string1
String value to be removed from string2.
string2
String value to change.
Code Sample Example
This example strips all dollar signs from a variable.
Example
define(&data,string,'$11.95')
show(strip('$',&data))
Sub (function)
Subtracts one expression from another. This is the functional equivalent of the - operator.
©2010 Objectif Lune Inc - 507 -