Lines Matching refs:ci
30 * @param ci The character iterator
33 public static int next32(CharacterIterator ci) {
36 int c= ci.current();
38 c = ci.next();
40 c = ci.previous();
45 c = ci.next();
50 c = nextTrail32(ci, c);
56 ci.previous();
63 // The call site does an initial ci.next() and calls this function
66 // middle of a surrogate pair. ci.next() will work correctly
67 // from there, but the ci.getIndex() will be wrong, and needs
69 public static int nextTrail32(CharacterIterator ci, int lead) {
70 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) {
75 char cTrail = ci.next();
81 ci.previous();
87 public static int previous32(CharacterIterator ci) {
88 if (ci.getIndex() <= ci.getBeginIndex()) {
91 char trail = ci.previous();
93 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) {
94 char lead = ci.previous();
100 ci.next();
106 public static int current32(CharacterIterator ci) {
107 char lead = ci.current();
113 int trail = (int)ci.next();
114 ci.previous();
122 if (ci.getIndex() >= ci.getEndIndex()) {