public static enum CodePointMap.RangeOption extends Enum<CodePointMap.RangeOption>
CodePointMap.getRange(int, com.ibm.icu.util.CodePointMap.ValueFilter, com.ibm.icu.util.CodePointMap.Range)
Enum Constant and Description |
---|
FIXED_ALL_SURROGATES
getRange() enumerates all same-value ranges as stored in the map,
except that all surrogates (U+D800..U+DFFF) are treated as having the
surrogateValue, which is passed to getRange() as a separate parameter.
|
FIXED_LEAD_SURROGATES
getRange() enumerates all same-value ranges as stored in the map,
except that lead surrogates (U+D800..U+DBFF) are treated as having the
surrogateValue, which is passed to getRange() as a separate parameter.
|
NORMAL
getRange() enumerates all same-value ranges as stored in the map.
|
Modifier and Type | Method and Description |
---|---|
static CodePointMap.RangeOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CodePointMap.RangeOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodePointMap.RangeOption NORMAL
public static final CodePointMap.RangeOption FIXED_LEAD_SURROGATES
Character.isHighSurrogate(char)
.
Most users should use NORMAL instead.
This option is useful for maps that map surrogate code units to special values optimized for UTF-16 string processing or for special error behavior for unpaired surrogates, but those values are not to be associated with the lead surrogate code points.
public static final CodePointMap.RangeOption FIXED_ALL_SURROGATES
Character.isSurrogate(char)
.
Most users should use NORMAL instead.
This option is useful for maps that map surrogate code units to special values optimized for UTF-16 string processing or for special error behavior for unpaired surrogates, but those values are not to be associated with the lead surrogate code points.
public static CodePointMap.RangeOption[] values()
for (CodePointMap.RangeOption c : CodePointMap.RangeOption.values()) System.out.println(c);
public static CodePointMap.RangeOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Unicode, Inc. and others.