Returns the byte length of a UTF-8 character. @param b first byte of a token @return character length
(final byte b)
| 240 | * @return character length |
| 241 | */ |
| 242 | public static int cl(final byte b) { |
| 243 | return b >= 0 || b < -64 ? 1 : b < -32 ? 2 : b < -16 ? 3 : 4; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Returns the byte length of a UTF-8 character at the specified position. |
no outgoing calls
no test coverage detected