Home | History | Annotate | Download | only in impl

Lines Matching refs:ci

32      * @param ci  The character iterator
35 public static int next32(CharacterIterator ci) {
38 int c = ci.current();
40 c = ci.next();
42 ci.previous();
47 c = ci.next();
52 c = nextTrail32(ci, c);
58 ci.previous();
65 // The call site does an initial ci.next() and calls this function
68 // middle of a surrogate pair. ci.next() will work correctly
69 // from there, but the ci.getIndex() will be wrong, and needs
71 public static int nextTrail32(CharacterIterator ci, int lead) {
72 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) {
77 char cTrail = ci.next();
83 ci.previous();
89 public static int previous32(CharacterIterator ci) {
90 if (ci.getIndex() <= ci.getBeginIndex()) {
93 char trail = ci.previous();
95 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) {
96 char lead = ci.previous();
102 ci.next();
108 public static int current32(CharacterIterator ci) {
109 char lead = ci.current();
115 int trail = (int)ci.next();
116 ci.previous();
124 if (ci.getIndex() >= ci.getEndIndex()) {