Class SpoofChecker.SpoofData
java.lang.Object
com.ibm.icu.text.SpoofChecker.SpoofData
- Enclosing class:
SpoofChecker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int(package private) int[](package private) String(package private) short[]private static final SpoofChecker.SpoofData.IsAcceptable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendValueTo(int index, StringBuilder dest) Append the confusable skeleton at the specified index to the StringBuilder dest.intcodePointAt(int index) Return the code point (key) at the specified index.voidconfusableLookup(int inChar, StringBuilder dest) Append the confusable skeleton transform for a single code point to a StringBuilder.booleanstatic SpoofChecker.SpoofDatainthashCode()intlength()Return the number of confusable entries in this SpoofData.private voidreadData(ByteBuffer bytes)
-
Field Details
-
fCFUKeys
int[] fCFUKeys -
fCFUValues
short[] fCFUValues -
fCFUStrings
String fCFUStrings -
DATA_FORMAT
private static final int DATA_FORMAT- See Also:
-
IS_ACCEPTABLE
-
-
Constructor Details
-
SpoofData
private SpoofData() -
SpoofData
- Throws:
IOException
-
-
Method Details
-
getDefault
- Returns:
- instance for Unicode standard data
-
equals
-
hashCode
-
readData
- Throws:
IOException
-
confusableLookup
Append the confusable skeleton transform for a single code point to a StringBuilder. The string to be appended will between 1 and 18 characters as of Unicode 9. This is the heart of the confusable skeleton generation implementation. -
length
public int length()Return the number of confusable entries in this SpoofData.- Returns:
- The number of entries.
-
codePointAt
public int codePointAt(int index) Return the code point (key) at the specified index.- Parameters:
index- The index within the SpoofData.- Returns:
- The code point.
-
appendValueTo
Append the confusable skeleton at the specified index to the StringBuilder dest.- Parameters:
index- The index within the SpoofData.dest- The StringBuilder to which to append the skeleton.
-