Lines Matching refs:pos
120 (s)->string = (s)->pos = sourceString;
183 return s == NULL || s->pos == s->endp;
197 backup->pos = data->pos;
237 data->pos = backup->pos;
247 data->pos = data->writableBuffer.getTerminatedBuffer() +
248 (data->pos - backup->bufferaddress);
253 (int32_t)(data->pos - backup->bufferaddress);
254 data->pos = data->writableBuffer.getTerminatedBuffer() + (data->writableBuffer.length() - temp);
354 if ((s->flags & UCOL_ITER_HASLEN) == 0 && *s->pos != 0) {
363 return (s->pos == s->endp);
399 if (source->pos <= source->string ||
401 *(source->pos - 1) == 0 && source->fcdPosition == NULL)) {
414 if (source->pos == source->string) {
419 //return (data->pos == data->string) ||
1375 const UChar *srcP = collationSource->pos - 1; /* Start of chars to normalize */
1388 collationSource->pos = collationSource->writableBuffer.getTerminatedBuffer();
1429 collationSource->pos = collationSource->writableBuffer;
1454 srcP = collationSource->pos-1;
1532 ch = *collationSource->pos++;
1544 if (collationSource->pos >= collationSource->endp) {
1548 ch = *collationSource->pos++;
1560 ch = *collationSource->pos++;
1565 collationSource->pos--;
1574 if (collationSource->pos == collationSource->writableBuffer.getBuffer()+1) {
1581 collationSource->pos = collationSource->fcdPosition;
1606 if (collationSource->fcdPosition >= collationSource->pos) {
1619 if ((collationSource->flags & UCOL_ITER_HASLEN) && collationSource->pos >= collationSource->endp) {
1626 if (*collationSource->pos < NFC_ZERO_CC_BLOCK_LIMIT_) {
1715 const UChar *pEnd = data->pos; /* End normalize + 1 */
1756 int32_t trailOffset = (int32_t)(data->pos - data->string + 1);
1800 data->pos = data->writableBuffer.getTerminatedBuffer() + 1 + normLen;
1832 src = data->pos + 1;
1878 if(source->pos != NULL) {
1879 return *(source->pos + offset);
1901 if(source->pos != NULL) {
1902 const UChar *p = source->pos;
1968 if(data->pos == NULL && data->iterator != NULL) {
1972 return (data->pos == data->string) ||
1973 ((data->flags & UCOL_ITER_INNORMBUF) && (data->pos != NULL) &&
1974 *(data->pos - 1) == 0 && data->fcdPosition == NULL);
1982 if(data->pos) {
1983 data->pos--;
1992 if(data->pos) {
1993 data->pos --;
2051 if (data->pos <= data->string) {
2055 data->pos --;
2056 ch = *data->pos;
2068 data->pos --;
2069 ch = *data->pos;
2082 data->pos = data->string;
2086 data->pos = data->fcdPosition + 1;
2107 * Note if pos is in the writablebuffer, norm is always 0
2112 (data->fcdPosition != NULL && data->fcdPosition <= data->pos)
2113 || data->string == data->pos) {
2119 if (data->pos == data->string) {
2125 if (*(data->pos - 1) < NFC_ZERO_CC_BLOCK_LIMIT_) {
2256 * This normalization sequence will place the current character at source->pos
2258 * The fcd position, pos will be changed.
2259 * pos will now point to positions in the buffer.
2269 const UChar *pStart = data->pos - 1;
2288 data->pos = data->writableBuffer.getTerminatedBuffer() + strsize;
2320 return *(data->pos ++);
2329 if ((innormbuf && *data->pos != 0) ||
2331 data->pos < data->fcdPosition)) {
2336 return *(data->pos ++);
2341 if (data->pos + 1 == data->endp) {
2342 return *(data->pos ++);
2356 //return *(data->pos++);
2366 data->pos = insertBufferEnd(data, *(data->fcdPosition)) + 1;
2367 // Check if data->pos received a null pointer
2368 if (data->pos == NULL) {
2373 data->pos = data->fcdPosition;
2378 data->pos = NULL;
2384 if (*(data->pos + 1) == 0) {
2385 return *(data->pos ++);
2390 ch = *data->pos ++;
2391 nextch = *data->pos;
2397 if ((data->fcdPosition == NULL || data->fcdPosition < data->pos) &&
2406 return *(data->pos ++);
2412 int32_t length = (int32_t)(data->fcdPosition - data->pos + 1);
2413 data->pos = insertBufferEnd(data, data->pos - 1, length);
2414 // Check if data->pos received a null pointer
2415 if (data->pos == NULL) {
2418 return *(data->pos ++);
2427 data->pos = insertBufferEnd(data, ch) + 1;
2428 // Check if data->pos received a null pointer
2429 if (data->pos == NULL) {
2434 /* points back to the pos in string */
2451 normalization buffer and reassign the pos pointer. simple case if pos
2453 fcdposition = pos, pos = start of normalization buffer. if pos in
2454 normalization buffer, we'll insert the copy infront of pos and point pos
2459 int32_t replaceLength = source->pos - source->writableBuffer.getBuffer();
2463 source->fcdPosition = source->pos;
2470 source->pos = source->writableBuffer.getTerminatedBuffer();
2485 /* source->pos currently points to the second combining character after
2487 const UChar *temppos = source->pos;
2503 if (((source->flags & UCOL_ITER_HASLEN) && source->pos >= source->endp)
2505 //|| (*source->pos == 0 &&
2515 //u_getCombiningClass(*(source->pos)) == 0) {
2518 source->pos = temppos - 1;
2558 temppos = source->pos + 1;
2576 //source->pos = temppos - 1;
2599 data->pos = data->writableBuffer.setCharAt(0, ch).insert(0, (UChar)0).getTerminatedBuffer() + 2;
2604 * This normalization sequence will place the current character at source->pos
2606 * The fcd position, pos will be changed.
2607 * pos will now point to positions in the buffer.
2614 const UChar *pEnd = data->pos + 1; /* End normalize + 1 */
2647 data->pos =
2676 (innormbuf && *(data->pos - 1) != 0)) {
2686 return *(data->pos - 1);
2690 start = data->pos;
2709 return *(data->pos - 1);
2726 const UChar *backuppos = data->pos;
2727 data->pos = start;
2730 return *(data->pos - 1);
2732 data->pos = backuppos;
2993 // position. Before, the only thing I needed to do was state.pos--;
3283 source->pos = NULL;
3300 source->fcdPosition = source->pos;
3302 source->pos = source->writableBuffer.getTerminatedBuffer();
3345 } else if((((source->flags & UCOL_ITER_HASLEN) == 0 ) || (source->pos<source->endp)) &&
3346 U_IS_TRAIL((nextChar=*source->pos))) {
3348 source->pos++;
3381 int32_t firstOffset = (int32_t)(collationSource->pos - collationSource->string);
3554 if(source->pos) { // actually dealing with a position
3555 newsize = (int32_t)(source->pos - source->string + 1);
3571 if ((source->pos && (source->pos == source->string ||
3573 *(source->pos - 1) == 0 && source->fcdPosition == NULL)))
3588 offsetBias = (int32_t)(source->pos - source->string);
3604 rawOffset = (int32_t)(temp.pos - temp.string); // should always be zero?
3639 rawOffset = (int32_t)(temp.pos - temp.string);
3684 int32_t firstOffset = (int32_t)(source->pos - source->string);
3707 int32_t firstOffset = (int32_t)(source->pos - source->string);
4024 int32_t firstOffset = (int32_t)(source->pos - source->string);
4068 if (source->pos == source->string) {
4072 jamoOffset = source->pos - source->string;
4073 source->fcdPosition = source->pos-1;
4091 source->pos = source->writableBuffer.getTerminatedBuffer() + tempbufferLength;
4125 if (source->pos != source->writableBuffer.getBuffer()) {
4126 prev = source->pos - 1;
4135 source->pos = prev;
6533 if(s.pos != s.endp || CE == UCOL_NO_MORE_CES) {
7053 uint32_t *pos;
7060 (b)->buf = (b)->pos = (b)->localArray;
7071 oldSize = (uint32_t)(b->pos - b->buf);
7084 b->pos = b->buf + oldSize;
7090 if (b->pos == b->endp) {
7094 *(b)->pos++ = ce;
7430 sCE = sCEs.pos-2; /* this could also be sCEs-- if needs to be optimized */
7431 tCE = tCEs.pos-2;