Package com.ibm.icu.text
Class SpoofChecker.SpoofData
- java.lang.Object
-
- com.ibm.icu.text.SpoofChecker.SpoofData
-
- Enclosing class:
- SpoofChecker
private static class SpoofChecker.SpoofData extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SpoofChecker.SpoofData.DefaultData
private static class
SpoofChecker.SpoofData.IsAcceptable
-
Field Summary
Fields Modifier and Type Field Description private static int
DATA_FORMAT
(package private) int[]
fCFUKeys
(package private) java.lang.String
fCFUStrings
(package private) short[]
fCFUValues
private static SpoofChecker.SpoofData.IsAcceptable
IS_ACCEPTABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendValueTo(int index, java.lang.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, java.lang.StringBuilder dest)
Append the confusable skeleton transform for a single code point to a StringBuilder.boolean
equals(java.lang.Object other)
static SpoofChecker.SpoofData
getDefault()
int
hashCode()
int
length()
Return the number of confusable entries in this SpoofData.private void
readData(java.nio.ByteBuffer bytes)
-
-
-
Field Detail
-
fCFUKeys
int[] fCFUKeys
-
fCFUValues
short[] fCFUValues
-
fCFUStrings
java.lang.String fCFUStrings
-
DATA_FORMAT
private static final int DATA_FORMAT
- See Also:
- Constant Field Values
-
IS_ACCEPTABLE
private static final SpoofChecker.SpoofData.IsAcceptable IS_ACCEPTABLE
-
-
Method Detail
-
getDefault
public static SpoofChecker.SpoofData getDefault()
- Returns:
- instance for Unicode standard data
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
readData
private void readData(java.nio.ByteBuffer bytes) throws java.io.IOException
- Throws:
java.io.IOException
-
confusableLookup
public void confusableLookup(int inChar, java.lang.StringBuilder dest)
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
public void appendValueTo(int index, java.lang.StringBuilder dest)
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.
-
-