List of usage examples for java.lang Character DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
To view the source code for java.lang Character DIRECTIONALITY_LEFT_TO_RIGHT_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_LEFT_TO_RIGHT_EMBEDDING == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/* ww w .j a va 2s.com*/ } }
From source file:Main.java
public static boolean isStrongLeftToRight(char c) { byte dir = Character.getDirectionality(c); return (dir == Character.DIRECTIONALITY_LEFT_TO_RIGHT) || (dir == Character.DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING) || (dir == Character.DIRECTIONALITY_LEFT_TO_RIGHT_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 .ja va2s . c o m*/ return STATE_UNKNOWN; } }