List of usage examples for java.lang Character DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
To view the source code for java.lang Character DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE.
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_OVERRIDE == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/*from w ww.j a v a 2 s . co m*/ } }
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 .j av a2 s .c o m*/ return STATE_UNKNOWN; } }