/third_party/icu/icu4c/source/test/perf/normperf/ |
D | normperf.h | 32 typedef int32_t (*NormFn)(const UChar* src,int32_t srcLen, UChar* dest,int32_t dstLen, int32_t opti… 33 typedef int32_t (*QuickCheckFn)(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t o… 44 int32_t srcLen; variable 63 retVal = (*fn)(src,srcLen,mode, options, status); in call() 78 return srcLen; in getOperationsPerIteration() 88 srcLen = 0; in QuickCheckPerfFunction() 98 srcLen = sourceLen; in QuickCheckPerfFunction() 115 int32_t srcLen; variable 133 retVal = (*fn)(src,srcLen,pDest,destLen, options, status); in call() 147 return srcLen; in getOperationsPerIteration() [all …]
|
/third_party/node/deps/icu-small/source/tools/genrb/ |
D | prscmnts.cpp | 47 removeText(UChar *source, int32_t srcLen, in removeText() argument 55 UnicodeString src(source, srcLen); in removeText() 67 return dest.extract(source, srcLen, *status); in removeText() 71 trim(UChar *src, int32_t srcLen, UErrorCode *status){ in trim() argument 72 …srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // re… in trim() 73 …srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove le… in trim() 74 …srcLen = removeText(src, srcLen, UnicodeString("\\s+$"), 0, UnicodeString(), status); // remove tr… in trim() 75 return srcLen; in trim() 79 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status){ in removeCmtText() argument 80 srcLen = trim(source, srcLen, status); in removeCmtText() [all …]
|
D | rle.c | 151 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument 155 *buffer++ = (uint16_t)(srcLen>>16); in usArrayToRLEString() 160 *buffer++ = (uint16_t) srcLen; in usArrayToRLEString() 162 for (; i<srcLen; ++i) { in usArrayToRLEString() 197 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument 201 *buffer++ = ((uint16_t) (srcLen >> 16)); in byteArrayToRLEString() 208 *buffer++=((uint16_t) srcLen); in byteArrayToRLEString() 209 for (; i<srcLen; ++i) { in byteArrayToRLEString() 242 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* … in rleStringToUCharArray() argument 251 if(srcLen == -1){ in rleStringToUCharArray() [all …]
|
D | prscmnts.h | 37 getNote(const UChar* source, int32_t srcLen, 41 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status); 44 getDescription( const UChar* source, int32_t srcLen, 48 getTranslate( const UChar* source, int32_t srcLen, 53 getAt(const UChar* source, int32_t srcLen, 60 getCount(const UChar* source, int32_t srcLen,
|
/third_party/icu/icu4c/source/tools/genrb/ |
D | prscmnts.cpp | 47 removeText(UChar *source, int32_t srcLen, in removeText() argument 55 UnicodeString src(source, srcLen); in removeText() 67 return dest.extract(source, srcLen, *status); in removeText() 71 trim(UChar *src, int32_t srcLen, UErrorCode *status){ in trim() argument 72 …srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // re… in trim() 73 …srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove le… in trim() 74 …srcLen = removeText(src, srcLen, UnicodeString("\\s+$"), 0, UnicodeString(), status); // remvoe tr… in trim() 75 return srcLen; in trim() 79 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status){ in removeCmtText() argument 80 srcLen = trim(source, srcLen, status); in removeCmtText() [all …]
|
D | rle.c | 151 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument 155 *buffer++ = (uint16_t)(srcLen>>16); in usArrayToRLEString() 160 *buffer++ = (uint16_t) srcLen; in usArrayToRLEString() 162 for (; i<srcLen; ++i) { in usArrayToRLEString() 197 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument 201 *buffer++ = ((uint16_t) (srcLen >> 16)); in byteArrayToRLEString() 208 *buffer++=((uint16_t) srcLen); in byteArrayToRLEString() 209 for (; i<srcLen; ++i) { in byteArrayToRLEString() 242 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* … in rleStringToUCharArray() argument 251 if(srcLen == -1){ in rleStringToUCharArray() [all …]
|
D | prscmnts.h | 37 getNote(const UChar* source, int32_t srcLen, 41 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status); 44 getDescription( const UChar* source, int32_t srcLen, 48 getTranslate( const UChar* source, int32_t srcLen, 53 getAt(const UChar* source, int32_t srcLen, 60 getCount(const UChar* source, int32_t srcLen,
|
/third_party/skia/third_party/externals/icu/source/tools/genrb/ |
D | prscmnts.cpp | 47 removeText(UChar *source, int32_t srcLen, in removeText() argument 55 UnicodeString src(source, srcLen); in removeText() 67 return dest.extract(source, srcLen, *status); in removeText() 71 trim(UChar *src, int32_t srcLen, UErrorCode *status){ in trim() argument 72 …srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // re… in trim() 73 …srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove le… in trim() 74 …srcLen = removeText(src, srcLen, UnicodeString("\\s+$"), 0, UnicodeString(), status); // remvoe tr… in trim() 75 return srcLen; in trim() 79 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status){ in removeCmtText() argument 80 srcLen = trim(source, srcLen, status); in removeCmtText() [all …]
|
D | rle.c | 151 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument 155 *buffer++ = (uint16_t)(srcLen>>16); in usArrayToRLEString() 160 *buffer++ = (uint16_t) srcLen; in usArrayToRLEString() 162 for (; i<srcLen; ++i) { in usArrayToRLEString() 197 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument 201 *buffer++ = ((uint16_t) (srcLen >> 16)); in byteArrayToRLEString() 208 *buffer++=((uint16_t) srcLen); in byteArrayToRLEString() 209 for (; i<srcLen; ++i) { in byteArrayToRLEString() 242 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* … in rleStringToUCharArray() argument 251 if(srcLen == -1){ in rleStringToUCharArray() [all …]
|
D | prscmnts.h | 37 getNote(const UChar* source, int32_t srcLen, 41 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status); 44 getDescription( const UChar* source, int32_t srcLen, 48 getTranslate( const UChar* source, int32_t srcLen, 53 getAt(const UChar* source, int32_t srcLen, 60 getCount(const UChar* source, int32_t srcLen,
|
/third_party/flutter/skia/third_party/externals/icu/source/tools/genrb/ |
D | prscmnts.cpp | 47 removeText(UChar *source, int32_t srcLen, in removeText() argument 55 UnicodeString src(source, srcLen); in removeText() 67 return dest.extract(source, srcLen, *status); in removeText() 71 trim(UChar *src, int32_t srcLen, UErrorCode *status){ in trim() argument 72 …srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // re… in trim() 73 …srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove le… in trim() 74 …srcLen = removeText(src, srcLen, UnicodeString("\\s+$"), 0, UnicodeString(), status); // remvoe tr… in trim() 75 return srcLen; in trim() 79 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status){ in removeCmtText() argument 80 srcLen = trim(source, srcLen, status); in removeCmtText() [all …]
|
D | rle.c | 150 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument 154 *buffer++ = (uint16_t)(srcLen>>16); in usArrayToRLEString() 159 *buffer++ = (uint16_t) srcLen; in usArrayToRLEString() 161 for (; i<srcLen; ++i) { in usArrayToRLEString() 196 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument 200 *buffer++ = ((uint16_t) (srcLen >> 16)); in byteArrayToRLEString() 207 *buffer++=((uint16_t) srcLen); in byteArrayToRLEString() 208 for (; i<srcLen; ++i) { in byteArrayToRLEString() 241 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* … in rleStringToUCharArray() argument 250 if(srcLen == -1){ in rleStringToUCharArray() [all …]
|
D | prscmnts.h | 37 getNote(const UChar* source, int32_t srcLen, 41 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status); 44 getDescription( const UChar* source, int32_t srcLen, 48 getTranslate( const UChar* source, int32_t srcLen, 53 getAt(const UChar* source, int32_t srcLen, 60 getCount(const UChar* source, int32_t srcLen,
|
/third_party/icu/icu4c/source/test/perf/ustrperf/ |
D | stringperf.h | 63 typedef void (*ICUStringPerfFn)(const UChar* src,int32_t srcLen, UnicodeString s0); 64 typedef void (*StdStringPerfFn)(const wchar_t* src,int32_t srcLen, stlstring s0); 391 inline void ctor(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor() argument 396 inline void ctor1(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor1() argument 401 inline void ctor2(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor2() argument 406 inline void ctor3(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor3() argument 408 UnicodeString d(src,srcLen); in ctor3() 411 inline UnicodeString icu_assign_helper(const UChar* src,int32_t srcLen) in icu_assign_helper() argument 413 if (srcLen==-1) { return src;} in icu_assign_helper() 414 else { return UnicodeString(src, srcLen);} in icu_assign_helper() [all …]
|
/third_party/icu/icu4c/source/test/perf/convperf/ |
D | convperf.h | 32 int32_t srcLen; variable 40 srcLen = sourceLen; in ICUToUnicodePerfFunction() 48 source, srcLen, &status); in ICUToUnicodePerfFunction() 61 const char* sourceLimit = src + srcLen; in call() 66 return srcLen; in getOperationsPerIteration() 77 int32_t srcLen; variable 86 srcLen = sourceLen; in ICUFromUnicodePerfFunction() 94 source, srcLen, &status); in ICUFromUnicodePerfFunction() 107 const UChar* sourceLimit = src + srcLen; in call() 112 return srcLen; in getOperationsPerIteration() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/string/ |
D | strlen.c | 30 int srcLen = sizeof(src) / sizeof(src[0]) - 1; in strlen_0100() local 32 EXPECT_EQ("strlen_0100", ret, srcLen); in strlen_0100() 43 int srcLen = sizeof(src) / sizeof(src[0]) - 1; in strlen_0200() local 45 EXPECT_EQ("strlen_0200", ret, srcLen); in strlen_0200() 56 int srcLen = INIT_LEN; in strlen_0300() local 58 EXPECT_EQ("strlen_0300", ret, srcLen); in strlen_0300()
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | spreptst.c | 295 unescapeData(const char* src, int32_t srcLen, in unescapeData() argument 298 (void)srcLen; // suppress compiler warnings about unused variable in unescapeData() 446 int32_t srcLen; in Test_nfs4_mixed_prep() local 453 …srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZ… in Test_nfs4_mixed_prep() 458 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); in Test_nfs4_mixed_prep() 462 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status); in Test_nfs4_mixed_prep() 479 … int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); in Test_nfs4_mixed_prep() local 481 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status); in Test_nfs4_mixed_prep() 506 … int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); in Test_nfs4_cs_prep() local 509 …int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); in Test_nfs4_cs_prep() [all …]
|
/third_party/lz4/tests/ |
D | decompress-partial.c | 31 int srcLen = (int)strlen(source); in main() local 37 cmpSize = LZ4_compress_default(source, cmpBuffer, srcLen, BUFFER_SIZE); in main() 40 int result = LZ4_decompress_safe_partial(cmpBuffer, outBuffer, i, srcLen, BUFFER_SIZE); in main() 41 if ((result < 0) || (result != srcLen) || memcmp(source, outBuffer, srcLen)) { in main()
|
/third_party/bounds_checking_function/src/ |
D | strncat_s.c | 24 size_t srcLen; in SecDoCatLimit() local 30 SECUREC_CALC_STR_LEN(strSrc, count, &srcLen); in SecDoCatLimit() 32 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimit() 41 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimit() 50 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen); /* No terminator */ in SecDoCatLimit() 51 *(strDest + destLen + srcLen) = '\0'; in SecDoCatLimit()
|
D | wcsncat_s.c | 25 size_t srcLen; in SecDoCatLimitW() local 27 SECUREC_CALC_WSTR_LEN(strSrc, count, &srcLen); in SecDoCatLimitW() 29 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimitW() 38 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimitW() 47 … SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen * sizeof(wchar_t)); /* no terminator */ in SecDoCatLimitW() 48 *(strDest + destLen + srcLen) = L'\0'; in SecDoCatLimitW()
|
D | strcat_s.c | 24 size_t srcLen; in SecDoCat() local 29 SECUREC_CALC_STR_LEN_OPT(strSrc, maxSrcLen, &srcLen); in SecDoCat() 31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCat() 40 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCat() 49 …SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen + 1); /* Single character length includ… in SecDoCat()
|
/third_party/mindspore/third_party/securec/src/ |
D | wcsncat_s.c | 27 size_t srcLen; in SecDoWcsncat() local 31 SECUREC_CALC_WSTR_LEN(strSrc, count, &srcLen); in SecDoWcsncat() 33 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoWcsncat() 42 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoWcsncat() 51 SecDoMemcpy(strDest + destLen, strSrc, srcLen * sizeof(wchar_t)); /* no terminator */ in SecDoWcsncat() 52 *(strDest + destLen + srcLen) = L'\0'; in SecDoWcsncat()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/bidi/ |
D | TestStreaming.java | 81 int srcLen, processedLen, chunk, len, nPortions, offset; in testStreaming() local 97 srcLen = src.length(); in testStreaming() 107 for (j = 0; j < MAXPORTIONS && srcLen > 0; j++) { in testStreaming() 108 len = chunk < srcLen ? chunk : srcLen; in testStreaming() 109 offset = src.length() - srcLen; in testStreaming() 125 srcLen -= processedLen; in testStreaming()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/ |
D | TestStreaming.java | 78 int srcLen, processedLen, chunk, len, nPortions, offset; in testStreaming() local 94 srcLen = src.length(); in testStreaming() 104 for (j = 0; j < MAXPORTIONS && srcLen > 0; j++) { in testStreaming() 105 len = chunk < srcLen ? chunk : srcLen; in testStreaming() 106 offset = src.length() - srcLen; in testStreaming() 122 srcLen -= processedLen; in testStreaming()
|
/third_party/icu/icu4c/source/test/perf/strsrchperf/ |
D | strsrchperf.h | 19 typedef void (*StrSrchFn)(UStringSearch* srch, const UChar* src,int32_t srcLen, const UChar* pttrn,… 25 int32_t srcLen; variable 32 (*fn)(srch, src, srcLen, pttrn, pttrnLen, status); in call() 36 return (long) srcLen; in getOperationsPerIteration() 42 srcLen = sourceLen; in StringSearchPerfFunction() 52 int32_t srcLen; variable
|