• Home
  • Raw
  • Download

Lines Matching refs:srcIndex

217     int32_t srcIndex = srcStart;  in toLower()  local
223 if (U_FAILURE(errorCode) || srcIndex >= srcLimit) { in toLower()
227 uint8_t lead = src[srcIndex++]; in toLower()
231 cpStart = srcIndex - 1; in toLower()
236 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - 1 - prev, in toLower()
243 prev = srcIndex; in toLower()
247 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLimit && in toLower()
248 (t = src[srcIndex] - 0x80) <= 0x3f) { in toLower()
250 ++srcIndex; in toLower()
254 cpStart = srcIndex - 2; in toLower()
258 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - 2 - prev, in toLower()
264 prev = srcIndex; in toLower()
268 (srcIndex + 2) <= srcLimit && in toLower()
269 U8_IS_TRAIL(src[srcIndex]) && U8_IS_TRAIL(src[srcIndex + 1])) { in toLower()
271 srcIndex += 2; in toLower()
274 cpStart = --srcIndex; in toLower()
275 U8_NEXT(src, srcIndex, srcLimit, c); in toLower()
288 ByteSinkUtil::appendCodePoint(srcIndex - cpStart, c + delta, sink, edits); in toLower()
289 prev = srcIndex; in toLower()
298 csc->cpLimit = srcIndex; in toLower()
306 appendResult(srcIndex - cpStart, c, s, sink, options, edits, errorCode); in toLower()
307 prev = srcIndex; in toLower()
310 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - prev, in toLower()
325 int32_t srcIndex = 0; in toUpper() local
331 if (U_FAILURE(errorCode) || srcIndex >= srcLength) { in toUpper()
335 uint8_t lead = src[srcIndex++]; in toUpper()
339 cpStart = srcIndex - 1; in toUpper()
344 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - 1 - prev, in toUpper()
351 prev = srcIndex; in toUpper()
355 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLength && in toUpper()
356 (t = src[srcIndex] - 0x80) <= 0x3f) { in toUpper()
358 ++srcIndex; in toUpper()
362 cpStart = srcIndex - 2; in toUpper()
366 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - 2 - prev, in toUpper()
372 prev = srcIndex; in toUpper()
376 (srcIndex + 2) <= srcLength && in toUpper()
377 U8_IS_TRAIL(src[srcIndex]) && U8_IS_TRAIL(src[srcIndex + 1])) { in toUpper()
379 srcIndex += 2; in toUpper()
382 cpStart = --srcIndex; in toUpper()
383 U8_NEXT(src, srcIndex, srcLength, c); in toUpper()
396 ByteSinkUtil::appendCodePoint(srcIndex - cpStart, c + delta, sink, edits); in toUpper()
397 prev = srcIndex; in toUpper()
404 csc->cpLimit = srcIndex; in toUpper()
410 appendResult(srcIndex - cpStart, c, s, sink, options, edits, errorCode); in toUpper()
411 prev = srcIndex; in toUpper()
414 ByteSinkUtil::appendUnchanged(src + prev, srcIndex - prev, in toUpper()