android.text.AndroidCharacter Java Examples
The following examples show how to use
android.text.AndroidCharacter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TextUtils.java From PowerFileExplorer with GNU General Public License v3.0 | 5 votes |
public void getChars(int start, int end, char[] dest, int destoff) { TextUtils.getChars(mSource, start + mStart, end + mStart, dest, destoff); AndroidCharacter.mirror(dest, 0, end - start); int len = end - start; int n = (end - start) / 2; for (int i = 0; i < n; i++) { char tmp = dest[destoff + i]; dest[destoff + i] = dest[destoff + len - i - 1]; dest[destoff + len - i - 1] = tmp; } }
Example #2
Source File: TextUtils.java From JotaTextEditor with Apache License 2.0 | 5 votes |
public void getChars(int start, int end, char[] dest, int destoff) { TextUtils.getChars(mSource, start + mStart, end + mStart, dest, destoff); AndroidCharacter.mirror(dest, 0, end - start); int len = end - start; int n = (end - start) / 2; for (int i = 0; i < n; i++) { char tmp = dest[destoff + i]; dest[destoff + i] = dest[destoff + len - i - 1]; dest[destoff + len - i - 1] = tmp; } }
Example #3
Source File: TextUtils.java From PowerFileExplorer with GNU General Public License v3.0 | 4 votes |
public char charAt(int off) { return AndroidCharacter.getMirror(mSource.charAt(mEnd - 1 - off)); }
Example #4
Source File: TextUtils.java From JotaTextEditor with Apache License 2.0 | 4 votes |
public char charAt(int off) { return AndroidCharacter.getMirror(mSource.charAt(mEnd - 1 - off)); }
Example #5
Source File: AndroidCharacterCompat.java From Ansole with GNU General Public License v2.0 | 4 votes |
public static int getEastAsianWidth(char c) { return AndroidCharacter.getEastAsianWidth(c); }