/* */ public void matchWhiteSpaceDelimnatedWords(CharBuffer cb, WordListener wl) /* */ { /* 50 */ Matcher m = SPACE_PATTERN.matcher(cb); /* 51 */ int i = 0; /* 52 */ int s = 0; /* 53 */ while (m.find()) { /* 54 */ s = m.start(); /* 55 */ if (s != i) { /* 56 */ wl.word(i, s); /* */ } /* 58 */ i = m.end(); /* */ } /* 60 */ if (i != cb.length()) /* 61 */ wl.word(i, cb.length()); /* */ }
public void matchWhiteSpaceDelimnatedWords(CharBuffer cb, WordListener wl) { Matcher m = SPACE_PATTERN.matcher(cb); int i = 0; int s = 0; while (m.find()) { s = m.start(); if (s != i) { wl.word(i, s); } i = m.end(); } if (i != cb.length()) wl.word(i, cb.length()); }