Indicates whether the specified character is a Unicode space character. That is, if it is a member of one of the Unicode categories Space Separator, Line Separator, or Paragraph Separator. @param c the character to check. @return true if c is a Unicode space character,
(char c)
| 3334 | * {@code false} otherwise. |
| 3335 | */ |
| 3336 | public static boolean isSpaceChar(char c) { |
| 3337 | if (c == 0x20 || c == 0xa0 || c == 0x1680) { |
| 3338 | return true; |
| 3339 | } |
| 3340 | if (c < 0x2000) { |
| 3341 | return false; |
| 3342 | } |
| 3343 | return c <= 0x200b || c == 0x2028 || c == 0x2029 || c == 0x202f |
| 3344 | || c == 0x3000; |
| 3345 | } |
| 3346 | |
| 3347 | /** |
| 3348 | * Indicates whether the specified code point is a Unicode space character. |
no outgoing calls
no test coverage detected