Lines Matching refs:chunkOffset
48 if(ut->chunkOffset>=ut->chunkLength && !utext_access(ut, ut->chunkNativeLimit, TRUE)) { in utext_moveIndex32()
51 c = ut->chunkContents[ut->chunkOffset]; in utext_moveIndex32()
58 ut->chunkOffset++; in utext_moveIndex32()
64 if(ut->chunkOffset<=0 && !utext_access(ut, ut->chunkNativeStart, FALSE)) { in utext_moveIndex32()
67 c = ut->chunkContents[ut->chunkOffset-1]; in utext_moveIndex32()
74 ut->chunkOffset--; in utext_moveIndex32()
98 if(ut->chunkOffset <= ut->nativeIndexingLimit) { in utext_getNativeIndex()
99 return ut->chunkNativeStart+ut->chunkOffset; in utext_getNativeIndex()
116 ut->chunkOffset=(int32_t)(index-ut->chunkNativeStart); in utext_setNativeIndex()
118 ut->chunkOffset=ut->pFuncs->mapNativeIndexToUTF16(ut, index); in utext_setNativeIndex()
122 if (ut->chunkOffset<ut->chunkLength) { in utext_setNativeIndex()
123 UChar c= ut->chunkContents[ut->chunkOffset]; in utext_setNativeIndex()
125 if (ut->chunkOffset==0) { in utext_setNativeIndex()
128 if (ut->chunkOffset>0) { in utext_setNativeIndex()
129 UChar lead = ut->chunkContents[ut->chunkOffset-1]; in utext_setNativeIndex()
131 ut->chunkOffset--; in utext_setNativeIndex()
147 int32_t i = ut->chunkOffset - 1; in utext_getPreviousNativeIndex()
155 ut->chunkOffset = i; in utext_getPreviousNativeIndex()
157 ut->chunkOffset++; in utext_getPreviousNativeIndex()
164 if (ut->chunkOffset==0 && ut->chunkNativeStart==0) { in utext_getPreviousNativeIndex()
186 if (ut->chunkOffset==ut->chunkLength) { in utext_current32()
194 c = ut->chunkContents[ut->chunkOffset]; in utext_current32()
205 if ((ut->chunkOffset+1) < ut->chunkLength) { in utext_current32()
207 trail = ut->chunkContents[ut->chunkOffset+1]; in utext_current32()
217 int32_t originalOffset = ut->chunkOffset; in utext_current32()
219 trail = ut->chunkContents[ut->chunkOffset]; in utext_current32()
223 ut->chunkOffset = originalOffset; in utext_current32()
243 ut->chunkOffset = (int32_t)(nativeIndex - ut->chunkNativeStart); in utext_char32At()
244 c = ut->chunkContents[ut->chunkOffset]; in utext_char32At()
252 if (nativeIndex>=ut->chunkNativeStart && ut->chunkOffset<ut->chunkLength) { in utext_char32At()
253 c = ut->chunkContents[ut->chunkOffset]; in utext_char32At()
268 if (ut->chunkOffset >= ut->chunkLength) { in utext_next32()
274 c = ut->chunkContents[ut->chunkOffset++]; in utext_next32()
282 if (ut->chunkOffset >= ut->chunkLength) { in utext_next32()
289 UChar32 trail = ut->chunkContents[ut->chunkOffset]; in utext_next32()
299 ut->chunkOffset++; // move iteration position over the trail surrogate. in utext_next32()
308 if (ut->chunkOffset <= 0) { in utext_previous32()
313 ut->chunkOffset--; in utext_previous32()
314 c = ut->chunkContents[ut->chunkOffset]; in utext_previous32()
322 if (ut->chunkOffset <= 0) { in utext_previous32()
330 UChar32 lead = ut->chunkContents[ut->chunkOffset-1]; in utext_previous32()
338 ut->chunkOffset--; // move iteration position over the lead surrogate. in utext_previous32()
356 ut->chunkOffset = (int32_t)(index - ut->chunkNativeStart); in utext_next32From()
359 ut->chunkOffset = ut->pFuncs->mapNativeIndexToUTF16(ut, index); in utext_next32From()
362 c = ut->chunkContents[ut->chunkOffset++]; in utext_next32From()
396 ut->chunkOffset = (int32_t)(index - ut->chunkNativeStart); in utext_previous32From()
398 ut->chunkOffset=ut->pFuncs->mapNativeIndexToUTF16(ut, index); in utext_previous32From()
399 if (ut->chunkOffset==0 && !ut->pFuncs->access(ut, index, FALSE)) { in utext_previous32From()
408 ut->chunkOffset--; in utext_previous32From()
409 cPrev = ut->chunkContents[ut->chunkOffset]; in utext_previous32From()
642 ut->chunkOffset = 0; in utext_setup()
718 ut->chunkOffset = 0; in invalidateChunk()
983 ut->chunkOffset = ut->chunkLength; in utf8TextAccess()
1012 ut->chunkOffset = ut->chunkLength; in utf8TextAccess()
1033 ut->chunkOffset = u8b->mapToUChars[mapIndex] - u8b->bufStartIdx; in utf8TextAccess()
1050 ut->chunkOffset = 0; in utf8TextAccess()
1097 ut->chunkOffset = u8b->mapToUChars[mapIndex] - u8b->bufStartIdx; in utf8TextAccess()
1098 if (ut->chunkOffset==0) { in utf8TextAccess()
1133 ut->chunkOffset = u8b->mapToUChars[mapIndex] - u8b->bufStartIdx; in utf8TextAccess()
1161 ut->chunkOffset = ut->chunkLength; in utf8TextAccess()
1163 ut->chunkOffset = 0; in utf8TextAccess()
1272 ut->chunkOffset = 0; in utf8TextAccess()
1385 ut->chunkOffset = ut->chunkLength; in utf8TextAccess()
1525 U_ASSERT(ut->chunkOffset>ut->nativeIndexingLimit && ut->chunkOffset<=ut->chunkLength); in utf8TextMapOffsetToNative()
1526 …int32_t nativeOffset = u8b->mapToNative[ut->chunkOffset + u8b->bufStartIdx] + u8b->toUCharsMapStar… in utf8TextMapOffsetToNative()
1745 ut->chunkOffset = (int32_t)(index - ut->chunkNativeStart); in repTextAccess()
1751 ut->chunkOffset = length - (int32_t)ut->chunkNativeStart; in repTextAccess()
1772 ut->chunkOffset = index32 - (int32_t)ut->chunkNativeStart; in repTextAccess()
1778 ut->chunkOffset = 0; in repTextAccess()
1807 ut->chunkOffset = (int32_t)(index32 - ut->chunkNativeStart); in repTextAccess()
1815 if (ut->chunkOffset > ut->chunkLength) { in repTextAccess()
1816 ut->chunkOffset = ut->chunkLength; in repTextAccess()
1826 --(ut->chunkOffset); in repTextAccess()
1830 U16_SET_CP_START(ut->chunkContents, 0, ut->chunkOffset); in repTextAccess()
2113 ut->chunkOffset = pinIndex(index, length); in unistrTextAccess()
2151 t->chunkOffset = start32+trimmedLength; in unistrTextExtract()
2153 t->chunkOffset = start32; in unistrTextExtract()
2199 ut->chunkOffset = limit32 + lengthDelta; in unistrTextReplace()
2248 ut->chunkOffset = destIndex32+limit32-start32; in unistrTextCopy()
2250 ut->chunkOffset = destIndex32; in unistrTextCopy()
2479 ut->chunkOffset = (int32_t)index; in ucstrTextAccess()
2513 start32 = ut->chunkOffset; in ucstrTextExtract()
2560 ut->chunkOffset = uprv_min(strLength, start32 + destCapacity); in ucstrTextExtract()
2615 ut->chunkOffset = 0; in utext_openUChars()
2718 U_ASSERT(ut->chunkOffset>=0 && ut->chunkOffset<=CIBufSize); in charIterTextAccess()
2720 ut->chunkOffset = clippedIndex - (int32_t)ut->chunkNativeStart; in charIterTextAccess()
2721 UBool success = (forward? ut->chunkOffset<ut->chunkLength : ut->chunkOffset>0); in charIterTextAccess()
2848 ut->chunkOffset = 1; in utext_openCharacterIterator()
2851 ut->nativeIndexingLimit = ut->chunkOffset; // enables native indexing in utext_openCharacterIterator()