private String shapeAsArabicIndic(String text) { // Use U+0660 .. U+0669 are ARABIC-INDIC DIGIT values 0 through 9 // See http://stackoverflow.com/questions/1676460/in-unicode-why-are-there-two-representations-for-the-arabic-digits char[] chars = text.toCharArray(); getNumericShaperArabicIndic().shape(chars, 0, chars.length); return new String(chars); }
((NumericShaper) numericShaper).shape(text, 0, length);
private String shapeAsArabicIndic(String text) { // Use U+0660 .. U+0669 are ARABIC-INDIC DIGIT values 0 through 9 // See http://stackoverflow.com/questions/1676460/in-unicode-why-are-there-two-representations-for-the-arabic-digits char[] chars = text.toCharArray(); getNumericShaperArabicIndic().shape(chars, 0, chars.length); return new String(chars); }
/** * Format. * * @param str * String * @return String */ public static String format(final String str) { final NumericShaper shaper = NumericShaper.getContextualShaper(NumericShaper.ARABIC); final char[] c = str.toCharArray(); shaper.shape(c, 0, c.length, NumericShaper.ARABIC); return new String(c); }
shaper.shape(txt, 0, len);
((NumericShaper) numericShaper).shape(text, 0, length);
((NumericShaper) numericShaper).shape(text, 0, length);
((NumericShaper) numericShaper).shape(text, 0, length);
((NumericShaper) numericShaper).shape(text, 0, length);
((NumericShaper) numericShaper).shape(text, 0, length);
((NumericShaper) numericShaper).shape(text, 0, length);