Checks if a character is a combining mark. @param type character type @return result of check
(final int type)
| 69 | * @return result of check |
| 70 | */ |
| 71 | private static boolean isCombining(final int type) { |
| 72 | return (1 << type & ( |
| 73 | 1 << Character.NON_SPACING_MARK | |
| 74 | 1 << Character.COMBINING_SPACING_MARK | |
| 75 | 1 << Character.ENCLOSING_MARK | |
| 76 | 1 << Character.MODIFIER_LETTER |
| 77 | )) != 0; |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Returns a codepoint without diacritics. |
no outgoing calls
no test coverage detected