mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "fix IllegalOutOfBoundsException"
This commit is contained in:
commit
3ec249c6d1
@ -184,6 +184,9 @@ public class StringUtils {
|
||||
final char[] characters = string.toCharArray();
|
||||
final int length = characters.length;
|
||||
final int[] codePoints = new int[Character.codePointCount(characters, 0, length)];
|
||||
if (length <= 0) {
|
||||
return new int[0];
|
||||
}
|
||||
int codePoint = Character.codePointAt(characters, 0);
|
||||
int dsti = 0;
|
||||
for (int srci = Character.charCount(codePoint);
|
||||
|
Loading…
Reference in New Issue
Block a user