Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >
Clib.strncmpi() Method and Clib.strnicmp() Method
These methods make a case-insensitive comparison between two strings, up to a specified number of bytes.
Syntax
Clib.strncmpi(string1, string2, maxLen)
Clib.strncmpi(string1, string2, maxLen)Returns
The result of the comparison, which is 0 if the strings are identical, a negative number if the ASCII code of the first unmatched character in string1 is less than that of the first unmatched character in string2, or a positive number if the ASCII code of the first unmatched character in string1 is greater than that of the first unmatched character in string2.
Usage
This method compares up to maxLen bytes of string1 against string2 until there is a mismatch or it reaches the end of a string. This method does a case-insensitive comparison, so that
A
anda
are considered to be the same. The comparison ends when maxLen bytes have been compared or when an end of string has been reached, whichever comes first.See Also
Clib.stricmp() Method and Clib.strcmpi() Method and Clib.strncmp() Method
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference Published: 18 April 2003 |