Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >
Character Classification
The eScript language does not have a true character type. For the character classification routines, a char is actually a one-character string. Thus, actual programming usage is very much like C. For example, in the following fragment, both .isalnum() statements work properly.
var t = Clib.isalnum('a');
var s = 'a';
var t = Clib.isalnum(s);
This fragment displays the following:
true
trueIn the following fragment, both Clib.isalnum() statements cause errors because the arguments to them are strings with more than one character:
var t = Clib.isalnum('ab');
var s = 'ab';
var t = Clib.isalnum(s);The character classification methods return Booleans: true or false. The following character classification methods are supported in the Clib object:
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |