Lines Matching refs:pos

59             return (pos - rawStart) == (o.pos - /*o.*/ rawStart);
63 (pos - start) == (o.pos - o.start);
77 start = segmentStart = pos = rawStart + newOffset;
85 return pos - rawStart;
86 } else if(pos == start) {
107 if(pos == limit) {
110 c = seq.charAt(pos++);
113 (pos != limit && CollationFCD.hasLccc(seq.charAt(pos)))) {
114 --pos;
116 c = seq.charAt(pos++);
120 } else if(checkDir == 0 && pos != limit) {
121 c = seq.charAt(pos++);
128 if(Character.isHighSurrogate(c) && pos != limit &&
129 Character.isLowSurrogate(trail = seq.charAt(pos))) {
130 ++pos;
142 if(pos == start) {
145 c = seq.charAt(--pos);
148 (pos != start && CollationFCD.hasTccc(seq.charAt(pos - 1)))) {
149 ++pos;
151 c = seq.charAt(--pos);
155 } else if(checkDir == 0 && pos != start) {
156 c = seq.charAt(--pos);
163 if(Character.isLowSurrogate(c) && pos != start &&
164 Character.isHighSurrogate(lead = seq.charAt(pos - 1))) {
165 --pos;
177 if(pos == limit) {
180 c = seq.charAt(pos++);
183 (pos != limit && CollationFCD.hasLccc(seq.charAt(pos)))) {
184 --pos;
186 c = seq.charAt(pos++);
190 } else if(checkDir == 0 && pos != limit) {
191 c = seq.charAt(pos++);
222 * To be called when checkDir < 0 || (checkDir == 0 && pos == limit).
223 * Returns with checkDir > 0 || (checkDir == 0 && pos != limit).
226 assert((checkDir < 0 && seq == rawSeq) || (checkDir == 0 && pos == limit));
229 start = segmentStart = pos;
230 if(pos == segmentLimit) {
233 } else { // pos < segmentLimit
244 pos = start = segmentStart = segmentLimit;
256 * Extend the FCD text segment forward or normalize around pos.
257 * To be called when checkDir > 0 && pos != limit.
258 * Returns with checkDir == 0 and pos != limit.
261 assert(checkDir > 0 && seq == rawSeq && pos != limit);
262 // The input text [segmentStart..pos[ passes the FCD check.
263 int p = pos;
272 if(leadCC == 0 && q != pos) {
285 normalize(pos, q);
286 pos = start;
296 assert(pos != limit);
302 * To be called when checkDir > 0 || (checkDir == 0 && pos == start).
303 * Returns with checkDir < 0 || (checkDir == 0 && pos != start).
306 assert((checkDir > 0 && seq == rawSeq) || (checkDir == 0 && pos == start));
309 limit = segmentLimit = pos;
310 if(pos == segmentStart) {
313 } else { // pos > segmentStart
324 pos = limit = segmentLimit = segmentStart;
332 * Extend the FCD text segment backward or normalize around pos.
333 * To be called when checkDir < 0 && pos != start.
334 * Returns with checkDir == 0 and pos != start.
337 assert(checkDir < 0 && seq == rawSeq && pos != start);
338 // The input text [pos..segmentLimit[ passes the FCD check.
339 int p = pos;
348 if(trailCC == 0 && q != pos) {
362 normalize(q, pos);
363 pos = limit;
373 assert(pos != start);
399 // The input text rawSeq[segmentStart..pos[ passes the FCD check.
404 // The input text rawSeq[pos..segmentLimit[ passes the FCD check.
413 // and seq==rawSeq && segmentStart==start<=pos<=limit==segmentLimit,
416 // corresponding to seq==normalized && 0==start<=pos<=limit==start+normalized.length().