BBjString::compareToIgnoreCase
Description
In BBj 7.0 and higher, this method compares two strings lexicographically, ignoring case differences. This method returns an integer whose sign is that of calling BBjString::compareTo(String) with normalized versions of the strings where case differences have been eliminated by calling Character.toLowerCase(Character.toUpperCase(character)) on each character.
Note that this method does not take locale into account, and will result in an unsatisfactory ordering for certain locales. The java.text package provides collators to allow locale-sensitive ordering.
Syntax
Return Value |
Method |
---|---|
int |
compareToIgnoreCase(string str) |
Parameters
Variable |
Description |
---|---|
str |
The string to be compared. |
Return Value
Returns a negative integer, zero, or a positive integer as the specified String is greater than, equal to, or less than this String, ignoring case considerations.
Remarks
None.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.