Package com.ibm.icu.text
Class SpoofChecker.SpoofData
java.lang.Object
com.ibm.icu.text.SpoofChecker.SpoofData
- Enclosing class:
- SpoofChecker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private 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 TypeMethodDescriptionvoid
appendValueTo
(int index, StringBuilder dest) Append the confusable skeleton at the specified index to the StringBuilder dest.int
codePointAt
(int index) Return the code point (key) at the specified index.void
confusableLookup
(int inChar, StringBuilder dest) Append the confusable skeleton transform for a single code point to a StringBuilder.boolean
static SpoofChecker.SpoofData
int
hashCode()
int
length()
Return the number of confusable entries in this SpoofData.private void
readData
(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
public int 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.
-