Example usage for java.lang Character DIRECTIONALITY_POP_DIRECTIONAL_FORMAT

List of usage examples for java.lang Character DIRECTIONALITY_POP_DIRECTIONAL_FORMAT

Introduction

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

Prototype

byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT

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

Click Source Link

Document

Weak bidirectional character type "PDF" in the Unicode specification.

Usage

From source file:Main.java

public static void main(String[] args) {
    for (char ch = Character.MIN_VALUE; ch < Character.MAX_VALUE; ch++) {
        if (Character.DIRECTIONALITY_POP_DIRECTIONAL_FORMAT == Character.getDirectionality(ch)) {
            String s = String.format("\\u%04x", (int) ch);
            System.out.println(s);
        }/* w ww . j  a va2 s . c  o  m*/
    }
}