char c = text[i]; if (Character.getDirectionality(c) != LEFT_TO_RIGHT)
byte dir = Character.getDirectionality(text[i]); if (dir != Character.DIRECTIONALITY_LEFT_TO_RIGHT && dir != Character.DIRECTIONALITY_EUROPEAN_NUMBER && dir != Character.DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR && dir != Character.DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR && dir != Character.DIRECTIONALITY_ARABIC_NUMBER && dir != Character.DIRECTIONALITY_COMMON_NUMBER_SEPARATOR && dir != Character.DIRECTIONALITY_SEGMENT_SEPARATOR && dir != Character.DIRECTIONALITY_WHITESPACE)
  public static boolean requiresBidi(char[] text, int start, int end)  {    final int LEFT_TO_RIGHT = Character.DIRECTIONALITY_LEFT_TO_RIGHT;    for (int i = start; i < end; i++)      {	char c = text[i];	if (Character.getDirectionality(c) != LEFT_TO_RIGHT)	  return true;	}		return false;	}