• Home
  • Raw
  • Download

Lines Matching refs:pos

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