Home | History | Annotate | Download | only in impl

Lines Matching defs:ci

28      * @param ci  The character iterator
31 public static int next32(CharacterIterator ci) {
34 int c = ci.current();
36 c = ci.next();
38 ci.previous();
43 c = ci.next();
48 c = nextTrail32(ci, c);
54 ci.previous();
61 // The call site does an initial ci.next() and calls this function
64 // middle of a surrogate pair. ci.next() will work correctly
65 // from there, but the ci.getIndex() will be wrong, and needs
67 public static int nextTrail32(CharacterIterator ci, int lead) {
68 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) {
73 char cTrail = ci.next();
79 ci.previous();
85 public static int previous32(CharacterIterator ci) {
86 if (ci.getIndex() <= ci.getBeginIndex()) {
89 char trail = ci.previous();
91 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) {
92 char lead = ci.previous();
98 ci.next();
104 public static int current32(CharacterIterator ci) {
105 char lead = ci.current();
111 int trail = (int)ci.next();
112 ci.previous();
120 if (ci.getIndex() >= ci.getEndIndex()) {