Home
last modified time | relevance | path

Searched refs:uprv_strcmp (Results 1 – 25 of 107) sorted by relevance

12345

/external/icu/icu4c/source/common/
Dputil.cpp701 || uprv_strcmp(id, "PST8PDT") == 0 in isValidOlsonID()
702 || uprv_strcmp(id, "MST7MDT") == 0 in isValidOlsonID()
703 || uprv_strcmp(id, "CST6CDT") == 0 in isValidOlsonID()
704 || uprv_strcmp(id, "EST5EDT") == 0); in isValidOlsonID()
936 if (uprv_strcmp(dirName, SKIP1) != 0 && uprv_strcmp(dirName, SKIP2) != 0) { in searchForTZFile()
957 … } else if (uprv_strcmp(TZFILE_SKIP, dirName) != 0 && uprv_strcmp(TZFILE_SKIP2, dirName) != 0) { in searchForTZFile()
1000 && uprv_strcmp(tzid, TZ_ENV_CHECK) != 0 in uprv_tzname()
1381 || (uprv_strcmp("C", posixID) == 0) in uprv_getPOSIXIDForCategory()
1382 || (uprv_strcmp("POSIX", posixID) == 0)) in uprv_getPOSIXIDForCategory()
1395 || (uprv_strcmp("C", posixID) == 0) in uprv_getPOSIXIDForCategory()
[all …]
Duscript.c66 if(0 == uprv_strcmp(lang, "ja")) { in getCodesFromLocale()
69 if(0 == uprv_strcmp(lang, "ko")) { in getCodesFromLocale()
76 if(0 == uprv_strcmp(lang, "zh") && 0 == uprv_strcmp(script, "Hant")) { in getCodesFromLocale()
Dlocresdata.cpp97 if(uprv_strcmp(tableKey, "Countries")==0){ in uloc_getTableStringWithFallback()
99 }else if(uprv_strcmp(tableKey, "Languages")==0){ in uloc_getTableStringWithFallback()
132 if(uprv_strcmp(explicitFallbackName, locale)==0){ in uloc_getTableStringWithFallback()
Dloadednormalizer2impl.cpp141 if (uprv_strcmp(what, "nfkc") == 0) { in initSingletons()
143 } else if (uprv_strcmp(what, "nfkc_cf") == 0) { in initSingletons()
217 if(0==uprv_strcmp(name, "nfc")) { in getInstance()
219 } else if(0==uprv_strcmp(name, "nfkc")) { in getInstance()
221 } else if(0==uprv_strcmp(name, "nfkc_cf")) { in getInstance()
Dbrkiter.cpp412 …CCESS(kvStatus) && kLen > 0 && (uprv_strcmp(lbKeyValue,"strict")==0 || uprv_strcmp(lbKeyValue,"nor… in makeInstance()
425 if (U_SUCCESS(kvStatus) && kLen > 0 && uprv_strcmp(ssKeyValue,"standard")==0) { in makeInstance()
Duresbund.cpp128 …if(uprv_strcmp(resB->fName, uloc_getDefault())==0 || uprv_strcmp(resB->fName, kRootLocaleName)==0)… in getFallbackData()
480 *isRoot = (UBool)(uprv_strcmp(name, kRootLocaleName) == 0); in findFirstExisting()
522 if (uprv_strcmp(name, kRootLocaleName) == 0) { in loadParentsExceptRoot()
699 } else if(!isRoot && uprv_strcmp(t1->fName, kRootLocaleName) != 0 && in entryOpen()
756 if(r != NULL && uprv_strcmp(localeID, kRootLocaleName) != 0 && // not root in entryOpenDirect()
761 if(!chopLocale(name) || uprv_strcmp(name, kRootLocaleName) == 0 || in entryOpenDirect()
763 if(uprv_strcmp(t1->fName, kRootLocaleName) != 0 && t1->fParent == NULL) { in entryOpenDirect()
979 if(uprv_strcmp(path, "LOCALE") == 0) { in init_resb_result()
987 if(uprv_strcmp(path, "ICUDATA") == 0) { /* want ICU data */ in init_resb_result()
1864 …if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocal… in ures_getByKeyWithFallback()
[all …]
Dudata.cpp585 … !uprv_strcmp(pathBuffer.data() + pathLen - packageStub.length(), packageStub.data())) { in next()
1082 return ((uprv_strcmp(type, "res") == 0) && in isTimeZoneFile()
1083 (uprv_strcmp(name, "zoneinfo64") == 0 || in isTimeZoneFile()
1084 uprv_strcmp(name, "timezoneTypes") == 0 || in isTimeZoneFile()
1085 uprv_strcmp(name, "windowsZones") == 0 || in isTimeZoneFile()
1086 uprv_strcmp(name, "metaZones") == 0)); in isTimeZoneFile()
Dpluralmap.cpp19 if (uprv_strcmp(pluralForm, gPluralForms[i]) == 0) { in toCategory()
/external/icu/icu4c/source/i18n/
Dstandardplural.cpp35 if (uprv_strcmp(keyword, "ew") == 0) { in indexOrNegativeFromString()
40 if (uprv_strcmp(keyword, "any") == 0) { in indexOrNegativeFromString()
45 if (uprv_strcmp(keyword, "ther") == 0) { in indexOrNegativeFromString()
47 } else if (uprv_strcmp(keyword, "ne") == 0) { in indexOrNegativeFromString()
52 if (uprv_strcmp(keyword, "wo") == 0) { in indexOrNegativeFromString()
57 if (uprv_strcmp(keyword, "ero") == 0) { in indexOrNegativeFromString()
Ducol_res.cpp148 if(*name == 0 || uprv_strcmp(name, "root") == 0) { in loadTailoring()
175 if(uprv_strcmp(locale.getName(), baseName) != 0) { in CollationLoader()
288 if(uprv_strcmp(type, "search") == 0) { in loadFromBundle()
291 if(uprv_strcmp(type, "standard") == 0) { in loadFromBundle()
297 if(uprv_strcmp(type, defaultType) == 0) { in loadFromBundle()
300 if(uprv_strcmp(type, "search") == 0) { in loadFromBundle()
303 if(uprv_strcmp(type, "standard") == 0) { in loadFromBundle()
347 UBool actualAndValidLocalesAreDifferent = uprv_strcmp(actualLocale, vLocale) != 0; in loadFromCollations()
352 if(uprv_strcmp(type, defaultType) != 0) { in loadFromCollations()
358 if((*actualLocale == 0 || uprv_strcmp(actualLocale, "root") == 0) && in loadFromCollations()
[all …]
Dnumsys.cpp118 if ( !uprv_strcmp(buffer,gDefault) || !uprv_strcmp(buffer,gNative) || in createInstance()
119 !uprv_strcmp(buffer,gTraditional) || !uprv_strcmp(buffer,gFinance)) { in createInstance()
142 if (!uprv_strcmp(buffer,gNative) || !uprv_strcmp(buffer,gFinance)) { in createInstance()
144 } else if (!uprv_strcmp(buffer,gTraditional)) { in createInstance()
Ddtitvinf.cpp280 if ( uprv_strcmp(skeleton, gFallbackPatternTag) == 0 ) { in initializeData()
311 if ( !uprv_strcmp(key, "y") ) { in initializeData()
313 } else if ( !uprv_strcmp(key, "M") ) { in initializeData()
315 } else if ( !uprv_strcmp(key, "d") ) { in initializeData()
317 } else if ( !uprv_strcmp(key, "a") ) { in initializeData()
319 } else if ( !uprv_strcmp(key, "h") || !uprv_strcmp(key, "H") ) { in initializeData()
321 } else if ( !uprv_strcmp(key, "m") ) { in initializeData()
362 } while ( parentLocale[0] != 0 && uprv_strcmp(parentLocale,"root")!=0 ); in initializeData()
Dtmutfmt.cpp390 if ( uprv_strcmp(timeUnitName, gTimeUnitYear) == 0 ) { in readFromCurrentLocale()
392 } else if ( uprv_strcmp(timeUnitName, gTimeUnitMonth) == 0 ) { in readFromCurrentLocale()
394 } else if ( uprv_strcmp(timeUnitName, gTimeUnitDay) == 0 ) { in readFromCurrentLocale()
396 } else if ( uprv_strcmp(timeUnitName, gTimeUnitHour) == 0 ) { in readFromCurrentLocale()
398 } else if ( uprv_strcmp(timeUnitName, gTimeUnitMinute) == 0 ) { in readFromCurrentLocale()
400 } else if ( uprv_strcmp(timeUnitName, gTimeUnitSecond) == 0 ) { in readFromCurrentLocale()
402 } else if ( uprv_strcmp(timeUnitName, gTimeUnitWeek) == 0 ) { in readFromCurrentLocale()
603 if ( locNameLen == 0 && uprv_strcmp(key, gShortUnitsTag) == 0) { in searchInLocaleChain()
622 if ( uprv_strcmp(searchPluralCount, gPluralCountOther) == 0 ) { in searchInLocaleChain()
Dmeasfmt.cpp180 return (uprv_strcmp(unit.getType(), "currency") == 0); in isCurrency()
240 if (uprv_strcmp(key, "dnam") == 0) { in put()
242 } else if (uprv_strcmp(key, "per") == 0) { in put()
285 if (U_SUCCESS(errorCode) && uprv_strcmp(key, "per") == 0) { in put()
304 if (uprv_strcmp(key, "currency") == 0) { in getOrCreateTableSink()
306 } else if (uprv_strcmp(key, "compound") == 0) { in getOrCreateTableSink()
360 } else if (uprv_strcmp(key, "Short") == 0) { in widthFromKey()
362 } else if (uprv_strcmp(key, "Narrow") == 0) { in widthFromKey()
511 return uprv_strcmp(mu.getType(), "duration") == 0 && in isTimeUnit()
512 uprv_strcmp(mu.getSubtype(), tu) == 0; in isTimeUnit()
[all …]
Dgender.cpp162 if (uprv_strcmp(type_str, gNeutralStr) == 0) { in loadInstance()
165 if (uprv_strcmp(type_str, gMixedNeutralStr) == 0) { in loadInstance()
168 if (uprv_strcmp(type_str, gMailTaintsStr) == 0) { in loadInstance()
/external/icu/icu4c/source/test/cintltst/
Dspreptst.c721 if (uprv_strcmp(profileName, "RFC4013_SASLPREP") == 0) { in getTypeFromProfileName()
723 } else if (uprv_strcmp(profileName, "RFC4011_MIB") == 0) { in getTypeFromProfileName()
725 } else if (uprv_strcmp(profileName, "RFC4505_TRACE") == 0) { in getTypeFromProfileName()
727 } else if (uprv_strcmp(profileName, "RFC4518_LDAP") == 0) { in getTypeFromProfileName()
729 } else if (uprv_strcmp(profileName, "RFC4518_LDAP_CI") == 0) { in getTypeFromProfileName()
731 } else if (uprv_strcmp(profileName, "RFC3920_RESOURCEPREP") == 0) { in getTypeFromProfileName()
733 } else if (uprv_strcmp(profileName, "RFC3920_NODEPREP") == 0) { in getTypeFromProfileName()
735 } else if (uprv_strcmp(profileName, "RFC3722_ISCSI") == 0) { in getTypeFromProfileName()
737 } else if (uprv_strcmp(profileName, "RFC3530_NFS4_CS_PREP") == 0) { in getTypeFromProfileName()
739 } else if (uprv_strcmp(profileName, "RFC3530_NFS4_CS_PREP_CI") == 0) { in getTypeFromProfileName()
[all …]
Dcstrtest.c74 if(uprv_strcmp(src, "hello there") != 0){ in TestAPI()
78 if(uprv_strcmp(src, "HELLO THERE") != 0){ in TestAPI()
91 if(uprv_strcmp(src, "34556") != 0 || i != 5){ in TestAPI()
99 if(uprv_strcmp(src, "9223372036854775807") != 0 || i != 19){ in TestAPI()
131 if(uprv_strcmp(temp, "strdup") !=0 ){ in TestAPI()
328 if(diff1>0 || (diff1==0 && 0!=uprv_strcmp(invStrings[i-1][0], invStrings[i][0]))) { in TestCompareInvEbcdicAsAscii()
Dcloctst.c342 if (uprv_strcmp(uloc_getDefault(), "qq_BLA") != 0) { in TestNullDefault()
346 if (uprv_strcmp(uloc_getDefault(), original) != 0) { in TestNullDefault()
1772 } else if (uprv_strcmp(testCases[i].expectedLocaleID, buffer) != 0) { in TestKeywordVariants()
1789 } else if (uprv_strcmp(testCases[i].expectedLocaleIDNoKeywords, buffer) != 0) { in TestKeywordVariants()
1806 } else if (uprv_strcmp(testCases[i].expectedCanonicalID, buffer) != 0) { in TestKeywordVariants()
1842 if(uprv_strcmp(testCases[i].expectedValue, buffer) != 0) { in TestKeywordVariantParsing()
2155 if(uprv_strcmp(expected, buffer) != 0) { in TestCanonicalization()
2461 if (uprv_strcmp(prefix, "root") == 0) { in _loccmp()
2462 return (uprv_strcmp(string, "root") == 0) ? 0 : 1; in _loccmp()
2795 if((outResult>0)&&uprv_strcmp(tmp, tests[i].expect)) { in TestAcceptLanguage()
[all …]
Dstdnmtst.c49 } else if (expected && (name == tag || uprv_strcmp(expected, tag))) { in dotestname()
130 else if (expected && (name == tag || uprv_strcmp(expected, tag) != 0)) { in dotestconv()
194 if (uprv_strcmp(enumName, testName) != 0 || U_FAILURE(err) in doTestNames()
/external/icu/icu4c/source/tools/genrb/
Dwrtxml.cpp831 … if(uprv_strcmp(ext, ".jpg")==0 || uprv_strcmp(ext, ".jpeg")==0 || uprv_strcmp(ext, ".gif")==0 ){ in bin_write_xml()
833 } else if(uprv_strcmp(ext, ".wav")==0 || uprv_strcmp(ext, ".au")==0 ){ in bin_write_xml()
835 …} else if(uprv_strcmp(ext, ".avi")==0 || uprv_strcmp(ext, ".mpg")==0 || uprv_strcmp(ext, ".mpeg")=… in bin_write_xml()
837 } else if(uprv_strcmp(ext, ".txt")==0 || uprv_strcmp(ext, ".text")==0){ in bin_write_xml()
1047 if(uprv_strcmp(originalFileName, srBundle->fLocale) != 0) { in bundle_write_xml()
1148 if(language != NULL && uprv_strcmp(lang, srBundle->fLocale)!=0){ in bundle_write_xml()
/external/icu/icu4c/source/tools/toolutil/
Ducmstate.c263 if(uprv_strcmp(*pKey, "uconv_class")==0) { in ucm_parseHeaderLine()
264 if(uprv_strcmp(*pValue, "DBCS")==0) { in ucm_parseHeaderLine()
266 } else if(uprv_strcmp(*pValue, "SBCS")==0) { in ucm_parseHeaderLine()
268 } else if(uprv_strcmp(*pValue, "MBCS")==0) { in ucm_parseHeaderLine()
270 } else if(uprv_strcmp(*pValue, "EBCDIC_STATEFUL")==0) { in ucm_parseHeaderLine()
277 } else if(uprv_strcmp(*pKey, "mb_cur_max")==0) { in ucm_parseHeaderLine()
287 } else if(uprv_strcmp(*pKey, "mb_cur_min")==0) { in ucm_parseHeaderLine()
296 } else if(uprv_strcmp(*pKey, "icu:state")==0) { in ucm_parseHeaderLine()
317 } else if(uprv_strcmp(*pKey, "icu:base")==0) { in ucm_parseHeaderLine()
Dfiletools.cpp58 … if (uprv_strcmp(dirEntry->d_name, SKIP1) != 0 && uprv_strcmp(dirEntry->d_name, SKIP2) != 0) { in isFileModTimeLater()
/external/icu/icu4c/source/test/intltest/
Dtzfmttst.cpp60 if (uprv_strcmp(list[i], str) == 0) { in contains()
220 if (uprv_strcmp(PATTERNS[patidx], "V") == 0) { in TestTimeZoneRoundTrip()
243 } else if (uprv_strcmp(PATTERNS[patidx], "VV") == 0) { in TestTimeZoneRoundTrip()
251 …} else if (uprv_strcmp(PATTERNS[patidx], "VVV") == 0 || uprv_strcmp(PATTERNS[patidx], "VVVV") == 0… in TestTimeZoneRoundTrip()
359 if (EXCLUSIONS[i].loc == NULL || uprv_strcmp(loc, EXCLUSIONS[i].loc) == 0) { in isSpecialTimeRoundTripCase()
361 … if (EXCLUSIONS[i].pattern == NULL || uprv_strcmp(pattern, EXCLUSIONS[i].pattern) == 0) { in isSpecialTimeRoundTripCase()
477 if (uprv_strcmp(PATTERNS[patidx], "V") == 0) { in run()
485 } else if (uprv_strcmp(PATTERNS[patidx], "VVV") == 0) { in run()
495 if (*tzid == "Pacific/Apia" && uprv_strcmp(PATTERNS[patidx], "vvvv") == 0 in run()
623 UBool bTestAll = (testAllProp && uprv_strcmp(testAllProp, "true") == 0); in TestTimeRoundTrip()
Dloctest.cpp480 if (uprv_strcmp(Locale().getLanguage(), "tl") != 0) { in TestDisplayNames()
870 if (uprv_strcmp(test[j],spotCheck1[i])== 0) in TestGetLangsAndCountries()
872 if (j == testCount || (uprv_strcmp(test[j],spotCheck1[i])!=0)) in TestGetLangsAndCountries()
1678 if(uprv_strcmp(testCases[i].expectedLocaleID, result) != 0) { in TestKeywordVariants()
1711 if(uprv_strcmp(testCases[i].expectedValue, buffer) != 0) { in TestKeywordVariantParsing()
1746 if(uprv_strcmp(testCases[i].value, buffer) != 0) { in TestSetKeywordValue()
1801 if (uprv_strcmp(prefix, "root") == 0) { in _loccmp()
1802 return (uprv_strcmp(string, "root") == 0) ? 0 : 1; in _loccmp()
1829 if (((0 == uprv_strcmp(expReqValid, "gt") && reqValid > 0) || in _checklocs()
1830 (0 == uprv_strcmp(expReqValid, "ge") && reqValid >= 0) || in _checklocs()
[all …]
/external/icu/icu4c/source/tools/makeconv/
Dmakeconv.cpp446 if(uprv_strcmp(line, "CHARMAP")==0) { in readHeader()
451 if(uprv_strcmp(key, "code_set_name")==0) { in readHeader()
456 } else if(uprv_strcmp(key, "subchar")==0) { in readHeader()
470 } else if(uprv_strcmp(key, "subchar1")==0) { in readHeader()
605 if(0==uprv_strcmp(line, "CHARMAP")) { in readFile()

12345