Lines Matching refs:source
947 * see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/conversion/conversion_extensions.html
960 const UChar **source, const UChar *sourceLimit,
972 cp, source, sourceLimit,
1027 const uint8_t **source, const uint8_t *sourceLimit,
1037 length, (const char **)source, (const char *)sourceLimit,
1886 const uint8_t *source, *sourceLimit;
1901 source=(const uint8_t *)pArgs->source;
1917 while(source<sourceLimit) {
1922 * from the last source byte.
1932 entry=stateTable[0][*source++];
2005 pArgs->source=(const char *)source;
2006 cnv->toUBytes[0]=*(source-1);
2008 1, &source, sourceLimit,
2013 sourceIndex+=1+(int32_t)(source-(const uint8_t *)pArgs->source);
2023 pArgs->source=(const char *)source;
2038 const uint8_t *source, *sourceLimit, *lastSource;
2052 source=(const uint8_t *)pArgs->source;
2066 lastSource=source;
2072 length=(int32_t)(sourceLimit-source);
2086 oredEntries=entry=stateTable[0][*source++];
2088 oredEntries|=entry=stateTable[0][*source++];
2090 oredEntries|=entry=stateTable[0][*source++];
2092 oredEntries|=entry=stateTable[0][*source++];
2094 oredEntries|=entry=stateTable[0][*source++];
2096 oredEntries|=entry=stateTable[0][*source++];
2098 oredEntries|=entry=stateTable[0][*source++];
2100 oredEntries|=entry=stateTable[0][*source++];
2102 oredEntries|=entry=stateTable[0][*source++];
2104 oredEntries|=entry=stateTable[0][*source++];
2106 oredEntries|=entry=stateTable[0][*source++];
2108 oredEntries|=entry=stateTable[0][*source++];
2110 oredEntries|=entry=stateTable[0][*source++];
2112 oredEntries|=entry=stateTable[0][*source++];
2114 oredEntries|=entry=stateTable[0][*source++];
2116 oredEntries|=entry=stateTable[0][*source++];
2122 source-=16;
2156 while(targetCapacity > 0 && source < sourceLimit) {
2157 entry=stateTable[0][*source++];
2192 int32_t count=(int32_t)(source-lastSource);
2206 lastSource=source;
2207 cnv->toUBytes[0]=*(source-1);
2209 1, &source, sourceLimit,
2214 sourceIndex+=1+(int32_t)(source-lastSource);
2223 length=(int32_t)(sourceLimit-source);
2235 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=pArgs->targetLimit) {
2242 size_t count=source-lastSource;
2250 pArgs->source=(const char *)source;
2318 const uint8_t *source, *sourceLimit;
2362 source=(const uint8_t *)pArgs->source;
2394 while(source<sourceLimit) {
2399 * from the last source byte.
2413 entry=stateTable[state][*source];
2418 ++source;
2419 if( source<sourceLimit &&
2420 MBCS_ENTRY_IS_FINAL(entry=stateTable[state][*source]) &&
2424 ++source;
2430 bytes[0]=*(source-1);
2437 ++source;
2445 } while(source<sourceLimit && target<targetLimit);
2448 entry=stateTable[state][*source];
2453 ++source;
2454 if( source<sourceLimit &&
2455 MBCS_ENTRY_IS_FINAL(entry=stateTable[state][*source]) &&
2459 ++source;
2470 bytes[0]=*(source-1);
2477 ++source;
2489 } while(source<sourceLimit && target<targetLimit);
2496 if(source>=sourceLimit) {
2506 bytes[byteIndex++]=*source++;
2509 entry=stateTable[state][bytes[byteIndex++]=*source++];
2684 int32_t bytesFromThisBuffer=(int32_t)(source-(const uint8_t *)pArgs->source);
2687 source-=backOutDistance;
2693 source=(const uint8_t *)pArgs->source;
2700 pArgs->source=(const char *)source;
2702 byteIndex, &source, sourceLimit,
2707 sourceIndex=nextSourceIndex+=(int32_t)(source-(const uint8_t *)pArgs->source);
2722 pArgs->source=(const char *)source;
2736 const uint8_t *source, *sourceLimit;
2743 source=(const uint8_t *)pArgs->source;
2752 while(source<sourceLimit) {
2753 entry=stateTable[0][*source++];
2757 pArgs->source=(const char *)source;
2794 pArgs->source=(const char *)source-1;
2820 const uint8_t *source, *sourceLimit, *lastSource;
2852 source=lastSource=(const uint8_t *)pArgs->source;
2876 while(source<sourceLimit) {
2877 entry=stateTable[state][*source++];
2883 if( source<sourceLimit &&
2884 MBCS_ENTRY_IS_FINAL(entry=stateTable[state][*source]) &&
2888 ++source;
2976 lastSource=source;
2990 pArgs->source=(const char *)lastSource;
2997 if(U_SUCCESS(*pErrorCode) && source==sourceLimit && lastSource<source) {
3000 cnv->toULength=(int8_t)(source-lastSource);
3003 } while(lastSource<source);
3016 if(lastSource==source) {
3018 } else /* lastSource<source: multi-byte character */ {
3021 lastSource<source && !isSingleOrLead(stateTable, state, isDBCSOnly, *lastSource);
3027 source=lastSource;
3041 pArgs->source=(const char *)source;
3115 const char *source, int32_t length,
3141 return ucnv_MBCSSingleSimpleGetNextUChar(sharedData, (uint8_t)*source, useFallback);
3158 entry=stateTable[state][(uint8_t)source[i++]];
3245 return ucnv_extSimpleMatchToU(cx, source, length, useFallback);
3259 const UChar *source, *sourceLimit;
3282 source=pArgs->source;
3309 while(source<sourceLimit) {
3314 * from the last source character.
3324 c=*source++;
3357 if(source<sourceLimit) {
3359 UChar trail=*source;
3361 ++source;
3408 pArgs->source=source;
3410 c, &source, sourceLimit,
3415 nextSourceIndex+=(int32_t)(source-pArgs->source);
3481 pArgs->source=source;
3491 const UChar *source, *sourceLimit;
3508 source=pArgs->source;
3542 while(source<sourceLimit) {
3547 * from the last source character.
3557 c=*source++;
3562 if(source<sourceLimit) {
3564 UChar trail=*source;
3566 ++source;
3614 pArgs->source=source;
3616 c, &source, sourceLimit,
3621 nextSourceIndex+=(int32_t)(source-pArgs->source);
3647 pArgs->source=source;
3667 const UChar *source, *sourceLimit, *lastSource;
3684 source=pArgs->source;
3711 lastSource=source;
3717 length=(int32_t)(sourceLimit-source);
3737 c=*source++;
3740 c=*source++;
3743 c=*source++;
3746 c=*source++;
3753 source-=4;
3782 c=*source++;
3811 if(source<sourceLimit) {
3813 UChar trail=*source;
3815 ++source;
3846 int32_t count=(int32_t)(source-lastSource);
3859 lastSource=source;
3861 c, &source, sourceLimit,
3866 sourceIndex+=length+(int32_t)(source-lastSource);
3867 lastSource=source;
3877 length=(int32_t)(sourceLimit-source);
3889 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) {
3896 size_t count=source-lastSource;
3915 pArgs->source=source;
3924 const UChar *source, *sourceLimit;
3975 source=pArgs->source;
4035 while(source<sourceLimit) {
4040 * from the last source character.
4050 c=*source++;
4238 if(source<sourceLimit) {
4240 UChar trail=*source;
4242 ++source;
4458 pArgs->source=source;
4460 c, &source, sourceLimit,
4465 nextSourceIndex+=(int32_t)(source-pArgs->source);
4609 pArgs->flush && source>=sourceLimit && c==0
4624 /* set the last source character's index (sourceIndex points at sourceLimit now) */
4644 pArgs->source=source;
4861 const uint8_t *source, *sourceLimit;
4880 source=(uint8_t *)pToUArgs->source;
4917 * In the conversion loop compare source with sourceLimit only once
4923 length=(int32_t)(sourceLimit-source) - (toULimit-oldToULength);
4950 * (utf8, source, target, limits but not cnv, table, minValue, etc.).
4964 while(source<sourceLimit) {
4966 b=*source++;
4981 (t1=(uint8_t)(*source-0x80)) <= 0x3f
4984 ++source;
4998 (t1=(uint8_t)(source[0]-0x80)) <= 0x3f && t1 >= 0x20 &&
4999 (t2=(uint8_t)(source[1]-0x80)) <= 0x3f
5002 source+=2;
5033 if(source<(uint8_t *)pToUArgs->sourceLimit) {
5034 b=*source;
5036 ++source;
5044 source-=(toULength-oldToULength);
5046 utf8->toUBytes[oldToULength++]=*source++;
5051 pToUArgs->source=(char *)source;
5076 source-=(toULength-oldToULength);
5078 utf8->toUBytes[oldToULength++]=*source++;
5081 pToUArgs->source=(char *)source;
5097 * Pass in no source because we don't have UTF-16 input.
5119 * have consumed the source.
5141 if(U_SUCCESS(*pErrorCode) && source<(sourceLimit=(uint8_t *)pToUArgs->sourceLimit)) {
5142 c=utf8->toUBytes[0]=b=*source++;
5145 while(source<sourceLimit) {
5146 utf8->toUBytes[toULength++]=b=*source++;
5155 pToUArgs->source=(char *)source;
5164 const uint8_t *source, *sourceLimit;
5184 source=(uint8_t *)pToUArgs->source;
5221 * In the conversion loop compare source with sourceLimit only once
5227 length=(int32_t)(sourceLimit-source) - (toULimit-oldToULength);
5250 while(source<sourceLimit) {
5252 b=*source++;
5269 (((t1=(uint8_t)(source[0]-0x80), b<0xed) && (t1 <= 0x3f)) ||
5271 (t2=(uint8_t)(source[1]-0x80)) <= 0x3f
5274 source+=2;
5286 (t1=(uint8_t)(*source-0x80)) <= 0x3f
5289 ++source;
5317 if(source<(uint8_t *)pToUArgs->sourceLimit) {
5318 b=*source;
5320 ++source;
5328 source-=(toULength-oldToULength);
5330 utf8->toUBytes[oldToULength++]=*source++;
5335 pToUArgs->source=(char *)source;
5360 source-=(toULength-oldToULength);
5362 utf8->toUBytes[oldToULength++]=*source++;
5365 pToUArgs->source=(char *)source;
5410 * Pass in no source because we don't have UTF-16 input.
5432 * have consumed the source.
5455 if(U_SUCCESS(*pErrorCode) && source<(sourceLimit=(uint8_t *)pToUArgs->sourceLimit)) {
5456 c=utf8->toUBytes[0]=b=*source++;
5459 while(source<sourceLimit) {
5460 utf8->toUBytes[toULength++]=b=*source++;
5469 pToUArgs->source=(char *)source;