HomeSort by relevance Sort by last modified time
    Searched refs:LENGTHOF (Results 1 - 25 of 80) sorted by null

1 2 3 4

  /external/icu4c/test/cintltst/
sorttest.c 24 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
38 uprv_sortArray(small, LENGTHOF(small), sizeof(small[0]), uprv_uint16Comparator, NULL, TRUE, &errorCode);
43 for(i=1; i<LENGTHOF(small); ++i) {
51 for(i=0; i<LENGTHOF(medium); ++i) {
56 uprv_sortArray(medium, LENGTHOF(medium), sizeof(medium[0]), uprv_int32Comparator, NULL, TRUE, &errorCode);
61 for(i=1; i<LENGTHOF(medium); ++i) {
70 uprv_sortArray(large, LENGTHOF(large), sizeof(large[0]), uprv_uint32Comparator, NULL, FALSE, &errorCode);
75 for(i=1; i<LENGTHOF(large); ++i) {
custrtrn.c 30 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
152 u_strToUTF32(u32Target, 0, &u32DestLen, src16, LENGTHOF(src16),&err);
153 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != LENGTHOF(src32)) {
156 (long)u32DestLen, (long)LENGTHOF(src32), u_errorName(err));
161 u_strToUTF32(u32Target, LENGTHOF(src32)+1, &u32DestLen, src16, LENGTHOF(src16),&err);
162 if(err != U_ZERO_ERROR || u32DestLen != LENGTHOF(src32)) {
165 (long)u32DestLen, (long)LENGTHOF(src32), u_errorName(err));
174 for(i=0; i< LENGTHOF(src32); i++){
186 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != LENGTHOF(src32)-1)
    [all...]
cbiditst.c 27 #define LENGTHOF(array) (sizeof(array)/sizeof((array)[0]))
712 for(i=0;i<LENGTHOF(logicalOrder);i++){
747 for(i=0;i<LENGTHOF(logicalOrder);i++){
781 for(i=0;i<LENGTHOF(logicalOrder);i++){
812 for(i=0;i<LENGTHOF(logicalOrder);i++){
846 for(i=0;i<LENGTHOF(logicalOrder);i++)
    [all...]
bocu1tst.c 37 #define LENGTHOF(array) (sizeof(array)/sizeof((array)[0]))
953 { feff, LENGTHOF(feff) },
954 { ascii, LENGTHOF(ascii) },
955 { crlf, LENGTHOF(crlf) },
956 { nul, LENGTHOF(nul) },
957 { latin, LENGTHOF(latin) },
958 { devanagari, LENGTHOF(devanagari) },
959 { hiragana, LENGTHOF(hiragana) },
960 { unihan, LENGTHOF(unihan) },
961 { hangul, LENGTHOF(hangul) }
    [all...]
cucdapi.c 13 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof(array[0]))
244 for(i=0; i<LENGTHOF(codepoints); ++i){
343 if(LENGTHOF(expectedLong)!=(USCRIPT_CODE_LIMIT-USCRIPT_BALINESE)) {
357 for(i=0; i<LENGTHOF(expectedLong); i++){
361 len = uscript_getCode(expectedShort[i], fillIn, LENGTHOF(fillIn), &status);
438 length=uscript_getScriptExtensions(0x0640, scripts, LENGTHOF(scripts), &errorCode);
444 length=uscript_getScriptExtensions(0x0640, NULL, LENGTHOF(scripts), &errorCode);
475 length=uscript_getScriptExtensions(0x0640, scripts, LENGTHOF(scripts), &errorCode);
480 length=uscript_getScriptExtensions(0xfdf2, scripts, LENGTHOF(scripts), &errorCode);
485 length=uscript_getScriptExtensions(0xff65, scripts, LENGTHOF(scripts), &errorCode)
    [all...]
cstrtest.c 23 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
252 length=ucnv_toUChars(cnv, us, LENGTHOF(us), invariantChars, -1, &errorCode);
255 } else if(length!=LENGTHOF(invariantUChars)-1 || u_strcmp(us, invariantUChars)!=0) {
283 for(i=0; i<LENGTHOF(nonASCIIUChars); ++i) {
326 for(i=1; i<LENGTHOF(invStrings); ++i) {
idnatest.c 28 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
726 int32_t len1 = LENGTHOF(ul1)-1/*remove the null termination*/;
727 int32_t destLen = LENGTHOF(dest);
738 destLen = LENGTHOF(dest);
745 destLen = LENGTHOF(dest);
753 destLen = LENGTHOF(dest);
761 destLen = LENGTHOF(dest);
768 destLen = LENGTHOF(dest);
779 int32_t destLen = LENGTHOF(dest);
791 destLen = LENGTHOF(dest)
    [all...]
trie2test.c 26 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
    [all...]
cstrcase.c 29 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
    [all...]
cnormtst.c 36 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof ((array)[0]))
188 length2=unorm_normalize(source, u_strlen(source), mode, 0, result, LENGTHOF(result), &status);
195 length2=unorm_normalize(source, -1, mode, 0, result, LENGTHOF(result), &status);
207 TestNormCases(UNORM_NFD, canonTests, LENGTHOF(canonTests));
211 TestNormCases(UNORM_NFKD, compatTests, LENGTHOF(compatTests));
215 TestNormCases(UNORM_NFC, canonTests, LENGTHOF(canonTests));
219 TestNormCases(UNORM_NFKC, compatTests, LENGTHOF(compatTests));
223 TestNormCases(UNORM_FCD, fcdTests, LENGTHOF(fcdTests));
473 for (count = 0; count < LENGTHOF(canonTests); count ++)
495 for (count = 0; count < LENGTHOF(compatTests); count ++
    [all...]
custrtst.c 25 #define LENGTHOF(array) (sizeof(array)/sizeof((array)[0]))
726 first!=u_memchr(s, nul, LENGTHOF(s)) ||
727 first!=u_memchr32(s, nul, LENGTHOF(s)) ||
730 first!=u_memrchr(s, nul, LENGTHOF(s)) ||
731 first!=u_memrchr32(s, nul, LENGTHOF(s))
741 s!=u_strFindFirst(s, LENGTHOF(s), &nul, -1) ||
742 s!=u_strFindFirst(s, LENGTHOF(s), &nul, 0) ||
746 s!=u_strFindLast(s, LENGTHOF(s), &nul, -1) ||
747 s!=u_strFindLast(s, LENGTHOF(s), &nul, 0)
    [all...]
cucdtst.c 38 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
557 testSampleCharProps(u_isspace, "u_isspace", sampleSpaces, LENGTHOF(sampleSpaces), TRUE);
558 testSampleCharProps(u_isspace, "u_isspace", sampleNonSpaces, LENGTHOF(sampleNonSpaces), FALSE);
561 sampleSpaces, LENGTHOF(sampleSpaces), TRUE);
563 sampleNonSpaces, LENGTHOF(sampleNonSpaces), FALSE);
566 sampleWhiteSpaces, LENGTHOF(sampleWhiteSpaces), TRUE);
568 sampleNonWhiteSpaces, LENGTHOF(sampleNonWhiteSpaces), FALSE);
571 sampleDefined, LENGTHOF(sampleDefined), TRUE);
573 sampleUndefined, LENGTHOF(sampleUndefined), FALSE);
575 testSampleCharProps(u_isbase, "u_isbase", sampleBase, LENGTHOF(sampleBase), TRUE)
    [all...]
ucnvseltst.c 27 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
396 for(testCaseIdx = 0; testCaseIdx < LENGTHOF(getEncodingsFns); testCaseIdx++)
414 excluded_set_id = testCaseIdx % LENGTHOF(excluded_sets);
472 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status);
  /external/icu4c/test/perf/convperf/
convperf.cpp 142 ICUFromUnicodePerfFunction* pf = new ICUFromUnicodePerfFunction("utf-8",utf8_uniSource, LENGTHOF(utf8_uniSource), status);
151 UPerfFunction* pf = new ICUToUnicodePerfFunction("utf-8",(char*)utf8_encSource, LENGTHOF(utf8_encSource), status);
161 UPerfFunction* pf = new WinIMultiLanguage2FromUnicodePerfFunction("utf-8",utf8_uniSource, LENGTHOF(utf8_uniSource), status);
170 UPerfFunction* pf = new WinIMultiLanguage2ToUnicodePerfFunction("utf-8",(char*)utf8_encSource, LENGTHOF(utf8_encSource), status);
179 UPerfFunction* pf = new WinANSIFromUnicodePerfFunction("utf-8",utf8_uniSource, LENGTHOF(utf8_uniSource), status);
188 UPerfFunction* pf = new WinANSIToUnicodePerfFunction("utf-8",(char*)utf8_encSource, LENGTHOF(utf8_encSource), status);
199 ICUFromUnicodePerfFunction* pf = new ICUFromUnicodePerfFunction("iso-8859-1",latin1_uniSource, LENGTHOF(latin1_uniSource), status);
208 UPerfFunction* pf = new ICUToUnicodePerfFunction("iso-8859-1",(char*)latin1_encSource, LENGTHOF(latin1_encSource), status);
218 UPerfFunction* pf = new WinIMultiLanguage2FromUnicodePerfFunction("iso-8859-1",latin1_uniSource, LENGTHOF(latin1_uniSource), status);
227 UPerfFunction* pf = new WinIMultiLanguage2ToUnicodePerfFunction("iso-8859-1",(char*)latin1_encSource, LENGTHOF(latin1_encSource), status)
    [all...]
convperf.h 22 #define LENGTHOF(array) (sizeof(array)/sizeof((array)[0]))
162 dstLen = LENGTHOF(dest);
216 dstLen = LENGTHOF(dest);
311 dstLen = LENGTHOF(dst);
367 dstLen = LENGTHOF(dst);
407 dstLen = LENGTHOF(dst);
468 dstLen = LENGTHOF(dst);
  /external/icu4c/samples/ustring/
ustring.cpp 28 #define LENGTHOF(array) (sizeof(array)/sizeof((array)[0]))
110 printUString("iterate forward through: ", input, LENGTHOF(input));
111 for(i=0; i<LENGTHOF(input); /* U16_NEXT post-increments */) {
119 U16_NEXT(input, i, LENGTHOF(input), c);
127 U16_APPEND(input, i, LENGTHOF(input), 0x0062, isError);
129 printUString("iterate backward through: ", input, LENGTHOF(input));
130 for(i=LENGTHOF(input); i>0; /* U16_PREV pre-decrements */) {
217 for(i=j=0; j<LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */) {
223 U16_APPEND(buffer, j, LENGTHOF(buffer), c, isError);
228 for(i=j=0; j<LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */)
    [all...]
  /external/icu4c/test/intltest/
ucdtest.cpp 17 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof(array[0]))
41 for(int32_t i=0; i<LENGTHOF(ignorePropNames); ++i) {
147 static int32_t numErrors[LENGTHOF(derivedPropsIndex)]={ 0 };
167 i=getTokenIndex(derivedPropsNames, LENGTHOF(derivedPropsNames), fields[1][0]);
185 if(LENGTHOF(derivedProps)<LENGTHOF(derivedPropsNames)) {
187 LENGTHOF(derivedPropsNames));
190 if(LENGTHOF(derivedPropsIndex)!=LENGTHOF(derivedPropsNames)) {
191 errln("error in ucdtest.cpp: LENGTHOF(derivedPropsIndex)!=LENGTHOF(derivedPropsNames)\n")
    [all...]
uts46test.cpp 29 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
149 TestCheckedArrayByteSink sink(buffer, LENGTHOF(buffer));
216 prettify(result).extract(0, 0x7fffffff, buffer, LENGTHOF(buffer));
230 prettify(result).extract(0, 0x7fffffff, buffer, LENGTHOF(buffer));
560 for(i=0; i<LENGTHOF(testCases); ++i) {
589 prettify(uN).extract(0, 0x7fffffff, buffer, LENGTHOF(buffer));
607 prettify(uT).extract(0, 0x7fffffff, buffer, LENGTHOF(buffer));
620 prettify(aN).extract(0, 0x7fffffff, buffer, LENGTHOF(buffer));
626 prettify(aT).extract(0, 0x7fffffff, buffer, LENGTHOF(buffer));
633 prettify(aN).extract(0, 0x7fffffff, buffer, LENGTHOF(buffer))
    [all...]
citrtest.cpp 141 #define LENGTHOF(array) ((int32_t)(sizeof(array)/sizeof((array)[0])))
    [all...]
convtest.cpp 43 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
310 if(length<0 || length>=LENGTHOF(cc.subString)) {
473 s.replace(100, 0x7fffffff, ellipsis, LENGTHOF(ellipsis));
485 s.replace(100, 0x7fffffff, ellipsis, LENGTHOF(ellipsis));
583 for(i=0; i<LENGTHOF(cnvNames); ++i) {
653 out.replace(100, 0x7fffffff, ellipsis, LENGTHOF(ellipsis));
665 out.replace(100, 0x7fffffff, ellipsis, LENGTHOF(ellipsis));
    [all...]
tstnorm.cpp 21 #define LENGTHOF(array) ((int32_t)(sizeof(array)/sizeof((array)[0])))
22 #define ARRAY_LENGTH(array) LENGTHOF(array)
749 TestPreviousNext(src, LENGTHOF(src),
750 expect, LENGTHOF(expect),
755 TestPreviousNext(src_j2911, LENGTHOF(src_j2911),
756 expect_j2911, LENGTHOF(expect_j2911),
762 TestPreviousNext(src, LENGTHOF(src),
763 expect, LENGTHOF(expect),
768 TestPreviousNext(src_j2911, LENGTHOF(src_j2911),
769 expect_j2911, LENGTHOF(expect_j2911)
    [all...]
ustrtest.cpp 30 #define LENGTHOF(array) (int32_t)((sizeof(array)/sizeof((array)[0])))
200 UnicodeString s, t(buffer, -1, LENGTHOF(buffer));
202 if(s.setTo(buffer, -1, LENGTHOF(buffer)).length()!=u_strlen(buffer)) {
217 UnicodeString u(buffer, -1, LENGTHOF(buffer));
218 if(s.setTo(buffer, -1, LENGTHOF(buffer)).length()!=LENGTHOF(buffer)) {
221 if(u.length()!=LENGTHOF(buffer)) {
244 UnicodeString from16(FALSE, utf16, LENGTHOF(utf16));
    [all...]
  /external/icu4c/samples/numfmt/
main.cpp 19 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
156 for(i=0; i<LENGTHOF(currencyMap); ++i) {
161 if(i==LENGTHOF(currencyMap)) {
238 for(i=0; i<LENGTHOF(sampleLocaleIDs); ++i) {
252 for(j=0; j<LENGTHOF(sampleCurrencies); ++j) {
  /external/icu4c/tools/toolutil/
pkg_icu.cpp 20 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
41 for(i=0; i<LENGTHOF(listFileSuffixes); ++i) {
  /external/icu4c/extra/uconv/
uwmsg.c 29 #define LENGTHOF(array) (sizeof(array)/sizeof((array)[0]))
132 int32_t resultLength = LENGTHOF(result);
154 if((msgLen + resultLength) <= LENGTHOF(result)) {

Completed in 540 milliseconds

1 2 3 4