| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static boolean | |
| private static boolean | isRegionalIndicator(int codePoint)
Returns true if the code point is a Regional Indicator symbol (U+1F1E6-U+1F1FF). |
| private static boolean | |
| public static int | |
| public static int | Returns: 0 for zero-width characters, 2 for wide characters, 1 otherwisethe Unicode code point codePoint)Returns the display width (0, 1, or 2) of a Unicode code point. |
| BMP_WIDTHS | back to summary |
|---|---|
| private static final byte[] BMP_WIDTHS | |
| SUPPLEMENTARY_WIDE_ENDS | back to summary |
|---|---|
| private static final int[] SUPPLEMENTARY_WIDE_ENDS | |
| SUPPLEMENTARY_WIDE_STARTS | back to summary |
|---|---|
| private static final int[] SUPPLEMENTARY_WIDE_STARTS | |
| SUPPLEMENTARY_ZERO_ENDS | back to summary |
|---|---|
| private static final int[] SUPPLEMENTARY_ZERO_ENDS | |
| SUPPLEMENTARY_ZERO_STARTS | back to summary |
|---|---|
| private static final int[] SUPPLEMENTARY_ZERO_STARTS | |
| CharWidth | back to summary |
|---|---|
| private CharWidth() | |
| inRanges | back to summary |
|---|---|
| private static boolean inRanges(int codePoint, int[] starts, int[] ends) | |
| isModifier | back to summary |
|---|---|
| private static boolean isModifier(int cp) | |
| isRegionalIndicator | back to summary |
|---|---|
| private static boolean isRegionalIndicator(int codePoint) Returns true if the code point is a Regional Indicator symbol (U+1F1E6-U+1F1FF). Regional Indicator pairs form flag emoji. | |
| isTagCharacter | back to summary |
|---|---|
| private static boolean isTagCharacter(int cp) | |
| of | back to summary |
|---|---|
| public static int of(String s) Returns the total display width of a string. Handles grapheme clusters correctly:
| |
| ofCodePoint | back to summary |
|---|---|
| public static int ofCodePoint(int codePoint) Returns the display width (0, 1, or 2) of a Unicode code point.
| |