public class CompareModeDefault extends CompareMode
CHARSET, DEFAULT, ICU4J, OFF| 限定符 | 构造器和说明 |
|---|---|
protected |
CompareModeDefault(String name,
int strength) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
compare, equals, getCollationLocales, getCollator, getInstance, getName, getName, getStrength, hashCodeprotected CompareModeDefault(String name, int strength)
public int compareString(String a, String b, boolean ignoreCase)
CompareModecompareString 在类中 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 在类中 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 © 2022. All rights reserved.