Example usage for java.lang Character SPACE_SEPARATOR

List of usage examples for java.lang Character SPACE_SEPARATOR

Introduction

In this page you can find the example usage for java.lang Character SPACE_SEPARATOR.

Prototype

byte SPACE_SEPARATOR

To view the source code for java.lang Character SPACE_SEPARATOR.

Click Source Link

Document

General category "Zs" in the Unicode specification.

Usage

From source file:com.jecelyin.editor.v2.core.text.TextUtils.java

/**
 * Returns whether this character is a printable character.
 *//*from   ww  w  .j a  v a2 s  .  co  m*/
public static boolean isGraphic(char c) {
    int gc = Character.getType(c);
    return gc != Character.CONTROL && gc != Character.FORMAT && gc != Character.SURROGATE
            && gc != Character.UNASSIGNED && gc != Character.LINE_SEPARATOR
            && gc != Character.PARAGRAPH_SEPARATOR && gc != Character.SPACE_SEPARATOR;
}