Lines Matching refs:srcIndex
218 int32_t srcIndex = srcStart; in toLower() local
224 if (U_FAILURE(errorCode) || srcIndex >= srcLimit) { in toLower()
228 uint8_t lead = src[srcIndex++]; in toLower()
232 cpStart = srcIndex - 1; in toLower()
237 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - 1 - prev, in toLower()
244 prev = srcIndex; in toLower()
248 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLimit && in toLower()
249 (t = src[srcIndex] - 0x80) <= 0x3f) { in toLower()
251 ++srcIndex; in toLower()
255 cpStart = srcIndex - 2; in toLower()
259 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - 2 - prev, in toLower()
265 prev = srcIndex; in toLower()
269 (srcIndex + 2) <= srcLimit && in toLower()
270 U8_IS_TRAIL(src[srcIndex]) && U8_IS_TRAIL(src[srcIndex + 1])) { in toLower()
272 srcIndex += 2; in toLower()
275 cpStart = --srcIndex; in toLower()
276 U8_NEXT(src, srcIndex, srcLimit, c); in toLower()
289 ByteSinkUtil::appendCodePoint(srcIndex - cpStart, c + delta, sink, edits); in toLower()
290 prev = srcIndex; in toLower()
299 csc->cpLimit = srcIndex; in toLower()
307 appendResult(srcIndex - cpStart, c, s, sink, options, edits, errorCode); in toLower()
308 prev = srcIndex; in toLower()
311 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - prev, in toLower()
326 int32_t srcIndex = 0; in toUpper() local
332 if (U_FAILURE(errorCode) || srcIndex >= srcLength) { in toUpper()
336 uint8_t lead = src[srcIndex++]; in toUpper()
340 cpStart = srcIndex - 1; in toUpper()
345 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - 1 - prev, in toUpper()
352 prev = srcIndex; in toUpper()
356 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLength && in toUpper()
357 (t = src[srcIndex] - 0x80) <= 0x3f) { in toUpper()
359 ++srcIndex; in toUpper()
363 cpStart = srcIndex - 2; in toUpper()
367 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - 2 - prev, in toUpper()
373 prev = srcIndex; in toUpper()
377 (srcIndex + 2) <= srcLength && in toUpper()
378 U8_IS_TRAIL(src[srcIndex]) && U8_IS_TRAIL(src[srcIndex + 1])) { in toUpper()
380 srcIndex += 2; in toUpper()
383 cpStart = --srcIndex; in toUpper()
384 U8_NEXT(src, srcIndex, srcLength, c); in toUpper()
397 ByteSinkUtil::appendCodePoint(srcIndex - cpStart, c + delta, sink, edits); in toUpper()
398 prev = srcIndex; in toUpper()
405 csc->cpLimit = srcIndex; in toUpper()
411 appendResult(srcIndex - cpStart, c, s, sink, options, edits, errorCode); in toUpper()
412 prev = srcIndex; in toUpper()
415 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - prev, in toUpper()