• Home
  • Raw
  • Download

Lines Matching refs:destIndex

43 int32_t checkOverflowAndEditsError(int32_t destIndex, int32_t destCapacity,  in checkOverflowAndEditsError()  argument
46 if (destIndex > destCapacity) { in checkOverflowAndEditsError()
52 return destIndex; in checkOverflowAndEditsError()
57 appendResult(UChar *dest, int32_t destIndex, int32_t destCapacity, in appendResult() argument
70 return destIndex; in appendResult()
73 if(destIndex<destCapacity && c<=0xffff) { // BMP slightly-fastpath in appendResult()
74 dest[destIndex++]=(UChar)c; in appendResult()
75 return destIndex; in appendResult()
82 } else if(destIndex<destCapacity && result<=0xffff) { // BMP slightly-fastpath in appendResult()
83 dest[destIndex++]=(UChar)result; in appendResult()
87 return destIndex; in appendResult()
96 if(length>(INT32_MAX-destIndex)) { in appendResult()
100 if(destIndex<destCapacity) { in appendResult()
105 U16_APPEND(dest, destIndex, destCapacity, c, isError); in appendResult()
108 destIndex+=length; in appendResult()
112 if((destIndex+length)<=destCapacity) { in appendResult()
114 dest[destIndex++]=*s++; in appendResult()
119 destIndex+=length; in appendResult()
124 destIndex+=length; in appendResult()
126 return destIndex; in appendResult()
130 appendUChar(UChar *dest, int32_t destIndex, int32_t destCapacity, UChar c) { in appendUChar() argument
131 if(destIndex<destCapacity) { in appendUChar()
132 dest[destIndex]=c; in appendUChar()
133 } else if(destIndex==INT32_MAX) { in appendUChar()
136 return destIndex+1; in appendUChar()
140 appendNonEmptyUnchanged(UChar *dest, int32_t destIndex, int32_t destCapacity, in appendNonEmptyUnchanged() argument
146 return destIndex; in appendNonEmptyUnchanged()
148 if(length>(INT32_MAX-destIndex)) { in appendNonEmptyUnchanged()
151 if((destIndex+length)<=destCapacity) { in appendNonEmptyUnchanged()
152 u_memcpy(dest+destIndex, s, length); in appendNonEmptyUnchanged()
154 return destIndex + length; in appendNonEmptyUnchanged()
158 appendUnchanged(UChar *dest, int32_t destIndex, int32_t destCapacity, in appendUnchanged() argument
161 return destIndex; in appendUnchanged()
163 return appendNonEmptyUnchanged(dest, destIndex, destCapacity, s, length, options, edits); in appendUnchanged()
216 int32_t destIndex = 0; in toLower() local
242 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toLower()
244 if (destIndex >= 0) { in toLower()
245 destIndex = appendUChar(dest, destIndex, destCapacity, lead); in toLower()
250 if (destIndex < 0) { in toLower()
278 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toLower()
280 if (destIndex >= 0) { in toLower()
281 destIndex = appendResult(dest, destIndex, destCapacity, c, s, in toLower()
284 if (destIndex < 0) { in toLower()
291 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toLower()
293 if (destIndex < 0) { in toLower()
297 return destIndex; in toLower()
311 int32_t destIndex = 0; in toUpper() local
337 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toUpper()
339 if (destIndex >= 0) { in toUpper()
340 destIndex = appendUChar(dest, destIndex, destCapacity, lead); in toUpper()
345 if (destIndex < 0) { in toUpper()
369 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toUpper()
371 if (destIndex >= 0) { in toUpper()
372 destIndex = appendResult(dest, destIndex, destCapacity, c, s, in toUpper()
375 if (destIndex < 0) { in toUpper()
382 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toUpper()
384 if (destIndex < 0) { in toUpper()
388 return destIndex; in toUpper()
413 int32_t destIndex=0; in ustrcase_internalToTitle() local
458 destIndex=appendUnchanged(dest, destIndex, destCapacity, in ustrcase_internalToTitle()
460 if(destIndex<0) { in ustrcase_internalToTitle()
473 destIndex=appendResult(dest, destIndex, destCapacity, c, s, in ustrcase_internalToTitle()
475 if(destIndex<0) { in ustrcase_internalToTitle()
485 destIndex=appendUChar(dest, destIndex, destCapacity, 0x004A); in ustrcase_internalToTitle()
486 if(destIndex<0) { in ustrcase_internalToTitle()
496 destIndex=appendUnchanged(dest, destIndex, destCapacity, in ustrcase_internalToTitle()
498 if(destIndex<0) { in ustrcase_internalToTitle()
510 destIndex+= in ustrcase_internalToTitle()
513 dest+destIndex, destCapacity-destIndex, in ustrcase_internalToTitle()
520 return destIndex; in ustrcase_internalToTitle()
524 destIndex=appendUnchanged(dest, destIndex, destCapacity, in ustrcase_internalToTitle()
526 if(destIndex<0) { in ustrcase_internalToTitle()
538 return checkOverflowAndEditsError(destIndex, destCapacity, edits, errorCode); in ustrcase_internalToTitle()
1027 int32_t destIndex=0; in toUpper() local
1132 destIndex=appendUChar(dest, destIndex, destCapacity, (UChar)upper); in toUpper()
1133 if (destIndex >= 0 && (data & HAS_EITHER_DIALYTIKA) != 0) { in toUpper()
1134destIndex=appendUChar(dest, destIndex, destCapacity, 0x308); // restore or add a dialytika in toUpper()
1136 if (destIndex >= 0 && addTonos) { in toUpper()
1137 destIndex=appendUChar(dest, destIndex, destCapacity, 0x301); in toUpper()
1139 while (destIndex >= 0 && numYpogegrammeni > 0) { in toUpper()
1140 destIndex=appendUChar(dest, destIndex, destCapacity, 0x399); in toUpper()
1143 if(destIndex<0) { in toUpper()
1151 destIndex = appendResult(dest, destIndex, destCapacity, c, s, in toUpper()
1153 if (destIndex < 0) { in toUpper()
1162 return destIndex; in toUpper()
1179 int32_t destIndex = toLower( in ustrcase_internalToLower() local
1184 return checkOverflowAndEditsError(destIndex, destCapacity, edits, errorCode); in ustrcase_internalToLower()
1193 int32_t destIndex; in ustrcase_internalToUpper() local
1195 destIndex = GreekUpper::toUpper(options, dest, destCapacity, in ustrcase_internalToUpper()
1201 destIndex = toUpper( in ustrcase_internalToUpper()
1207 return checkOverflowAndEditsError(destIndex, destCapacity, edits, errorCode); in ustrcase_internalToUpper()
1216 int32_t destIndex = toLower( in ustrcase_internalFold() local
1221 return checkOverflowAndEditsError(destIndex, destCapacity, edits, errorCode); in ustrcase_internalFold()