Lines Matching refs:pos

34           pos(newText + (other.pos - other.start)),
45 return (pos - start) == (o.pos - o.start);
51 pos = start + newOffset;
56 return (int32_t)(pos - start);
61 if(pos == limit) {
65 c = *pos++;
71 if(pos == limit) { return 0; }
73 if(U16_IS_TRAIL(trail = *pos)) { ++pos; }
80 limit = --pos;
89 if(pos == limit) {
92 UChar32 c = *pos;
94 limit = pos;
97 ++pos;
99 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
100 ++pos;
109 if(pos == start) {
112 UChar32 c = *--pos;
114 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) {
115 --pos;
124 while(num > 0 && pos != limit) {
125 UChar32 c = *pos;
127 limit = pos;
130 ++pos;
132 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(*pos)) {
133 ++pos;
140 while(num > 0 && pos != start) {
141 UChar32 c = *--pos;
143 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(*(pos-1))) {
144 --pos;
163 pos = newText + (other.pos - other.rawStart);
167 pos = start + (other.pos - other.start);
183 return (pos - rawStart) == (o.pos - o.rawStart);
186 (pos - start) == (o.pos - o.start);
193 start = segmentStart = pos = rawStart + newOffset;
201 return (int32_t)(pos - rawStart);
202 } else if(pos == start) {
213 if(pos == limit) {
217 c = *pos++;
220 (pos != limit && CollationFCD::hasLccc(*pos))) {
221 --pos;
226 c = *pos++;
230 } else if(checkDir == 0 && pos != limit) {
231 c = *pos++;
243 limit = rawLimit = --pos;
255 if(pos == limit) {
258 c = *pos++;
261 (pos != limit && CollationFCD::hasLccc(*pos))) {
262 --pos;
266 c = *pos++;
269 limit = rawLimit = --pos;
273 } else if(checkDir == 0 && pos != limit) {
274 c = *pos++;
281 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
282 ++pos;
294 if(pos == start) {
297 c = *--pos;
300 (pos != start && CollationFCD::hasTccc(*(pos - 1)))) {
301 ++pos;
305 c = *--pos;
309 } else if(checkDir == 0 && pos != start) {
310 c = *--pos;
317 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) {
318 --pos;
345 U_ASSERT(checkDir < 0 || (checkDir == 0 && pos == limit));
348 start = segmentStart = pos;
349 if(pos == segmentLimit) {
352 } else { // pos < segmentLimit
362 pos = start = segmentStart = segmentLimit;
376 U_ASSERT(checkDir > 0 && pos != limit);
377 // The input text [segmentStart..pos[ passes the FCD check.
378 const UChar *p = pos;
385 if(leadCC == 0 && q != pos) {
395 if(!normalize(pos, q, errorCode)) { return FALSE; }
396 pos = start;
406 U_ASSERT(pos != limit);
413 U_ASSERT(checkDir > 0 || (checkDir == 0 && pos == start));
416 limit = segmentLimit = pos;
417 if(pos == segmentStart) {
420 } else { // pos > segmentStart
430 pos = limit = segmentLimit = segmentStart;
440 U_ASSERT(checkDir < 0 && pos != start);
441 // The input text [pos..segmentLimit[ passes the FCD check.
442 const UChar *p = pos;
449 if(trailCC == 0 && q != pos) {
461 if(!normalize(q, pos, errorCode)) { return FALSE; }
462 pos = limit;
472 U_ASSERT(pos != start);