Lines Matching refs:ci
26 * @param ci The character iterator
29 public static int next32(CharacterIterator ci) {
32 int c= ci.current();
34 c = ci.next();
36 c = ci.previous();
41 c = ci.next();
46 c = nextTrail32(ci, c);
52 ci.previous();
59 // The call site does an initial ci.next() and calls this function
62 // middle of a surrogate pair. ci.next() will work correctly
63 // from there, but the ci.getIndex() will be wrong, and needs
65 public static int nextTrail32(CharacterIterator ci, int lead) {
66 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) {
71 char cTrail = ci.next();
77 ci.previous();
83 public static int previous32(CharacterIterator ci) {
84 if (ci.getIndex() <= ci.getBeginIndex()) {
87 char trail = ci.previous();
89 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) {
90 char lead = ci.previous();
96 ci.next();
102 public static int current32(CharacterIterator ci) {
103 char lead = ci.current();
109 int trail = (int)ci.next();
110 ci.previous();
118 if (ci.getIndex() >= ci.getEndIndex()) {