List of usage examples for java.lang Character DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
To view the source code for java.lang Character DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING.
Click Source Link
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_RIGHT_TO_LEFT_EMBEDDING == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/* w w w . j a va2 s . c o m*/ } }
From source file:Main.java
public static boolean isStrongRightToLeft(char c) { byte dir = Character.getDirectionality(c); return (dir == Character.DIRECTIONALITY_RIGHT_TO_LEFT) || (dir == Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC) || (dir == Character.DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING) || (dir == Character.DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE); }
From source file:android.text.TextDirectionHeuristics.java
private static int isRtlTextOrFormat(int directionality) { switch (directionality) { case Character.DIRECTIONALITY_LEFT_TO_RIGHT: case Character.DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING: case Character.DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE: return STATE_FALSE; case Character.DIRECTIONALITY_RIGHT_TO_LEFT: case Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC: case Character.DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING: case Character.DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE: return STATE_TRUE; default:/*from w w w. j ava2 s . c om*/ return STATE_UNKNOWN; } }