Lines Matching refs:srcIx
1214 int32_t srcIx = ix; in utf8TextAccess() local
1220 c = s8[srcIx]; in utf8TextAccess()
1225 mapToNative[destIx] = (uint8_t)(srcIx - ix); in utf8TextAccess()
1226 mapToUChars[srcIx-ix] = (uint8_t)destIx; in utf8TextAccess()
1227 srcIx++; in utf8TextAccess()
1236 int32_t cIx = srcIx; in utf8TextAccess()
1239 U8_NEXT_OR_FFFD(s8, srcIx, strLen, c); in utf8TextAccess()
1241 srcIx--; in utf8TextAccess()
1252 } while (cIx < srcIx); in utf8TextAccess()
1254 if (srcIx>=strLen) { in utf8TextAccess()
1262 mapToNative[destIx] = (uint8_t)(srcIx - ix); in utf8TextAccess()
1263 mapToUChars[srcIx - ix] = (uint8_t)destIx; in utf8TextAccess()
1267 u8b_swap->bufNativeLimit = srcIx; in utf8TextAccess()
1285 if (nulTerminated && srcIx>ut->c) { in utf8TextAccess()
1286 ut->c = srcIx; in utf8TextAccess()
1290 ut->b = srcIx; in utf8TextAccess()
1329 int32_t srcIx = ix; in utf8TextAccess() local
1336 mapToNative[destIx] = (uint8_t)(srcIx - toUCharsMapStart); in utf8TextAccess()
1337 mapToUChars[srcIx - toUCharsMapStart] = (uint8_t)destIx; in utf8TextAccess()
1342 while (destIx>2 && (srcIx - toUCharsMapStart > 5) && (srcIx > 0)) { in utf8TextAccess()
1343 srcIx--; in utf8TextAccess()
1347 c = s8[srcIx]; in utf8TextAccess()
1351 U_ASSERT(toUCharsMapStart <= srcIx); in utf8TextAccess()
1352 mapToUChars[srcIx - toUCharsMapStart] = (uint8_t)destIx; in utf8TextAccess()
1353 mapToNative[destIx] = (uint8_t)(srcIx - toUCharsMapStart); in utf8TextAccess()
1357 int32_t sIx = srcIx; // ix of last byte of multi-byte u8 char in utf8TextAccess()
1363 c=utf8_prevCharSafeBody(s8, 0, &srcIx, c, -3); in utf8TextAccess()
1369 mapToNative[destIx] = (uint8_t)(srcIx - toUCharsMapStart); in utf8TextAccess()
1372 mapToNative[destIx] = (uint8_t)(srcIx - toUCharsMapStart); in utf8TextAccess()
1374 mapToNative[destIx] = (uint8_t)(srcIx - toUCharsMapStart); in utf8TextAccess()
1380 } while (sIx >= srcIx); in utf8TextAccess()
1381 U_ASSERT(toUCharsMapStart <= (srcIx+1)); in utf8TextAccess()
1390 u8b_swap->bufNativeStart = srcIx; in utf8TextAccess()