问问题
195 次
1 回答
0
我认为你需要玩 unicode 字符
final String text = "\u091C\u094D\u092F";
final Locale locale = new Locale("hi","IN");
final BreakIterator breaker = BreakIterator.getCharacterInstance(locale);
breaker.setText(text);
int start = breaker.first();
for (int end = breaker.next();
end != BreakIterator.DONE;
start = end, end = breaker.next()) {
final String substring = text.substring(start, end);
System.out.println(substring);
}
于 2016-12-22T07:03:06.347 回答