Lines Matching defs:source
1093 * see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/conversion/conversion_extensions.html
1106 const UChar **source, const UChar *sourceLimit,
1118 cp, source, sourceLimit,
1173 const uint8_t **source, const uint8_t *sourceLimit,
1183 length, (const char **)source, (const char *)sourceLimit,
2035 const uint8_t *source, *sourceLimit;
2050 source=(const uint8_t *)pArgs->source;
2066 while(source<sourceLimit) {
2071 * from the last source byte.
2081 entry=stateTable[0][*source++];
2154 pArgs->source=(const char *)source;
2155 cnv->toUBytes[0]=*(source-1);
2157 1, &source, sourceLimit,
2162 sourceIndex+=1+(int32_t)(source-(const uint8_t *)pArgs->source);
2172 pArgs->source=(const char *)source;
2187 const uint8_t *source, *sourceLimit, *lastSource;
2201 source=(const uint8_t *)pArgs->source;
2215 lastSource=source;
2221 length=(int32_t)(sourceLimit-source);
2235 oredEntries=entry=stateTable[0][*source++];
2237 oredEntries|=entry=stateTable[0][*source++];
2239 oredEntries|=entry=stateTable[0][*source++];
2241 oredEntries|=entry=stateTable[0][*source++];
2243 oredEntries|=entry=stateTable[0][*source++];
2245 oredEntries|=entry=stateTable[0][*source++];
2247 oredEntries|=entry=stateTable[0][*source++];
2249 oredEntries|=entry=stateTable[0][*source++];
2251 oredEntries|=entry=stateTable[0][*source++];
2253 oredEntries|=entry=stateTable[0][*source++];
2255 oredEntries|=entry=stateTable[0][*source++];
2257 oredEntries|=entry=stateTable[0][*source++];
2259 oredEntries|=entry=stateTable[0][*source++];
2261 oredEntries|=entry=stateTable[0][*source++];
2263 oredEntries|=entry=stateTable[0][*source++];
2265 oredEntries|=entry=stateTable[0][*source++];
2271 source-=16;
2305 while(targetCapacity > 0 && source < sourceLimit) {
2306 entry=stateTable[0][*source++];
2341 int32_t count=(int32_t)(source-lastSource);
2355 lastSource=source;
2356 cnv->toUBytes[0]=*(source-1);
2358 1, &source, sourceLimit,
2363 sourceIndex+=1+(int32_t)(source-lastSource);
2372 length=(int32_t)(sourceLimit-source);
2384 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=pArgs->targetLimit) {
2391 size_t count=source-lastSource;
2399 pArgs->source=(const char *)source;
2467 const uint8_t *source, *sourceLimit;
2511 source=(const uint8_t *)pArgs->source;
2543 while(source<sourceLimit) {
2548 * from the last source byte.
2562 entry=stateTable[state][*source];
2567 ++source;
2568 if( source<sourceLimit &&
2569 MBCS_ENTRY_IS_FINAL(entry=stateTable[state][*source]) &&
2573 ++source;
2579 bytes[0]=*(source-1);
2586 ++source;
2594 } while(source<sourceLimit && target<targetLimit);
2597 entry=stateTable[state][*source];
2602 ++source;
2603 if( source<sourceLimit &&
2604 MBCS_ENTRY_IS_FINAL(entry=stateTable[state][*source]) &&
2608 ++source;
2619 bytes[0]=*(source-1);
2626 ++source;
2638 source<sourceLimit && target<targetLimit);
2645 if(source>=sourceLimit) {
2655 bytes[byteIndex++]=*source++;
2658 entry=stateTable[state][bytes[byteIndex++]=*source++];
2833 int32_t bytesFromThisBuffer=(int32_t)(source-(const uint8_t *)pArgs->source);
2836 source-=backOutDistance;
2842 source=(const uint8_t *)pArgs->source;
2849 pArgs->source=(const char *)source;
2851 byteIndex, &source, sourceLimit,
2856 sourceIndex=nextSourceIndex+=(int32_t)(source-(const uint8_t *)pArgs->source);
2871 pArgs->source=(const char *)source;
2885 const uint8_t *source, *sourceLimit;
2892 source=(const uint8_t *)pArgs->source;
2901 while(source<sourceLimit) {
2902 entry=stateTable[0][*source++];
2906 pArgs->source=(const char *)source;
2943 pArgs->source=(const char *)source-1;
2969 const uint8_t *source, *sourceLimit, *lastSource;
3001 source=lastSource=(const uint8_t *)pArgs->source;
3025 while(source<sourceLimit) {
3026 entry=stateTable[state][*source++];
3032 if( source<sourceLimit &&
3033 MBCS_ENTRY_IS_FINAL(entry=stateTable[state][*source]) &&
3037 ++source;
3125 lastSource=source;
3139 pArgs->source=(const char *)lastSource;
3146 if(U_SUCCESS(*pErrorCode) && source==sourceLimit && lastSource<source) {
3149 cnv->toULength=(int8_t)(source-lastSource);
3152 } while(lastSource<source);
3165 if(lastSource==source) {
3167 } else /* lastSource<source: multi-byte character */ {
3170 lastSource<source && !isSingleOrLead(stateTable, state, isDBCSOnly, *lastSource);
3176 source=lastSource;
3190 pArgs->source=(const char *)source;
3264 const char *source, int32_t length,
3290 return ucnv_MBCSSingleSimpleGetNextUChar(sharedData, (uint8_t)*source, useFallback);
3307 entry=stateTable[state][(uint8_t)source[i++]];
3394 return ucnv_extSimpleMatchToU(cx, source, length, useFallback);
3408 const UChar *source, *sourceLimit;
3431 source=pArgs->source;
3458 while(source<sourceLimit) {
3463 * from the last source character.
3473 c=*source++;
3506 if(source<sourceLimit) {
3508 UChar trail=*source;
3510 ++source;
3557 pArgs->source=source;
3559 c, &source, sourceLimit,
3564 nextSourceIndex+=(int32_t)(source-pArgs->source);
3630 pArgs->source=source;
3640 const UChar *source, *sourceLimit;
3657 source=pArgs->source;
3691 while(source<sourceLimit) {
3696 * from the last source character.
3706 c=*source++;
3711 if(source<sourceLimit) {
3713 UChar trail=*source;
3715 ++source;
3763 pArgs->source=source;
3765 c, &source, sourceLimit,
3770 nextSourceIndex+=(int32_t)(source-pArgs->source);
3796 pArgs->source=source;
3816 const UChar *source, *sourceLimit, *lastSource;
3833 source=pArgs->source;
3860 lastSource=source;
3866 length=(int32_t)(sourceLimit-source);
3886 c=*source++;
3889 c=*source++;
3892 c=*source++;
3895 c=*source++;
3902 source-=4;
3931 c=*source++;
3960 if(source<sourceLimit) {
3962 UChar trail=*source;
3964 ++source;
3995 int32_t count=(int32_t)(source-lastSource);
4008 lastSource=source;
4010 c, &source, sourceLimit,
4015 sourceIndex+=length+(int32_t)(source-lastSource);
4016 lastSource=source;
4026 length=(int32_t)(sourceLimit-source);
4038 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) {
4045 size_t count=source-lastSource;
4064 pArgs->source=source;
4073 const UChar *source, *sourceLimit;
4127 source=pArgs->source;
4187 while(source<sourceLimit) {
4192 * from the last source character.
4202 c=*source++;
4390 if(source<sourceLimit) {
4392 UChar trail=*source;
4394 ++source;
4610 pArgs->source=source;
4612 c, &source, sourceLimit,
4617 nextSourceIndex+=(int32_t)(source-pArgs->source);
4775 pArgs->flush && source>=sourceLimit && c==0
4790 /* set the last source character's index (sourceIndex points at sourceLimit now) */
4810 pArgs->source=source;
5027 const uint8_t *source, *sourceLimit;
5046 source=(uint8_t *)pToUArgs->source;
5083 * In the conversion loop compare source with sourceLimit only once
5089 length=(int32_t)(sourceLimit-source) - (toULimit-oldToULength);
5116 * (utf8, source, target, limits but not cnv, table, minValue, etc.).
5130 while(source<sourceLimit) {
5132 b=*source++;
5147 (t1=(uint8_t)(*source-0x80)) <= 0x3f
5150 ++source;
5164 (t1=(uint8_t)(source[0]-0x80)) <= 0x3f && t1 >= 0x20 &&
5165 (t2=(uint8_t)(source[1]-0x80)) <= 0x3f
5168 source+=2;
5199 if(source<(uint8_t *)pToUArgs->sourceLimit) {
5200 b=*source;
5202 ++source;
5210 source-=(toULength-oldToULength);
5212 utf8->toUBytes[oldToULength++]=*source++;
5217 pToUArgs->source=(char *)source;
5242 source-=(toULength-oldToULength);
5244 utf8->toUBytes[oldToULength++]=*source++;
5247 pToUArgs->source=(char *)source;
5263 * Pass in no source because we don't have UTF-16 input.
5285 * have consumed the source.
5310 source<(sourceLimit=(uint8_t *)pToUArgs->sourceLimit)) {
5311 c=utf8->toUBytes[0]=b=*source++;
5314 while(source<sourceLimit) {
5315 utf8->toUBytes[toULength++]=b=*source++;
5324 pToUArgs->source=(char *)source;
5333 const uint8_t *source, *sourceLimit;
5353 source=(uint8_t *)pToUArgs->source;
5383 * In the conversion loop compare source with sourceLimit only once
5389 length=(int32_t)(sourceLimit-source) - (toULimit-oldToULength);
5412 while(source<sourceLimit) {
5414 b=*source++;
5431 (((t1=(uint8_t)(source[0]-0x80), b<0xed) && (t1 <= 0x3f)) ||
5433 (t2=(uint8_t)(source[1]-0x80)) <= 0x3f
5436 source+=2;
5448 (t1=(uint8_t)(*source-0x80)) <= 0x3f
5451 ++source;
5479 if(source<(uint8_t *)pToUArgs->sourceLimit) {
5480 b=*source;
5482 ++source;
5490 source-=(toULength-oldToULength);
5492 utf8->toUBytes[oldToULength++]=*source++;
5497 pToUArgs->source=(char *)source;
5522 source-=(toULength-oldToULength);
5524 utf8->toUBytes[oldToULength++]=*source++;
5527 pToUArgs->source=(char *)source;
5572 * Pass in no source because we don't have UTF-16 input.
5594 * have consumed the source.
5620 source<(sourceLimit=(uint8_t *)pToUArgs->sourceLimit)) {
5621 c=utf8->toUBytes[0]=b=*source++;
5624 while(source<sourceLimit) {
5625 utf8->toUBytes[toULength++]=b=*source++;
5634 pToUArgs->source=(char *)source;