/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | CharsetUTF16.java | 105 toUBytesArray[toULength++] = source.get(); 107 if (toULength == 1) { 110 && toUBytesArray[toULength - 1] == BOM_BE[toULength - 1]) { 114 && toUBytesArray[toULength - 1] == BOM_LE[toULength - 1]) { 118 // we do not have a BOM (and we have toULength==1 bytes) 128 } else if (isEndianSpecified && version == 1 && (toUBytesArray[toULength - 1] == actualBOM[toULength - 2] && toUBytesArray[toULength [all...] |
H A D | CharsetUTF32.java | 87 toUBytesArray[toULength++] = source.get(); 89 if (toULength == 1) { 92 && toUBytesArray[toULength - 1] == BOM_BE[toULength - 1]) { 96 && toUBytesArray[toULength - 1] == BOM_LE[toULength - 1]) { 100 // we do not have a BOM (and we have toULength==1 bytes) 105 } else if (toUBytesArray[toULength - 1] != actualBOM[toULength - 1]) { 106 // we do not have a BOM (and we have toULength byte [all...] |
H A D | CharsetDecoderICU.java | 32 int toULength; field in class:CharsetDecoderICU 205 toULength = 0; 239 // toULength = 0; 330 if (!flush && !source.hasRemaining() && toULength == 0 && preToULength >= 0) { 454 converterSawEndOfInput= (cr.isUnderflow() && flush && source.remaining()==0 && toULength == 0); 546 } else if(flush && toULength>0) { 553 cr = CoderResult.malformedForLength(toULength); 611 errorInputLength=invalidCharLength=toULength; 617 toULength=0; 645 } else if(toULength > [all...] |
H A D | CharsetHZ.java | 102 this.toULength = 2; 123 toULength = 1; 128 toULength = 2; 201 toULength = 2; 204 toULength = 1; 207 return CoderResult.unmappableForLength(toULength); 209 return CoderResult.malformedForLength(toULength);
|
H A D | CharsetCompoundText.java | 522 if (this.toULength > 0) { 529 tmpState = findStateFromEscSeq(source, this.toUBytesArray, this.toULength); 532 this.toUBytesArray[this.toULength++] = source.get(); 538 if (this.toULength == 0) { 544 this.toULength = 0; 570 decoder.toULength = this.toULength; 574 this.toULength = decoder.toULength; 575 decoder.toULength [all...] |
H A D | CharsetUTF8.java | 100 bytesSoFar = toULength; 104 toULength = 0; 114 toULength = bytesSoFar; 121 toULength = bytesSoFar; 189 toULength = bytesSoFar; 220 bytesSoFar = toULength; 224 toULength = 0; 234 toULength = bytesSoFar; 241 toULength = bytesSoFar; 326 toULength [all...] |
H A D | CharsetSCSU.java | 212 toULength = 0; 402 toULength =1; 409 toULength = 1; 414 toULength = 2; 472 toULength = 2; 485 toULength =2; 497 toULength =2; 522 toULength = 1; 534 toULength = 1; 541 toULength [all...] |
H A D | CharsetISO2022.java | 535 int initialToULength = decoder.toULength; 543 decoder.toUBytesArray[decoder.toULength++] = c; 686 decoder.toULength = 0; 688 if (decoder.toULength > 1) { 701 int backOutDistance = decoder.toULength - 1; 702 int bytesFromThisBuffer = decoder.toULength - initialToULength; 716 decoder.toULength = 1; 768 cnv.toULength = 2; 771 cnv.toULength = 1; 860 } else if (toULength [all...] |
H A D | CharsetLMBCS.java | 763 if (toULength > 0) { /* reassemble char from previous call */ 764 int size_old = toULength; 787 toULength = savebytes; 796 toULength = 0; 822 toULength = savebytes;
|
H A D | CharsetASCII.java | 166 toULength = 1;
|
H A D | CharsetBOCU1.java | 708 * mode decoder's incomplete (diff<<2)|count (ignored when toULength==0) 809 byteIndex = toULength; 1044 toULength=byteIndex;
|
/external/icu/icu4c/source/common/ |
H A D | ucnv_u8.c | 116 i = cnv->toULength; /* restore # of bytes consumed */ 117 cnv->toULength = 0; 158 cnv->toULength = (int8_t) i; 209 cnv->toULength = (int8_t)i; 246 i = cnv->toULength; /* restore # of bytes consumed */ 247 cnv->toULength = 0; 286 cnv->toULength = (int8_t)i; 339 cnv->toULength = (int8_t)i; 641 cnv->toULength = 1; 664 cnv->toULength 770 int8_t oldToULength, toULength, toULimit; local [all...] |
H A D | ucnv_u16.c | 295 cnv->toULength=1; 298 if((count=cnv->toULength)!=0) { 361 cnv->toULength=2; 371 cnv->toULength=(int8_t)count; 442 cnv->toULength=2; 456 cnv->toULength=0; 478 cnv->toUBytes[cnv->toULength++]=*source++; 510 pArgs->converter->toULength=1; 539 pArgs->converter->toULength=(int8_t)(sourceLimit-s); 555 pArgs->converter->toULength [all...] |
H A D | ucnv_u32.c | 57 i = args->converter->toULength; /* restore # of bytes consumed */ 58 args->converter->toULength = 0; 78 args->converter->toULength = (int8_t) i; 107 args->converter->toULength = (int8_t)i; 138 i = args->converter->toULength; /* restore # of bytes consumed */ 139 args->converter->toULength = 0; 159 args->converter->toULength = (int8_t) i; 191 args->converter->toULength = (int8_t)i; 439 args->converter->toULength = (int8_t)length; 457 args->converter->toULength [all...] |
H A D | ucnvmbcs.cpp | 1161 * @return if(U_FAILURE) return the length (toULength, byteIndex) for the input 1973 cnv->toULength=0; /* byteIndex */ 2146 cnv->toULength=_extToU(cnv, cnv->sharedData, 2347 cnv->toULength=_extToU(cnv, cnv->sharedData, 2516 byteIndex=cnv->toULength; 2858 cnv->toULength=byteIndex; 3139 cnv->toULength=(int8_t)(source-lastSource); 3156 cnv->toULength=1; 3165 cnv->toULength=i; 5010 int8_t oldToULength, toULength, toULimi local 5316 int8_t oldToULength, toULength, toULimit; local [all...] |
H A D | ucnvscsu.c | 169 cnv->toULength=0; 378 cnv->toULength=1; 384 cnv->toULength=1; 389 cnv->toULength=2; 443 cnv->toULength=2; 455 cnv->toULength=2; 466 cnv->toULength=2; 504 cnv->toULength=1; 515 cnv->toULength=1; 521 cnv->toULength [all...] |
H A D | ucnv2022.cpp | 446 cnv->toULength=0; /* byteIndex */ 852 int8_t initialToULength = _this->toULength; 858 _this->toUBytes[_this->toULength++]=(uint8_t)c; 879 _this->toULength = 0; 1037 _this->toULength = 0; 1039 if(_this->toULength>1) { 1052 int8_t backOutDistance=_this->toULength-1; 1053 int8_t bytesFromThisBuffer=_this->toULength-initialToULength; 1065 _this->toULength=1; 1343 (mySourceLimit < realSourceLimit && myData->currentConverter->toULength > [all...] |
H A D | ucnvhz.c | 201 args->converter->toULength = 2; 226 args->converter->toULength = 1; 231 args->converter->toULength = 2; 313 args->converter->toULength=2; 317 args->converter->toULength=1;
|
H A D | ucnv_ct.c | 489 if (args->converter->toULength > 0) { 496 tmpState = findStateFromEscSeq(mySource, mySourceLimit, args->converter->toUBytes, args->converter->toULength, err); 500 args->converter->toUBytes[args->converter->toULength++] = *mySource++; 505 if (args->converter->toULength == 0) { 516 sourceOffset = uprv_strlen((char*)escSeqCompoundText[currentState]) - args->converter->toULength; 520 args->converter->toULength = 0;
|
H A D | ucnv_bld.h | 187 int8_t toULength; /* number of bytes in toUBytes */ member in struct:UConverter
|
H A D | ucnvlat1.c | 350 utf8->toULength=0; 408 utf8->toULength=1; 553 cnv->toULength=1; 591 cnv->toULength=1;
|
H A D | ucnv.c | 607 converter->toULength = 0; 1359 cnv->toULength==0); 1448 } else if(pArgs->flush && cnv->toULength>0) { 1525 errorInputLength=cnv->invalidCharLength=cnv->toULength; 1531 cnv->toULength=0; 1928 * at a character boundary (toULength==0) 1932 * in addition to setting toULength/toUBytes[] 1934 if(cnv->toULength==0 && cnv->sharedData->impl->getNextUChar!=NULL) { 2267 sourceCnv->preToULength>=0 && sourceCnv->toULength==0 && 2288 if(sourceCnv->toULength> [all...] |
H A D | ucnv_lmb.c | 1264 if (args->converter->toULength) /* reassemble char from previous call */ 1267 size_t size_old = args->converter->toULength; 1288 args->converter->toULength = savebytes; 1297 args->converter->toULength = 0; 1334 args->converter->toULength = savebytes;
|
H A D | ucnv_u7.c | 184 cnv->toULength=0; 245 byteIndex=cnv->toULength; 447 cnv->toULength=byteIndex; 926 byteIndex=cnv->toULength; 1143 cnv->toULength=byteIndex;
|
H A D | ucnvbocu.cpp | 262 * mode decoder's incomplete (diff<<2)|count (ignored when toULength==0) 965 diff=cnv->mode; /* mode may be set to UCNV_SI by ucnv_bld.c but then toULength==0 */ 969 byteIndex=cnv->toULength; 1143 cnv->toULength=byteIndex; 1184 diff=cnv->mode; /* mode may be set to UCNV_SI by ucnv_bld.c but then toULength==0 */ 1188 byteIndex=cnv->toULength; 1342 cnv->toULength=byteIndex;
|