MCPcopy Create free account
hub / github.com/davidgiven/luje / isSpaceChar

Method isSpaceChar

lib/java/lang/Character.java:3336–3345  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 2

validateMethod · 0.95
quoteIllegalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected