/third_party/icu/icu4c/source/common/ |
H A D | ucnvlat1.cpp | 40 int32_t targetCapacity, length; in _Latin1ToUnicodeWithOffsets() local 48 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets() 55 * for the minimum of the sourceLength and targetCapacity in _Latin1ToUnicodeWithOffsets() 58 if(length<=targetCapacity) { in _Latin1ToUnicodeWithOffsets() 59 targetCapacity=length; in _Latin1ToUnicodeWithOffsets() 63 length=targetCapacity; in _Latin1ToUnicodeWithOffsets() 66 if(targetCapacity>=8) { in _Latin1ToUnicodeWithOffsets() 70 loops=count=targetCapacity>>3; in _Latin1ToUnicodeWithOffsets() 71 length=targetCapacity&=0x7; in _Latin1ToUnicodeWithOffsets() 101 while(targetCapacity> in _Latin1ToUnicodeWithOffsets() 142 int32_t targetCapacity, length; _Latin1FromUnicodeWithOffsets() local 330 int32_t targetCapacity; ucnv_Latin1FromUTF8() local 486 int32_t targetCapacity, length; _ASCIIToUnicodeWithOffsets() local 623 int32_t targetCapacity, length; ucnv_ASCIIFromUTF8() local [all...] |
H A D | ucnvbocu.cpp | 397 int32_t targetCapacity; in _Bocu1FromUnicodeWithOffsets() local 409 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Bocu1FromUnicodeWithOffsets() 424 if(c!=0 && targetCapacity>0) { in _Bocu1FromUnicodeWithOffsets() 430 /* use only one loop counter variable, targetCapacity, not also source */ in _Bocu1FromUnicodeWithOffsets() 432 if(targetCapacity>diff) { in _Bocu1FromUnicodeWithOffsets() 433 targetCapacity=diff; in _Bocu1FromUnicodeWithOffsets() 435 while(targetCapacity>0 && (c=*source)<0x3000) { in _Bocu1FromUnicodeWithOffsets() 443 --targetCapacity; in _Bocu1FromUnicodeWithOffsets() 451 --targetCapacity; in _Bocu1FromUnicodeWithOffsets() 458 targetCapacity in _Bocu1FromUnicodeWithOffsets() 658 int32_t targetCapacity; _Bocu1FromUnicode() local [all...] |
H A D | ucnv_u16.cpp | 59 uint32_t targetCapacity, length, sourceIndex; in _UTF16BEFromUnicodeWithOffsets() local 89 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets() 95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 104 targetCapacity-=4; in _UTF16BEFromUnicodeWithOffsets() 118 if(count>targetCapacity) { in _UTF16BEFromUnicodeWithOffsets() 119 count=targetCapacity&~1; in _UTF16BEFromUnicodeWithOffsets() 122 targetCapacity-=count; in _UTF16BEFromUnicodeWithOffsets() 177 if(length>0 && targetCapacity>0) { in _UTF16BEFromUnicodeWithOffsets() 180 * it must be targetCapacity==1 because otherwise in _UTF16BEFromUnicodeWithOffsets() 197 targetCapacity in _UTF16BEFromUnicodeWithOffsets() 263 uint32_t targetCapacity, length, count, sourceIndex; _UTF16BEToUnicodeWithOffsets() local 660 uint32_t targetCapacity, length, sourceIndex; _UTF16LEFromUnicodeWithOffsets() local 864 uint32_t targetCapacity, length, count, sourceIndex; _UTF16LEToUnicodeWithOffsets() local [all...] |
H A D | ucnvmbcs.cpp | 2190 int32_t targetCapacity, length; in ucnv_MBCSSingleToBMPWithOffsets() local 2205 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in ucnv_MBCSSingleToBMPWithOffsets() 2220 * for the minimum of the sourceLength and targetCapacity in ucnv_MBCSSingleToBMPWithOffsets() 2223 if(length<targetCapacity) { in ucnv_MBCSSingleToBMPWithOffsets() 2224 targetCapacity=length; in ucnv_MBCSSingleToBMPWithOffsets() 2231 if(targetCapacity>=16) { in ucnv_MBCSSingleToBMPWithOffsets() 2234 loops=count=targetCapacity>>4; in ucnv_MBCSSingleToBMPWithOffsets() 2278 targetCapacity-=16*count; in ucnv_MBCSSingleToBMPWithOffsets() 2306 while(targetCapacity > 0 && source < sourceLimit) { in ucnv_MBCSSingleToBMPWithOffsets() 2314 --targetCapacity; in ucnv_MBCSSingleToBMPWithOffsets() 3411 int32_t targetCapacity; ucnv_MBCSDoubleFromUnicodeWithOffsets() local 3643 int32_t targetCapacity; ucnv_MBCSSingleFromUnicodeWithOffsets() local 3819 int32_t targetCapacity, length; ucnv_MBCSSingleFromBMPWithOffsets() local 4076 int32_t targetCapacity; ucnv_MBCSFromUnicodeWithOffsets() local 5026 int32_t targetCapacity; ucnv_SBCSFromUTF8() local 5328 int32_t targetCapacity; ucnv_DBCSFromUTF8() local [all...] |
H A D | ucnvscsu.cpp | 1017 int32_t targetCapacity; in _SCSUFromUnicodeWithOffsets() local 1044 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _SCSUFromUnicodeWithOffsets() 1061 if(c!=0 && targetCapacity>0) { in _SCSUFromUnicodeWithOffsets() 1068 if(targetCapacity<=0) { in _SCSUFromUnicodeWithOffsets() 1082 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1090 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1103 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1141 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1167 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1238 if(c!=0 && targetCapacity> in _SCSUFromUnicodeWithOffsets() 1525 int32_t targetCapacity; _SCSUFromUnicode() local [all...] |
H A D | ucnv_u7.cpp | 222 int32_t length, targetCapacity; in _UTF7ToUnicodeWithOffsets() local 268 targetCapacity=(int32_t)(targetLimit-target); in _UTF7ToUnicodeWithOffsets() 269 if(length>targetCapacity) { in _UTF7ToUnicodeWithOffsets() 270 length=targetCapacity; in _UTF7ToUnicodeWithOffsets() 469 int32_t length, targetCapacity, sourceIndex; in _UTF7FromUnicodeWithOffsets() local 504 targetCapacity=(int32_t)(targetLimit-target); in _UTF7FromUnicodeWithOffsets() 505 if(length>targetCapacity) { in _UTF7FromUnicodeWithOffsets() 506 length=targetCapacity; in _UTF7FromUnicodeWithOffsets() 526 /* realign length and targetCapacity */ in _UTF7FromUnicodeWithOffsets() 906 int32_t length, targetCapacity; in _IMAPToUnicodeWithOffsets() local 1170 int32_t length, targetCapacity, sourceIndex; _IMAPFromUnicodeWithOffsets() local [all...] |
H A D | ucnv.cpp | 2405 char *target, int32_t targetCapacity, in ucnv_internalConvert() 2425 return u_terminateChars(target, targetCapacity, 0, pErrorCode); in ucnv_internalConvert() 2432 if(targetCapacity>0) { in ucnv_internalConvert() 2434 targetLimit=target+targetCapacity; in ucnv_internalConvert() 2447 * to it but continue the conversion in order to store in targetCapacity in ucnv_internalConvert() 2450 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || targetCapacity==0) in ucnv_internalConvert() 2469 return u_terminateChars(target, targetCapacity, targetLength, pErrorCode); in ucnv_internalConvert() 2478 char *target, int32_t targetCapacity, in ucnv_convert() 2490 targetCapacity<0 || (targetCapacity> in ucnv_convert() 2404 ucnv_internalConvert(UConverter *outConverter, UConverter *inConverter, char *target, int32_t targetCapacity, const char *source, int32_t sourceLength, UErrorCode *pErrorCode) ucnv_internalConvert() argument 2477 ucnv_convert(const char *toConverterName, const char *fromConverterName, char *target, int32_t targetCapacity, const char *source, int32_t sourceLength, UErrorCode *pErrorCode) ucnv_convert() argument 2526 ucnv_convertAlgorithmic(UBool convertToAlgorithmic, UConverterType algorithmicType, UConverter *cnv, char *target, int32_t targetCapacity, const char *source, int32_t sourceLength, UErrorCode *pErrorCode) ucnv_convertAlgorithmic() argument 2583 ucnv_toAlgorithmic(UConverterType algorithmicType, UConverter *cnv, char *target, int32_t targetCapacity, const char *source, int32_t sourceLength, UErrorCode *pErrorCode) ucnv_toAlgorithmic() argument 2595 ucnv_fromAlgorithmic(UConverter *cnv, UConverterType algorithmicType, char *target, int32_t targetCapacity, const char *source, int32_t sourceLength, UErrorCode *pErrorCode) ucnv_fromAlgorithmic() argument [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | ucnvlat1.cpp | 40 int32_t targetCapacity, length; in _Latin1ToUnicodeWithOffsets() local 48 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets() 55 * for the minimum of the sourceLength and targetCapacity in _Latin1ToUnicodeWithOffsets() 58 if(length<=targetCapacity) { in _Latin1ToUnicodeWithOffsets() 59 targetCapacity=length; in _Latin1ToUnicodeWithOffsets() 63 length=targetCapacity; in _Latin1ToUnicodeWithOffsets() 66 if(targetCapacity>=8) { in _Latin1ToUnicodeWithOffsets() 70 loops=count=targetCapacity>>3; in _Latin1ToUnicodeWithOffsets() 71 length=targetCapacity&=0x7; in _Latin1ToUnicodeWithOffsets() 101 while(targetCapacity> in _Latin1ToUnicodeWithOffsets() 142 int32_t targetCapacity, length; _Latin1FromUnicodeWithOffsets() local 330 int32_t targetCapacity; ucnv_Latin1FromUTF8() local 486 int32_t targetCapacity, length; _ASCIIToUnicodeWithOffsets() local 623 int32_t targetCapacity, length; ucnv_ASCIIFromUTF8() local [all...] |
H A D | ucnvbocu.cpp | 397 int32_t targetCapacity; in _Bocu1FromUnicodeWithOffsets() local 409 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Bocu1FromUnicodeWithOffsets() 424 if(c!=0 && targetCapacity>0) { in _Bocu1FromUnicodeWithOffsets() 430 /* use only one loop counter variable, targetCapacity, not also source */ in _Bocu1FromUnicodeWithOffsets() 432 if(targetCapacity>diff) { in _Bocu1FromUnicodeWithOffsets() 433 targetCapacity=diff; in _Bocu1FromUnicodeWithOffsets() 435 while(targetCapacity>0 && (c=*source)<0x3000) { in _Bocu1FromUnicodeWithOffsets() 443 --targetCapacity; in _Bocu1FromUnicodeWithOffsets() 451 --targetCapacity; in _Bocu1FromUnicodeWithOffsets() 458 targetCapacity in _Bocu1FromUnicodeWithOffsets() 658 int32_t targetCapacity; _Bocu1FromUnicode() local [all...] |
H A D | ucnv_u16.cpp | 59 uint32_t targetCapacity, length, sourceIndex; in _UTF16BEFromUnicodeWithOffsets() local 89 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets() 95 if((c=(char16_t)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 104 targetCapacity-=4; in _UTF16BEFromUnicodeWithOffsets() 118 if(count>targetCapacity) { in _UTF16BEFromUnicodeWithOffsets() 119 count=targetCapacity&~1; in _UTF16BEFromUnicodeWithOffsets() 122 targetCapacity-=count; in _UTF16BEFromUnicodeWithOffsets() 177 if(length>0 && targetCapacity>0) { in _UTF16BEFromUnicodeWithOffsets() 180 * it must be targetCapacity==1 because otherwise in _UTF16BEFromUnicodeWithOffsets() 197 targetCapacity in _UTF16BEFromUnicodeWithOffsets() 263 uint32_t targetCapacity, length, count, sourceIndex; _UTF16BEToUnicodeWithOffsets() local 660 uint32_t targetCapacity, length, sourceIndex; _UTF16LEFromUnicodeWithOffsets() local 864 uint32_t targetCapacity, length, count, sourceIndex; _UTF16LEToUnicodeWithOffsets() local [all...] |
H A D | ucnvmbcs.cpp | 2190 int32_t targetCapacity, length; in ucnv_MBCSSingleToBMPWithOffsets() local 2205 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in ucnv_MBCSSingleToBMPWithOffsets() 2220 * for the minimum of the sourceLength and targetCapacity in ucnv_MBCSSingleToBMPWithOffsets() 2223 if(length<targetCapacity) { in ucnv_MBCSSingleToBMPWithOffsets() 2224 targetCapacity=length; in ucnv_MBCSSingleToBMPWithOffsets() 2231 if(targetCapacity>=16) { in ucnv_MBCSSingleToBMPWithOffsets() 2234 loops=count=targetCapacity>>4; in ucnv_MBCSSingleToBMPWithOffsets() 2278 targetCapacity-=16*count; in ucnv_MBCSSingleToBMPWithOffsets() 2306 while(targetCapacity > 0 && source < sourceLimit) { in ucnv_MBCSSingleToBMPWithOffsets() 2314 --targetCapacity; in ucnv_MBCSSingleToBMPWithOffsets() 3411 int32_t targetCapacity; ucnv_MBCSDoubleFromUnicodeWithOffsets() local 3643 int32_t targetCapacity; ucnv_MBCSSingleFromUnicodeWithOffsets() local 3819 int32_t targetCapacity, length; ucnv_MBCSSingleFromBMPWithOffsets() local 4076 int32_t targetCapacity; ucnv_MBCSFromUnicodeWithOffsets() local 5026 int32_t targetCapacity; ucnv_SBCSFromUTF8() local 5328 int32_t targetCapacity; ucnv_DBCSFromUTF8() local [all...] |
H A D | ucnvscsu.cpp | 1017 int32_t targetCapacity; in _SCSUFromUnicodeWithOffsets() local 1044 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _SCSUFromUnicodeWithOffsets() 1061 if(c!=0 && targetCapacity>0) { in _SCSUFromUnicodeWithOffsets() 1068 if(targetCapacity<=0) { in _SCSUFromUnicodeWithOffsets() 1082 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1090 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1103 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1141 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1167 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1238 if(c!=0 && targetCapacity> in _SCSUFromUnicodeWithOffsets() 1525 int32_t targetCapacity; _SCSUFromUnicode() local [all...] |
H A D | ucnv_u7.cpp | 222 int32_t length, targetCapacity; in _UTF7ToUnicodeWithOffsets() local 268 targetCapacity=(int32_t)(targetLimit-target); in _UTF7ToUnicodeWithOffsets() 269 if(length>targetCapacity) { in _UTF7ToUnicodeWithOffsets() 270 length=targetCapacity; in _UTF7ToUnicodeWithOffsets() 469 int32_t length, targetCapacity, sourceIndex; in _UTF7FromUnicodeWithOffsets() local 504 targetCapacity=(int32_t)(targetLimit-target); in _UTF7FromUnicodeWithOffsets() 505 if(length>targetCapacity) { in _UTF7FromUnicodeWithOffsets() 506 length=targetCapacity; in _UTF7FromUnicodeWithOffsets() 526 /* realign length and targetCapacity */ in _UTF7FromUnicodeWithOffsets() 906 int32_t length, targetCapacity; in _IMAPToUnicodeWithOffsets() local 1170 int32_t length, targetCapacity, sourceIndex; _IMAPFromUnicodeWithOffsets() local [all...] |
H A D | ucnv.cpp | 2405 char *target, int32_t targetCapacity, in ucnv_internalConvert() 2425 return u_terminateChars(target, targetCapacity, 0, pErrorCode); in ucnv_internalConvert() 2432 if(targetCapacity>0) { in ucnv_internalConvert() 2434 targetLimit=target+targetCapacity; in ucnv_internalConvert() 2447 * to it but continue the conversion in order to store in targetCapacity in ucnv_internalConvert() 2450 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || targetCapacity==0) in ucnv_internalConvert() 2469 return u_terminateChars(target, targetCapacity, targetLength, pErrorCode); in ucnv_internalConvert() 2478 char *target, int32_t targetCapacity, in ucnv_convert() 2490 targetCapacity<0 || (targetCapacity> in ucnv_convert() 2404 ucnv_internalConvert(UConverter *outConverter, UConverter *inConverter, char *target, int32_t targetCapacity, const char *source, int32_t sourceLength, UErrorCode *pErrorCode) ucnv_internalConvert() argument 2477 ucnv_convert(const char *toConverterName, const char *fromConverterName, char *target, int32_t targetCapacity, const char *source, int32_t sourceLength, UErrorCode *pErrorCode) ucnv_convert() argument 2526 ucnv_convertAlgorithmic(UBool convertToAlgorithmic, UConverterType algorithmicType, UConverter *cnv, char *target, int32_t targetCapacity, const char *source, int32_t sourceLength, UErrorCode *pErrorCode) ucnv_convertAlgorithmic() argument 2583 ucnv_toAlgorithmic(UConverterType algorithmicType, UConverter *cnv, char *target, int32_t targetCapacity, const char *source, int32_t sourceLength, UErrorCode *pErrorCode) ucnv_toAlgorithmic() argument [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | ucnvlat1.cpp | 40 int32_t targetCapacity, length; in _Latin1ToUnicodeWithOffsets() local 48 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets() 55 * for the minimum of the sourceLength and targetCapacity in _Latin1ToUnicodeWithOffsets() 58 if(length<=targetCapacity) { in _Latin1ToUnicodeWithOffsets() 59 targetCapacity=length; in _Latin1ToUnicodeWithOffsets() 63 length=targetCapacity; in _Latin1ToUnicodeWithOffsets() 66 if(targetCapacity>=8) { in _Latin1ToUnicodeWithOffsets() 70 loops=count=targetCapacity>>3; in _Latin1ToUnicodeWithOffsets() 71 length=targetCapacity&=0x7; in _Latin1ToUnicodeWithOffsets() 101 while(targetCapacity> in _Latin1ToUnicodeWithOffsets() 142 int32_t targetCapacity, length; _Latin1FromUnicodeWithOffsets() local 330 int32_t targetCapacity; ucnv_Latin1FromUTF8() local 486 int32_t targetCapacity, length; _ASCIIToUnicodeWithOffsets() local 623 int32_t targetCapacity, length; ucnv_ASCIIFromUTF8() local [all...] |
H A D | ucnvbocu.cpp | 397 int32_t targetCapacity; in _Bocu1FromUnicodeWithOffsets() local 409 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Bocu1FromUnicodeWithOffsets() 424 if(c!=0 && targetCapacity>0) { in _Bocu1FromUnicodeWithOffsets() 430 /* use only one loop counter variable, targetCapacity, not also source */ in _Bocu1FromUnicodeWithOffsets() 432 if(targetCapacity>diff) { in _Bocu1FromUnicodeWithOffsets() 433 targetCapacity=diff; in _Bocu1FromUnicodeWithOffsets() 435 while(targetCapacity>0 && (c=*source)<0x3000) { in _Bocu1FromUnicodeWithOffsets() 443 --targetCapacity; in _Bocu1FromUnicodeWithOffsets() 451 --targetCapacity; in _Bocu1FromUnicodeWithOffsets() 458 targetCapacity in _Bocu1FromUnicodeWithOffsets() 658 int32_t targetCapacity; _Bocu1FromUnicode() local [all...] |
H A D | ucnv_u16.cpp | 59 uint32_t targetCapacity, length, sourceIndex; in _UTF16BEFromUnicodeWithOffsets() local 89 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets() 95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 104 targetCapacity-=4; in _UTF16BEFromUnicodeWithOffsets() 118 if(count>targetCapacity) { in _UTF16BEFromUnicodeWithOffsets() 119 count=targetCapacity&~1; in _UTF16BEFromUnicodeWithOffsets() 122 targetCapacity-=count; in _UTF16BEFromUnicodeWithOffsets() 177 if(length>0 && targetCapacity>0) { in _UTF16BEFromUnicodeWithOffsets() 180 * it must be targetCapacity==1 because otherwise in _UTF16BEFromUnicodeWithOffsets() 197 targetCapacity in _UTF16BEFromUnicodeWithOffsets() 263 uint32_t targetCapacity, length, count, sourceIndex; _UTF16BEToUnicodeWithOffsets() local 660 uint32_t targetCapacity, length, sourceIndex; _UTF16LEFromUnicodeWithOffsets() local 864 uint32_t targetCapacity, length, count, sourceIndex; _UTF16LEToUnicodeWithOffsets() local [all...] |
H A D | ucnvmbcs.cpp | 2190 int32_t targetCapacity, length; in ucnv_MBCSSingleToBMPWithOffsets() local 2205 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in ucnv_MBCSSingleToBMPWithOffsets() 2220 * for the minimum of the sourceLength and targetCapacity in ucnv_MBCSSingleToBMPWithOffsets() 2223 if(length<targetCapacity) { in ucnv_MBCSSingleToBMPWithOffsets() 2224 targetCapacity=length; in ucnv_MBCSSingleToBMPWithOffsets() 2231 if(targetCapacity>=16) { in ucnv_MBCSSingleToBMPWithOffsets() 2234 loops=count=targetCapacity>>4; in ucnv_MBCSSingleToBMPWithOffsets() 2278 targetCapacity-=16*count; in ucnv_MBCSSingleToBMPWithOffsets() 2306 while(targetCapacity > 0 && source < sourceLimit) { in ucnv_MBCSSingleToBMPWithOffsets() 2314 --targetCapacity; in ucnv_MBCSSingleToBMPWithOffsets() 3411 int32_t targetCapacity; ucnv_MBCSDoubleFromUnicodeWithOffsets() local 3643 int32_t targetCapacity; ucnv_MBCSSingleFromUnicodeWithOffsets() local 3819 int32_t targetCapacity, length; ucnv_MBCSSingleFromBMPWithOffsets() local 4076 int32_t targetCapacity; ucnv_MBCSFromUnicodeWithOffsets() local 5026 int32_t targetCapacity; ucnv_SBCSFromUTF8() local 5328 int32_t targetCapacity; ucnv_DBCSFromUTF8() local [all...] |
H A D | ucnvscsu.cpp | 1017 int32_t targetCapacity; in _SCSUFromUnicodeWithOffsets() local 1044 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _SCSUFromUnicodeWithOffsets() 1061 if(c!=0 && targetCapacity>0) { in _SCSUFromUnicodeWithOffsets() 1068 if(targetCapacity<=0) { in _SCSUFromUnicodeWithOffsets() 1082 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1090 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1103 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1141 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1167 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1238 if(c!=0 && targetCapacity> in _SCSUFromUnicodeWithOffsets() 1525 int32_t targetCapacity; _SCSUFromUnicode() local [all...] |
H A D | ucnv_u7.cpp | 222 int32_t length, targetCapacity; in _UTF7ToUnicodeWithOffsets() local 268 targetCapacity=(int32_t)(targetLimit-target); in _UTF7ToUnicodeWithOffsets() 269 if(length>targetCapacity) { in _UTF7ToUnicodeWithOffsets() 270 length=targetCapacity; in _UTF7ToUnicodeWithOffsets() 469 int32_t length, targetCapacity, sourceIndex; in _UTF7FromUnicodeWithOffsets() local 504 targetCapacity=(int32_t)(targetLimit-target); in _UTF7FromUnicodeWithOffsets() 505 if(length>targetCapacity) { in _UTF7FromUnicodeWithOffsets() 506 length=targetCapacity; in _UTF7FromUnicodeWithOffsets() 526 /* realign length and targetCapacity */ in _UTF7FromUnicodeWithOffsets() 906 int32_t length, targetCapacity; in _IMAPToUnicodeWithOffsets() local 1170 int32_t length, targetCapacity, sourceIndex; _IMAPFromUnicodeWithOffsets() local [all...] |
/third_party/icu/icu4c/source/tools/toolutil/ |
H A D | udbgutil.cpp | 383 typedef int32_t U_CALLCONV USystemParameterCallback(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status); 394 paramEmpty(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *status) { in paramEmpty() argument 396 return u_terminateChars(target, targetCapacity, 0, status); in paramEmpty() 400 paramStatic(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) { in paramStatic() argument 401 if(param->paramStr==NULL) return paramEmpty(param,target,targetCapacity,status); in paramStatic() 405 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity)); in paramStatic() 407 return u_terminateChars(target, targetCapacity, len, status); in paramStatic() 412 static int32_t stringToStringBuffer(char *target, int32_t targetCapacity, const char *str, UErrorCode *status) { in stringToStringBuffer() argument 418 uprv_strncpy(target,str,uprv_min(len,targetCapacity)); in stringToStringBuffer() 424 uprv_strncpy(target,s,uprv_min(len,targetCapacity)); in stringToStringBuffer() 430 integerToStringBuffer(char *target, int32_t targetCapacity, int32_t n, int32_t radix, UErrorCode *status) integerToStringBuffer() argument 438 paramInteger(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) paramInteger() argument 456 paramCldrVersion(const USystemParams * , char *target, int32_t targetCapacity, UErrorCode *status) paramCldrVersion() argument 473 paramTimezoneDefault(const USystemParams * , char *target, int32_t targetCapacity, UErrorCode *status) paramTimezoneDefault() argument 490 paramLocaleDefaultBcp47(const USystemParams * , char *target, int32_t targetCapacity, UErrorCode *status) paramLocaleDefaultBcp47() argument [all...] |
/third_party/node/deps/icu-small/source/tools/toolutil/ |
H A D | udbgutil.cpp | 386 typedef int32_t U_CALLCONV USystemParameterCallback(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status); 397 paramEmpty(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *status) { in paramEmpty() argument 399 return u_terminateChars(target, targetCapacity, 0, status); in paramEmpty() 403 paramStatic(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) { in paramStatic() argument 404 if(param->paramStr==nullptr) return paramEmpty(param,target,targetCapacity,status); in paramStatic() 408 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity)); in paramStatic() 410 return u_terminateChars(target, targetCapacity, len, status); in paramStatic() 415 static int32_t stringToStringBuffer(char *target, int32_t targetCapacity, const char *str, UErrorCode *status) { in stringToStringBuffer() argument 421 uprv_strncpy(target,str,uprv_min(len,targetCapacity)); in stringToStringBuffer() 427 uprv_strncpy(target,s,uprv_min(len,targetCapacity)); in stringToStringBuffer() 433 integerToStringBuffer(char *target, int32_t targetCapacity, int32_t n, int32_t radix, UErrorCode *status) integerToStringBuffer() argument 441 paramInteger(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) paramInteger() argument 459 paramCldrVersion(const USystemParams * , char *target, int32_t targetCapacity, UErrorCode *status) paramCldrVersion() argument 476 paramTimezoneDefault(const USystemParams * , char *target, int32_t targetCapacity, UErrorCode *status) paramTimezoneDefault() argument 493 paramLocaleDefaultBcp47(const USystemParams * , char *target, int32_t targetCapacity, UErrorCode *status) paramLocaleDefaultBcp47() argument [all...] |
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
H A D | udbgutil.cpp | 383 typedef int32_t U_CALLCONV USystemParameterCallback(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status); 394 paramEmpty(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *status) { in paramEmpty() argument 396 return u_terminateChars(target, targetCapacity, 0, status); in paramEmpty() 400 paramStatic(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) { in paramStatic() argument 401 if(param->paramStr==NULL) return paramEmpty(param,target,targetCapacity,status); in paramStatic() 405 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity)); in paramStatic() 407 return u_terminateChars(target, targetCapacity, len, status); in paramStatic() 412 static int32_t stringToStringBuffer(char *target, int32_t targetCapacity, const char *str, UErrorCode *status) { in stringToStringBuffer() argument 418 uprv_strncpy(target,str,uprv_min(len,targetCapacity)); in stringToStringBuffer() 424 uprv_strncpy(target,s,uprv_min(len,targetCapacity)); in stringToStringBuffer() 430 integerToStringBuffer(char *target, int32_t targetCapacity, int32_t n, int32_t radix, UErrorCode *status) integerToStringBuffer() argument 438 paramInteger(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) paramInteger() argument 456 paramCldrVersion(const USystemParams * , char *target, int32_t targetCapacity, UErrorCode *status) paramCldrVersion() argument 473 paramTimezoneDefault(const USystemParams * , char *target, int32_t targetCapacity, UErrorCode *status) paramTimezoneDefault() argument 490 paramLocaleDefaultBcp47(const USystemParams * , char *target, int32_t targetCapacity, UErrorCode *status) paramLocaleDefaultBcp47() argument [all...] |
/third_party/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | CharsetBOCU1.java | 240 int targetCapacity; field in CharsetBOCU1.CharsetEncoderBOCU 398 targetCapacity = target.limit() - target.position(); in encodeLoop() 411 if(c!=0 && targetCapacity>0){ in encodeLoop() 435 /*use only one loop counter variable , targetCapacity, not also source*/ in fastSingle() 437 if(targetCapacity>diff){ in fastSingle() 438 targetCapacity = diff; in fastSingle() 440 while(targetCapacity>0 && (c=source.get(source.position()))<0x3000){ in fastSingle() 450 --targetCapacity; in fastSingle() 460 --targetCapacity; in fastSingle() 491 targetCapacity in regularLoop() [all...] |
H A D | CharsetSCSU.java | 636 private int targetCapacity; field in CharsetSCSU.CharsetEncoderSCSU 659 targetCapacity = target.limit()-target.position(); in encodeLoop() 770 if(c!=0 && targetCapacity>0 && !AfterGetTrail){ in loop() 776 if(targetCapacity<=0 && !AfterGetTrail){ in loop() 793 --targetCapacity; in loop() 801 --targetCapacity; in loop() 815 --targetCapacity; in loop() 844 --targetCapacity; in loop() 875 --targetCapacity; in loop() 956 if(c!=0 && targetCapacity> in loop() [all...] |