Home
last modified time | relevance | path

Searched refs:length2 (Results 1 - 25 of 73) sorted by relevance

123

/third_party/typescript/tests/baselines/reference/
H A DgenericTypeParameterEquivalence2.js29 function length2<A>(ar: A[]): number {
49 // length2 :: [a] -> Num
53 return compose(length2, cfilter(pred));
58 return compose(length2, where);
85 function length2(ar) { function
102 // length2 :: [a] -> Num
105 return compose(length2, cfilter(pred));
109 return compose(length2, where);
/third_party/icu/icu4c/source/common/
H A Dunormcmp.cpp144 const UChar *s2, int32_t length2, in unorm_cmpEquivFold()
198 if(length2==-1) { in unorm_cmpEquivFold()
201 limit2=s2+length2; in unorm_cmpEquivFold()
562 const UChar *s2, int32_t length2, in unorm_compare()
569 if(s1==0 || length1<-1 || s2==0 || length2<-1) { in unorm_compare()
617 if(_normalize(&fn2, s2, length2, fcd2, pErrorCode)) { in unorm_compare()
619 length2=fcd2.length(); in unorm_compare()
626 if(_normalize(n2, s2, length2, fcd2, pErrorCode)) { in unorm_compare()
628 length2=fcd2.length(); in unorm_compare()
634 return unorm_cmpEquivFold(s1, length1, s2, length2, option in unorm_compare()
143 unorm_cmpEquivFold(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode) unorm_cmpEquivFold() argument
561 unorm_compare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode) unorm_compare() argument
[all...]
H A Dustring.cpp688 const UChar *s2, int32_t length2, in uprv_strCompare()
698 if(length1<0 && length2<0) { in uprv_strCompare()
720 /* special handling for strncmp, assume length1==length2>=0 but also check for NUL */ in uprv_strCompare()
754 if(length2<0) { in uprv_strCompare()
755 length2=u_strlen(s2); in uprv_strCompare()
758 /* limit1=start1+min(length1, length2) */ in uprv_strCompare()
759 if(length1<length2) { in uprv_strCompare()
762 } else if(length1==length2) { in uprv_strCompare()
765 } else /* length1>length2 */ { in uprv_strCompare()
767 limit1=start1+length2; in uprv_strCompare()
687 uprv_strCompare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, UBool strncmpStyle, UBool codePointOrder) uprv_strCompare() argument
925 u_strCompare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, UBool codePointOrder) u_strCompare() argument
[all...]
H A Ducasemap_imp.h40 const UChar *s2, int32_t length2,
50 * @param length2 length of string 2, or -1 (NULL terminated)
58 const UChar *s2, int32_t length2,
/third_party/node/deps/icu-small/source/common/
H A Dunormcmp.cpp144 const char16_t *s2, int32_t length2, in unorm_cmpEquivFold()
198 if(length2==-1) { in unorm_cmpEquivFold()
201 limit2=s2+length2; in unorm_cmpEquivFold()
562 const char16_t *s2, int32_t length2, in unorm_compare()
569 if(s1==0 || length1<-1 || s2==0 || length2<-1) { in unorm_compare()
617 if(_normalize(&fn2, s2, length2, fcd2, pErrorCode)) { in unorm_compare()
619 length2=fcd2.length(); in unorm_compare()
626 if(_normalize(n2, s2, length2, fcd2, pErrorCode)) { in unorm_compare()
628 length2=fcd2.length(); in unorm_compare()
634 return unorm_cmpEquivFold(s1, length1, s2, length2, option in unorm_compare()
143 unorm_cmpEquivFold(const char16_t *s1, int32_t length1, const char16_t *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode) unorm_cmpEquivFold() argument
561 unorm_compare(const char16_t *s1, int32_t length1, const char16_t *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode) unorm_compare() argument
[all...]
H A Dustring.cpp688 const char16_t *s2, int32_t length2, in uprv_strCompare()
698 if(length1<0 && length2<0) { in uprv_strCompare()
720 /* special handling for strncmp, assume length1==length2>=0 but also check for NUL */ in uprv_strCompare()
754 if(length2<0) { in uprv_strCompare()
755 length2=u_strlen(s2); in uprv_strCompare()
758 /* limit1=start1+min(length1, length2) */ in uprv_strCompare()
759 if(length1<length2) { in uprv_strCompare()
762 } else if(length1==length2) { in uprv_strCompare()
765 } else /* length1>length2 */ { in uprv_strCompare()
767 limit1=start1+length2; in uprv_strCompare()
687 uprv_strCompare(const char16_t *s1, int32_t length1, const char16_t *s2, int32_t length2, UBool strncmpStyle, UBool codePointOrder) uprv_strCompare() argument
925 u_strCompare(const char16_t *s1, int32_t length1, const char16_t *s2, int32_t length2, UBool codePointOrder) u_strCompare() argument
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dunormcmp.cpp144 const UChar *s2, int32_t length2, in unorm_cmpEquivFold()
198 if(length2==-1) { in unorm_cmpEquivFold()
201 limit2=s2+length2; in unorm_cmpEquivFold()
562 const UChar *s2, int32_t length2, in unorm_compare()
569 if(s1==0 || length1<-1 || s2==0 || length2<-1) { in unorm_compare()
617 if(_normalize(&fn2, s2, length2, fcd2, pErrorCode)) { in unorm_compare()
619 length2=fcd2.length(); in unorm_compare()
626 if(_normalize(n2, s2, length2, fcd2, pErrorCode)) { in unorm_compare()
628 length2=fcd2.length(); in unorm_compare()
634 return unorm_cmpEquivFold(s1, length1, s2, length2, option in unorm_compare()
143 unorm_cmpEquivFold(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode) unorm_cmpEquivFold() argument
561 unorm_compare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode) unorm_compare() argument
[all...]
H A Dustring.cpp688 const UChar *s2, int32_t length2, in uprv_strCompare()
698 if(length1<0 && length2<0) { in uprv_strCompare()
720 /* special handling for strncmp, assume length1==length2>=0 but also check for NUL */ in uprv_strCompare()
754 if(length2<0) { in uprv_strCompare()
755 length2=u_strlen(s2); in uprv_strCompare()
758 /* limit1=start1+min(lenght1, length2) */ in uprv_strCompare()
759 if(length1<length2) { in uprv_strCompare()
762 } else if(length1==length2) { in uprv_strCompare()
765 } else /* length1>length2 */ { in uprv_strCompare()
767 limit1=start1+length2; in uprv_strCompare()
687 uprv_strCompare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, UBool strncmpStyle, UBool codePointOrder) uprv_strCompare() argument
925 u_strCompare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, UBool codePointOrder) u_strCompare() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/range/
H A DPrefixInfixSuffixLengthHelper.java12 public int length2 = 0; field in PrefixInfixSuffixLengthHelper
28 return lengthPrefix + length1 + lengthInfix + length2; in index3()
32 return lengthPrefix + length1 + lengthInfix + length2 + lengthSuffix; in index4()
/third_party/node/deps/icu-small/source/i18n/
H A Duspoof.cpp440 const char16_t *id2, int32_t length2, in uspoof_areConfusable()
446 if (length1 < -1 || length2 < -1) { in uspoof_areConfusable()
452 UnicodeString id2Str((length2==-1), id2, length2); // Aliasing constructor in uspoof_areConfusable()
460 const char *id2, int32_t length2, in uspoof_areConfusableUTF8()
466 if (length1 < -1 || length2 < -1) { in uspoof_areConfusableUTF8()
471 UnicodeString id2Str = UnicodeString::fromUTF8(StringPiece(id2, length2>=0? length2 : static_cast<int32_t>(uprv_strlen(id2)))); in uspoof_areConfusableUTF8()
544 const char16_t *id2, int32_t length2, in uspoof_areBidiConfusable()
547 UnicodeString id2Str((length2 in uspoof_areBidiConfusable()
438 uspoof_areConfusable(const USpoofChecker *sc, const char16_t *id1, int32_t length1, const char16_t *id2, int32_t length2, UErrorCode *status) uspoof_areConfusable() argument
458 uspoof_areConfusableUTF8(const USpoofChecker *sc, const char *id1, int32_t length1, const char *id2, int32_t length2, UErrorCode *status) uspoof_areConfusableUTF8() argument
542 uspoof_areBidiConfusable(const USpoofChecker *sc, UBiDiDirection direction, const char16_t *id1, int32_t length1, const char16_t *id2, int32_t length2, UErrorCode *status) uspoof_areBidiConfusable() argument
555 uspoof_areBidiConfusableUTF8(const USpoofChecker *sc, UBiDiDirection direction, const char *id1, int32_t length1, const char *id2, int32_t length2, UErrorCode *status) uspoof_areBidiConfusableUTF8() argument
[all...]
H A Dnumrange_impl.cpp345 int32_t length2 = 0; in formatRange() local
352 #define UPRV_INDEX_3 (lengthPrefix + length1 + lengthInfix + length2) in formatRange()
353 #define UPRV_INDEX_4 (lengthPrefix + length1 + lengthInfix + length2 + lengthSuffix) in formatRange()
391 length2 += string.insert(UPRV_INDEX_2, tempString, status); in formatRange()
402 length2 += micros2.modInner->apply(string, UPRV_INDEX_2, UPRV_INDEX_4, status); in formatRange()
412 length2 += micros2.modMiddle->apply(string, UPRV_INDEX_2, UPRV_INDEX_4, status); in formatRange()
422 length2 += micros2.modOuter->apply(string, UPRV_INDEX_2, UPRV_INDEX_4, status); in formatRange()
427 data.appendSpanInfo(UFIELD_CATEGORY_NUMBER_RANGE_SPAN, 1, UPRV_INDEX_2, length2, status); in formatRange()
/third_party/icu/icu4c/source/i18n/
H A Dnumrange_impl.cpp345 int32_t length2 = 0; in formatRange() local
352 #define UPRV_INDEX_3 (lengthPrefix + length1 + lengthInfix + length2) in formatRange()
353 #define UPRV_INDEX_4 (lengthPrefix + length1 + lengthInfix + length2 + lengthSuffix) in formatRange()
391 length2 += string.insert(UPRV_INDEX_2, tempString, status); in formatRange()
402 length2 += micros2.modInner->apply(string, UPRV_INDEX_2, UPRV_INDEX_4, status); in formatRange()
412 length2 += micros2.modMiddle->apply(string, UPRV_INDEX_2, UPRV_INDEX_4, status); in formatRange()
422 length2 += micros2.modOuter->apply(string, UPRV_INDEX_2, UPRV_INDEX_4, status); in formatRange()
427 data.appendSpanInfo(UFIELD_CATEGORY_NUMBER_RANGE_SPAN, 1, UPRV_INDEX_2, length2, status); in formatRange()
H A Duspoof.cpp439 const UChar *id2, int32_t length2, in uspoof_areConfusable()
445 if (length1 < -1 || length2 < -1) { in uspoof_areConfusable()
451 UnicodeString id2Str((length2==-1), id2, length2); // Aliasing constructor in uspoof_areConfusable()
459 const char *id2, int32_t length2, in uspoof_areConfusableUTF8()
465 if (length1 < -1 || length2 < -1) { in uspoof_areConfusableUTF8()
470 UnicodeString id2Str = UnicodeString::fromUTF8(StringPiece(id2, length2>=0? length2 : static_cast<int32_t>(uprv_strlen(id2)))); in uspoof_areConfusableUTF8()
437 uspoof_areConfusable(const USpoofChecker *sc, const UChar *id1, int32_t length1, const UChar *id2, int32_t length2, UErrorCode *status) uspoof_areConfusable() argument
457 uspoof_areConfusableUTF8(const USpoofChecker *sc, const char *id1, int32_t length1, const char *id2, int32_t length2, UErrorCode *status) uspoof_areConfusableUTF8() argument
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dnumrange_impl.cpp323 int32_t length2 = 0; in formatRange() local
330 #define UPRV_INDEX_3 (lengthPrefix + length1 + lengthInfix + length2) in formatRange()
331 #define UPRV_INDEX_4 (lengthPrefix + length1 + lengthInfix + length2 + lengthSuffix) in formatRange()
366 length2 += NumberFormatterImpl::writeNumber(micros2, data.quantity2, string, UPRV_INDEX_2, status); in formatRange()
377 length2 += micros2.modInner->apply(string, UPRV_INDEX_2, UPRV_INDEX_4, status); in formatRange()
387 length2 += micros2.modMiddle->apply(string, UPRV_INDEX_2, UPRV_INDEX_4, status); in formatRange()
397 length2 += micros2.modOuter->apply(string, UPRV_INDEX_2, UPRV_INDEX_4, status); in formatRange()
402 data.appendSpanInfo(UFIELD_CATEGORY_NUMBER_RANGE_SPAN, 1, UPRV_INDEX_2, length2, status); in formatRange()
H A Duspoof.cpp435 const UChar *id2, int32_t length2, in uspoof_areConfusable()
441 if (length1 < -1 || length2 < -1) { in uspoof_areConfusable()
447 UnicodeString id2Str((length2==-1), id2, length2); // Aliasing constructor in uspoof_areConfusable()
455 const char *id2, int32_t length2, in uspoof_areConfusableUTF8()
461 if (length1 < -1 || length2 < -1) { in uspoof_areConfusableUTF8()
466 UnicodeString id2Str = UnicodeString::fromUTF8(StringPiece(id2, length2>=0? length2 : static_cast<int32_t>(uprv_strlen(id2)))); in uspoof_areConfusableUTF8()
433 uspoof_areConfusable(const USpoofChecker *sc, const UChar *id1, int32_t length1, const UChar *id2, int32_t length2, UErrorCode *status) uspoof_areConfusable() argument
453 uspoof_areConfusableUTF8(const USpoofChecker *sc, const char *id1, int32_t length1, const char *id2, int32_t length2, UErrorCode *status) uspoof_areConfusableUTF8() argument
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/range/
H A DPrefixInfixSuffixLengthHelper.java14 public int length2 = 0; field in PrefixInfixSuffixLengthHelper
30 return lengthPrefix + length1 + lengthInfix + length2; in index3()
/third_party/node/test/js-native-api/test_conversions/
H A Dtest_null.c48 size_t length2 = 3; \ in GEN_NULL_CHECK_BINDING()
49 api(env, NULL, buf2, length2, &length2); \ in GEN_NULL_CHECK_BINDING()
/third_party/ffmpeg/libavformat/
H A Drtpdec_xiph.c230 unsigned num_packed, num_headers, length, length1, length2, extradata_alloc; in parse_packed_headers() local
246 length2 = get_base128(&packed_headers, packed_headers_end); in parse_packed_headers()
255 length1 > length || length2 > length - length1) { in parse_packed_headers()
258 length2, packed_headers_end - packed_headers, length); in parse_packed_headers()
275 ptr += av_xiphlacing(ptr, length2); in parse_packed_headers()
/third_party/icu/icu4c/source/test/cintltst/
H A Dudatatst.c1414 int32_t length, dataLength, length2, headerLength; in TestSwapCase() local
1513 length2=swapFn(ds, inHeader, length, buffer, &errorCode); in TestSwapCase()
1522 if(length2!=length) { in TestSwapCase()
1524 name, length2, length); in TestSwapCase()
1540 length2=swapFn(ds, buffer, length, buffer, &errorCode); in TestSwapCase()
1549 if(length2!=length) { in TestSwapCase()
1551 name, length2, length); in TestSwapCase()
1567 length2=swapFn(ds, buffer, length, buffer2, &errorCode); in TestSwapCase()
1576 if(length2!=length) { in TestSwapCase()
1578 name, length2, lengt in TestSwapCase()
[all...]
H A Dtrie2test.c582 int32_t length1, length2, length3; in testTrieSerialize() local
642 length2=utrie2_serialize(trie, storage, sizeof(storage), &errorCode); in testTrieSerialize()
651 if(length1!=length2) { in testTrieSerialize()
668 uprv_memset(swapped, 0x55, length2); in testTrieSerialize()
672 if(U_FAILURE(errorCode) || swappedLength!=length2) { in testTrieSerialize()
679 swappedLength=utrie2_swap(ds, storage, length2, swapped, &errorCode); in testTrieSerialize()
681 if(U_FAILURE(errorCode) || swappedLength!=length2) { in testTrieSerialize()
688 uprv_memset(storage, 0xaa, length2); in testTrieSerialize()
692 if(U_FAILURE(errorCode) || swappedLength!=length2) { in testTrieSerialize()
699 swappedLength=utrie2_swap(ds, swapped, length2, storag in testTrieSerialize()
[all...]
H A Ducptrietest.c774 int32_t length1, length2, length3; in testTrieSerialize() local
806 length2=ucptrie_toBinary(trie, storage, sizeof(storage), &errorCode); in testTrieSerialize()
815 if(length1!=length2) { in testTrieSerialize()
844 uprv_memset(swapped, 0x55, length2); in testTrieSerialize()
848 if(U_FAILURE(errorCode) || swappedLength!=length2) { in testTrieSerialize()
855 swappedLength=ucptrie_swap(ds, storage, length2, swapped, &errorCode); in testTrieSerialize()
857 if(U_FAILURE(errorCode) || swappedLength!=length2) { in testTrieSerialize()
864 uprv_memset(storage, 0xaa, length2); in testTrieSerialize()
868 if(U_FAILURE(errorCode) || swappedLength!=length2) { in testTrieSerialize()
875 swappedLength=ucptrie_swap(ds, swapped, length2, storag in testTrieSerialize()
[all...]
/third_party/node/deps/icu-small/source/i18n/unicode/
H A Duspoof.h1207 * @param length2 The length of the second identifiers, expressed in
1224 const UChar *id2, int32_t length2,
1260 * @param length2 The length of the second identifiers, expressed in
1276 const UChar *id2, int32_t length2,
1290 * @param length2 The length of the second string in bytes, or -1
1308 const char *id2, int32_t length2,
1324 * @param length2 The length of the second string in bytes, or -1
1341 const char *id2, int32_t length2,
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
H A DNumberRangeFormatterImpl.java370 h.length2 += string.insert(h.index2(), tempString); in formatRange()
381 h.length2 += micros2.modInner.apply(string, h.index2(), h.index4()); in formatRange()
391 h.length2 += micros2.modMiddle.apply(string, h.index2(), h.index4()); in formatRange()
401 h.length2 += micros2.modOuter.apply(string, h.index2(), h.index4()); in formatRange()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
H A DNumberRangeFormatterImpl.java340 h.length2 += NumberFormatterImpl.writeNumber(micros2, quantity2, string, h.index2()); in formatRange()
350 h.length2 += micros2.modInner.apply(string, h.index2(), h.index3()); in formatRange()
359 h.length2 += micros2.modMiddle.apply(string, h.index2(), h.index3()); in formatRange()
368 h.length2 += micros2.modOuter.apply(string, h.index2(), h.index3()); in formatRange()
/third_party/icu/icu4c/source/i18n/unicode/
H A Duspoof.h1142 * @param length2 The length of the second identifiers, expressed in
1159 const UChar *id2, int32_t length2,
1174 * @param length2 The length of the second string in bytes, or -1
1192 const char *id2, int32_t length2,

Completed in 25 milliseconds

123