• Home
  • Raw
  • Download

Lines Matching refs:destIndex

49 int32_t checkOverflowAndEditsError(int32_t destIndex, int32_t destCapacity,  in checkOverflowAndEditsError()  argument
52 if (destIndex > destCapacity) { in checkOverflowAndEditsError()
58 return destIndex; in checkOverflowAndEditsError()
63 appendResult(char16_t *dest, int32_t destIndex, int32_t destCapacity, in appendResult() argument
76 return destIndex; in appendResult()
79 if(destIndex<destCapacity && c<=0xffff) { // BMP slightly-fastpath in appendResult()
80 dest[destIndex++]=(char16_t)c; in appendResult()
81 return destIndex; in appendResult()
88 } else if(destIndex<destCapacity && result<=0xffff) { // BMP slightly-fastpath in appendResult()
89 dest[destIndex++]=(char16_t)result; in appendResult()
93 return destIndex; in appendResult()
102 if(length>(INT32_MAX-destIndex)) { in appendResult()
106 if(destIndex<destCapacity) { in appendResult()
111 U16_APPEND(dest, destIndex, destCapacity, c, isError); in appendResult()
114 destIndex+=length; in appendResult()
118 if((destIndex+length)<=destCapacity) { in appendResult()
120 dest[destIndex++]=*s++; in appendResult()
125 destIndex+=length; in appendResult()
130 destIndex+=length; in appendResult()
132 return destIndex; in appendResult()
136 appendUChar(char16_t *dest, int32_t destIndex, int32_t destCapacity, char16_t c) { in appendUChar() argument
137 if(destIndex<destCapacity) { in appendUChar()
138 dest[destIndex]=c; in appendUChar()
139 } else if(destIndex==INT32_MAX) { in appendUChar()
142 return destIndex+1; in appendUChar()
146 appendNonEmptyUnchanged(char16_t *dest, int32_t destIndex, int32_t destCapacity, in appendNonEmptyUnchanged() argument
152 return destIndex; in appendNonEmptyUnchanged()
154 if(length>(INT32_MAX-destIndex)) { in appendNonEmptyUnchanged()
157 if((destIndex+length)<=destCapacity) { in appendNonEmptyUnchanged()
158 u_memcpy(dest+destIndex, s, length); in appendNonEmptyUnchanged()
160 return destIndex + length; in appendNonEmptyUnchanged()
164 appendUnchanged(char16_t *dest, int32_t destIndex, int32_t destCapacity, in appendUnchanged() argument
167 return destIndex; in appendUnchanged()
169 return appendNonEmptyUnchanged(dest, destIndex, destCapacity, s, length, options, edits); in appendUnchanged()
222 int32_t destIndex = 0; in toLower() local
248 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toLower()
250 if (destIndex >= 0) { in toLower()
251 destIndex = appendUChar(dest, destIndex, destCapacity, lead); in toLower()
256 if (destIndex < 0) { in toLower()
284 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toLower()
286 if (destIndex >= 0) { in toLower()
287 destIndex = appendResult(dest, destIndex, destCapacity, c, s, in toLower()
290 if (destIndex < 0) { in toLower()
297 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toLower()
299 if (destIndex < 0) { in toLower()
303 return destIndex; in toLower()
317 int32_t destIndex = 0; in toUpper() local
343 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toUpper()
345 if (destIndex >= 0) { in toUpper()
346 destIndex = appendUChar(dest, destIndex, destCapacity, lead); in toUpper()
351 if (destIndex < 0) { in toUpper()
375 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toUpper()
377 if (destIndex >= 0) { in toUpper()
378 destIndex = appendResult(dest, destIndex, destCapacity, c, s, in toUpper()
381 if (destIndex < 0) { in toUpper()
388 destIndex = appendUnchanged(dest, destIndex, destCapacity, in toUpper()
390 if (destIndex < 0) { in toUpper()
394 return destIndex; in toUpper()
417 … char16_t *dest, int32_t &destIndex, int32_t destCapacity, uint32_t options, in maybeTitleDutchIJ() argument
476destIndex = appendUnchanged(dest, destIndex, destCapacity, src + start, unchanged1, options, edits… in maybeTitleDutchIJ()
479 destIndex = appendUChar(dest, destIndex, destCapacity, u'J'); in maybeTitleDutchIJ()
485destIndex = appendUnchanged(dest, destIndex, destCapacity, src + start, unchanged2, options, edits… in maybeTitleDutchIJ()
507 int32_t destIndex=0; in ustrcase_internalToTitle() local
552 destIndex=appendUnchanged(dest, destIndex, destCapacity, in ustrcase_internalToTitle()
554 if(destIndex<0) { in ustrcase_internalToTitle()
567 destIndex=appendResult(dest, destIndex, destCapacity, c, s, in ustrcase_internalToTitle()
569 if(destIndex<0) { in ustrcase_internalToTitle()
583 dest, destIndex, destCapacity, options, in ustrcase_internalToTitle()
592 destIndex+= in ustrcase_internalToTitle()
595 (dest==nullptr) ? nullptr: dest+destIndex, destCapacity-destIndex, in ustrcase_internalToTitle()
602 return destIndex; in ustrcase_internalToTitle()
606 destIndex=appendUnchanged(dest, destIndex, destCapacity, in ustrcase_internalToTitle()
608 if(destIndex<0) { in ustrcase_internalToTitle()
620 return checkOverflowAndEditsError(destIndex, destCapacity, edits, errorCode); in ustrcase_internalToTitle()
1109 int32_t destIndex=0; in toUpper() local
1214 destIndex=appendUChar(dest, destIndex, destCapacity, (char16_t)upper); in toUpper()
1215 if (destIndex >= 0 && (data & HAS_EITHER_DIALYTIKA) != 0) { in toUpper()
1216destIndex=appendUChar(dest, destIndex, destCapacity, 0x308); // restore or add a dialytika in toUpper()
1218 if (destIndex >= 0 && addTonos) { in toUpper()
1219 destIndex=appendUChar(dest, destIndex, destCapacity, 0x301); in toUpper()
1221 while (destIndex >= 0 && numYpogegrammeni > 0) { in toUpper()
1222 destIndex=appendUChar(dest, destIndex, destCapacity, 0x399); in toUpper()
1225 if(destIndex<0) { in toUpper()
1233 destIndex = appendResult(dest, destIndex, destCapacity, c, s, in toUpper()
1235 if (destIndex < 0) { in toUpper()
1244 return destIndex; in toUpper()
1261 int32_t destIndex = toLower( in ustrcase_internalToLower() local
1266 return checkOverflowAndEditsError(destIndex, destCapacity, edits, errorCode); in ustrcase_internalToLower()
1275 int32_t destIndex; in ustrcase_internalToUpper() local
1277 destIndex = GreekUpper::toUpper(options, dest, destCapacity, in ustrcase_internalToUpper()
1283 destIndex = toUpper( in ustrcase_internalToUpper()
1289 return checkOverflowAndEditsError(destIndex, destCapacity, edits, errorCode); in ustrcase_internalToUpper()
1298 int32_t destIndex = toLower( in ustrcase_internalFold() local
1303 return checkOverflowAndEditsError(destIndex, destCapacity, edits, errorCode); in ustrcase_internalFold()