View Single Post
  #15 (permalink)  
Old November 24th, 2002
Unregistered
Guest
 
Posts: n/a
Default

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);
}
}
Reply With Quote