Home
last modified time | relevance | path

Searched refs:targetLength (Results 1 – 25 of 46) sorted by relevance

12

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetASCII.java70 int targetLength = target.limit() - oldTarget; in decodeLoop() local
72 int limit = ((sourceLength < targetLength) ? sourceLength : targetLength) in decodeLoop()
82 if (sourceLength <= targetLength) { in decodeLoop()
87 source.position(oldSource + targetLength); in decodeLoop()
88 target.position(oldTarget + targetLength); in decodeLoop()
228 int targetLength = target.limit() - oldTarget; in encodeLoop() local
230 int limit = ((sourceLength < targetLength) ? sourceLength : targetLength) in encodeLoop()
240 if (sourceLength <= targetLength) { in encodeLoop()
245 source.position(oldSource + targetLength); in encodeLoop()
246 target.position(oldTarget + targetLength); in encodeLoop()
DCharsetCompoundText.java350 int targetLength = 0; in encodeLoop() local
373 targetLength = 0; in encodeLoop()
451 targetLength = i; in encodeLoop()
455 targetBytes[i+targetLength] = tmpTargetBuffer.get(i); in encodeLoop()
457 targetLength += i; in encodeLoop()
459 for (i = 0; i < targetLength; i++) { in encodeLoop()
475 for (int n = i; n < targetLength; n++) { in encodeLoop()
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/
DAbbreviatorTest.java128 …oid assertTheory0(int averageLen, String filename, String result, int fixedLen, int targetLength) { in assertTheory0() argument
133 … assertUsefulness(int averageLen, String filename, String result, int fixedLen, int targetLength) { in assertUsefulness() argument
137 if (targetLength > fixedLen + margin) { in assertUsefulness()
139 … + targetLength + ", avgLen=" + averageLen, result.length() <= targetLength + averageLen); in assertUsefulness()
144 void assertTheory1(String filename, String result, int fixedLen, int targetLength) { in assertTheory1() argument
151 void assertTheory2(String filename, String result, int fixedLen, int targetLength) { in assertTheory2() argument
/external/icu/icu4c/source/common/
Ducnvhz.cpp41 #define CONCAT_ESCAPE_MACRO(args, targetIndex,targetLength,strToAppend, err, len,sourceIndex) UPRV_… argument
43 …if(targetIndex < targetLength){ …
343 int32_t targetLength = (int32_t)(args->targetLimit - myTarget); in UConverter_fromUnicode_HZ_OFFSETS_LOGIC() local
358 if(args->converter->fromUChar32!=0 && myTargetIndex < targetLength) { in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
364 if (myTargetIndex < targetLength){ in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
374 … CONCAT_ESCAPE_MACRO(args, myTargetIndex, targetLength, escSeq,err,len,mySourceIndex); in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
398 … CONCAT_ESCAPE_MACRO(args, myTargetIndex, targetLength, escSeq,err,len,mySourceIndex); in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
404 … CONCAT_ESCAPE_MACRO(args, myTargetIndex, targetLength, escSeq,err,len,mySourceIndex); in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
411 if( myTargetIndex <targetLength){ in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
416 if(myTargetIndex < targetLength){ in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
[all …]
Dunistr.cpp1696 UnicodeString::padLeading(int32_t targetLength, in padLeading() argument
1700 if(oldLength >= targetLength || !cloneArrayIfNeeded(targetLength)) { in padLeading()
1705 int32_t start = targetLength - oldLength; in padLeading()
1712 setLength(targetLength); in padLeading()
1718 UnicodeString::padTrailing(int32_t targetLength, in padTrailing() argument
1722 if(oldLength >= targetLength || !cloneArrayIfNeeded(targetLength)) { in padTrailing()
1727 int32_t length = targetLength; in padTrailing()
1731 setLength(targetLength); in padTrailing()
Ducnv.cpp2407 int32_t targetLength=0; in ucnv_internalConvert() local
2423 targetLength=0; in ucnv_internalConvert()
2435 targetLength=(int32_t)(myTarget-target); in ucnv_internalConvert()
2458 targetLength+=(int32_t)(myTarget-targetBuffer); in ucnv_internalConvert()
2462 return u_terminateChars(target, targetCapacity, targetLength, pErrorCode); in ucnv_internalConvert()
2466 return targetLength; in ucnv_internalConvert()
2476 int32_t targetLength; in ucnv_convert() local
2506 targetLength=ucnv_internalConvert(outConverter, inConverter, in ucnv_convert()
2514 return targetLength; in ucnv_convert()
2527 int32_t targetLength; in ucnv_convertAlgorithmic() local
[all …]
/external/icu/icu4c/source/i18n/
Ducol.cpp445 int32_t targetLength) in ucol_strcoll() argument
451 UTRACE_DATA2(UTRACE_VERBOSE, "target string = %vh ", target, targetLength); in ucol_strcoll()
456 compare(source, sourceLength, target, targetLength, status); in ucol_strcoll()
467 int32_t targetLength, in ucol_strcollUTF8() argument
474 UTRACE_DATA2(UTRACE_VERBOSE, "target string = %vb ", target, targetLength); in ucol_strcollUTF8()
484 source, sourceLength, target, targetLength, *status); in ucol_strcollUTF8()
496 int32_t targetLength) in ucol_greater() argument
498 return (ucol_strcoll(coll, source, sourceLength, target, targetLength) in ucol_greater()
508 int32_t targetLength) in ucol_greaterOrEqual() argument
510 return (ucol_strcoll(coll, source, sourceLength, target, targetLength) in ucol_greaterOrEqual()
[all …]
Dsortkey.cpp196 int32_t targetLength = target.getLength(); in compareTo() local
197 if (minLength < targetLength) { in compareTo()
199 } else if (minLength == targetLength) { in compareTo()
202 minLength = targetLength; in compareTo()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DAdtsReader.java174 int targetLength = hasCrc ? HEADER_SIZE + CRC_SIZE : HEADER_SIZE; in consume() local
175 if (continueRead(data, adtsScratch.data, targetLength)) { in consume()
215 private boolean continueRead(ParsableByteArray source, byte[] target, int targetLength) { in continueRead() argument
216 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead()
219 return bytesRead == targetLength; in continueRead()
458 private boolean tryRead(ParsableByteArray source, byte[] target, int targetLength) { in tryRead() argument
459 if (source.bytesLeft() < targetLength) { in tryRead()
462 source.readBytes(target, /* offset= */ 0, targetLength); in tryRead()
DDtsReader.java139 private boolean continueRead(ParsableByteArray source, byte[] target, int targetLength) { in continueRead() argument
140 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead()
143 return bytesRead == targetLength; in continueRead()
DPesReader.java172 ParsableByteArray source, @Nullable byte[] target, int targetLength) { in continueRead() argument
173 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead()
182 return bytesRead == targetLength; in continueRead()
DAc4Reader.java162 private boolean continueRead(ParsableByteArray source, byte[] target, int targetLength) { in continueRead() argument
163 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead()
166 return bytesRead == targetLength; in continueRead()
DAc3Reader.java163 private boolean continueRead(ParsableByteArray source, byte[] target, int targetLength) { in continueRead() argument
164 int bytesToRead = Math.min(source.bytesLeft(), targetLength - bytesRead); in continueRead()
167 return bytesRead == targetLength; in continueRead()
/external/icu/libandroidicu/include/unicode/
Ducol.h569 int32_t targetLength);
595 int32_t targetLength,
615 const UChar *target, int32_t targetLength);
634 const UChar *target, int32_t targetLength);
653 const UChar *target, int32_t targetLength);
/external/icu/libicu/cts_headers/unicode/
Ducol.h569 int32_t targetLength);
595 int32_t targetLength,
615 const UChar *target, int32_t targetLength);
634 const UChar *target, int32_t targetLength);
653 const UChar *target, int32_t targetLength);
Dcoll.h433 const char16_t* target, int32_t targetLength)
454 const char16_t* target, int32_t targetLength,
Dunistr.h1581 uint32_t targetLength) const;
1649 uint32_t targetLength,
2596 UBool padLeading(int32_t targetLength,
2610 UBool padTrailing(int32_t targetLength,
2619 inline UBool truncate(int32_t targetLength);
4730 UnicodeString::truncate(int32_t targetLength) in truncate() argument
4732 if(isBogus() && targetLength == 0) { in truncate()
4736 } else if((uint32_t)targetLength < (uint32_t)length()) { in truncate()
4737 setLength(targetLength); in truncate()
/external/icu/icu4c/source/i18n/unicode/
Ducol.h569 int32_t targetLength);
595 int32_t targetLength,
615 const UChar *target, int32_t targetLength);
634 const UChar *target, int32_t targetLength);
653 const UChar *target, int32_t targetLength);
Dcoll.h433 const char16_t* target, int32_t targetLength)
454 const char16_t* target, int32_t targetLength,
/external/zstd/lib/compress/
Dzstd_fast.c56 size_t const stepSize = cParams->targetLength + !(cParams->targetLength) + 1; in ZSTD_compressBlock_fast_generic()
215 U32 const stepSize = cParams->targetLength + !(cParams->targetLength); in ZSTD_compressBlock_fast_dictMatchState_generic()
383 U32 const stepSize = cParams->targetLength + !(cParams->targetLength); in ZSTD_compressBlock_fast_extDict_generic()
/external/zstd/tests/fuzz/
Dzstd_helpers.c45 cParams.targetLength = FUZZ_dataProducer_uint32Range(producer, 0, 512); in FUZZ_randomCParams()
76 set(cctx, ZSTD_c_targetLength, cParams.targetLength); in FUZZ_setRandomParameters()
/external/icu/icu4c/source/tools/toolutil/
Dpkgitems.cpp134 int32_t treeLength, suffixLength, targetLength; in makeTargetName() local
150 targetLength=treeLength+idLength+suffixLength; in makeTargetName()
151 if(targetLength>=capacity) { in makeTargetName()
153 itemName, (long)targetLength); in makeTargetName()
/external/zstd/lib/legacy/
Dzstd_v05.h89 …U32 contentLog; U32 hashLog; U32 searchLog; U32 searchLength; U32 targetLength; ZSTDv05_strategy s… member
/external/icu/icu4c/source/common/unicode/
Dunistr.h1581 uint32_t targetLength) const;
1649 uint32_t targetLength,
2596 UBool padLeading(int32_t targetLength,
2610 UBool padTrailing(int32_t targetLength,
2619 inline UBool truncate(int32_t targetLength);
4730 UnicodeString::truncate(int32_t targetLength) in truncate() argument
4732 if(isBogus() && targetLength == 0) { in truncate()
4736 } else if((uint32_t)targetLength < (uint32_t)length()) { in truncate()
4737 setLength(targetLength); in truncate()
/external/zstd/tests/
Dlongmatch.c54 params.cParams.targetLength = 16; in main()

12