It is the processing where the program below at a time one character
fetches character from String and transfers to doSomething method.
this is sample.
For support Limewire to UNICODE dynamic composition.
public static void doSomethingPerCharacter(String string) {
BreakIterator boundary = BreakIterator.getCharacterInstance();
boundary.setText(string);
int start = boundary.first();
for (int end = boundary.next(); end != BreakIterator.DONE;
start = end, end = boundary.next()) {
String c = String.substring(start, end);
doSomething(c);
}
} |