public class CompareModeDefault extends CompareMode
DEFAULT, ICU4J, OFF| Modifier | Constructor and Description |
|---|---|
protected |
CompareModeDefault(String name,
int strength) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareString(String a,
String b,
boolean ignoreCase)
Compare two strings.
|
boolean |
equalsChars(String a,
int ai,
String b,
int bi,
boolean ignoreCase)
Compare two characters in a string.
|
getCollator, getInstance, getName, getName, getStrengthprotected CompareModeDefault(String name, int strength)
public int compareString(String a, String b, boolean ignoreCase)
CompareModecompareString in class CompareModea - the first stringb - the second stringignoreCase - true if a case-insensitive comparison should be madepublic boolean equalsChars(String a, int ai, String b, int bi, boolean ignoreCase)
CompareModeequalsChars in class CompareModea - the first stringai - the character index in the first stringb - the second stringbi - the character index in the second stringignoreCase - true if a case-insensitive comparison should be madeCopyright © 2012 JBoss by Red Hat. All Rights Reserved.