Home
last modified time | relevance | path

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

123456

/external/icu/icu4c/source/i18n/
Ddayperiodrules.cpp58 if (uprv_strcmp(key, "locales") == 0) { in put()
67 } else if (uprv_strcmp(key, "rules") == 0) { in put()
229 if (uprv_strcmp(type_str, "from") == 0) { in getCutoffTypeFromString()
231 } else if (uprv_strcmp(type_str, "before") == 0) { in getCutoffTypeFromString()
233 } else if (uprv_strcmp(type_str, "after") == 0) { in getCutoffTypeFromString()
235 } else if (uprv_strcmp(type_str, "at") == 0) { in getCutoffTypeFromString()
469 if (uprv_strcmp(type_str, "midnight") == 0) { in getDayPeriodFromString()
471 } else if (uprv_strcmp(type_str, "noon") == 0) { in getDayPeriodFromString()
473 } else if (uprv_strcmp(type_str, "morning1") == 0) { in getDayPeriodFromString()
475 } else if (uprv_strcmp(type_str, "afternoon1") == 0) { in getDayPeriodFromString()
[all …]
Dunits_data.cpp64 if (uprv_strcmp(source, "convertUnits") != 0) { in put()
80 if (uprv_strcmp(key, "target") == 0) { in put()
82 } else if (uprv_strcmp(key, "factor") == 0) { in put()
84 } else if (uprv_strcmp(key, "offset") == 0) { in put()
151 if (uprv_strcmp(key, "unitPreferenceData") != 0) { in put()
204 if (uprv_strcmp(key, "unit") == 0) { in put()
208 } else if (uprv_strcmp(key, "geq") == 0) { in put()
216 } else if (uprv_strcmp(key, "skeleton") == 0) { in put()
293 } else if (uprv_strcmp(desired.usage.data(), "default") != 0) { in getPreferenceMetadataIndex()
306 if (uprv_strcmp(desired.region.data(), "001") != 0) { in getPreferenceMetadataIndex()
[all …]
Dstandardplural.cpp37 if (uprv_strcmp(keyword, "ew") == 0) { in indexOrNegativeFromString()
42 if (uprv_strcmp(keyword, "any") == 0) { in indexOrNegativeFromString()
47 if (uprv_strcmp(keyword, "ther") == 0) { in indexOrNegativeFromString()
49 } else if (uprv_strcmp(keyword, "ne") == 0) { in indexOrNegativeFromString()
54 if (uprv_strcmp(keyword, "wo") == 0) { in indexOrNegativeFromString()
59 if (uprv_strcmp(keyword, "ero") == 0) { in indexOrNegativeFromString()
Ducol_res.cpp152 if(*name == 0 || uprv_strcmp(name, "root") == 0) { in loadTailoring()
179 if(uprv_strcmp(locale.getName(), baseName) != 0) { in CollationLoader()
292 if(uprv_strcmp(type, "search") == 0) { in loadFromBundle()
295 if(uprv_strcmp(type, "standard") == 0) { in loadFromBundle()
301 if(uprv_strcmp(type, defaultType) == 0) { in loadFromBundle()
304 if(uprv_strcmp(type, "search") == 0) { in loadFromBundle()
307 if(uprv_strcmp(type, "standard") == 0) { in loadFromBundle()
356 if(uprv_strcmp(type, defaultType) != 0) { in loadFromCollations()
362 if((*actualLocale == 0 || uprv_strcmp(actualLocale, "root") == 0) && in loadFromCollations()
363 uprv_strcmp(type, "standard") == 0) { in loadFromCollations()
[all …]
Dnumsys.cpp131 if ( !uprv_strcmp(buffer,gDefault) || !uprv_strcmp(buffer,gNative) || in createInstance()
132 !uprv_strcmp(buffer,gTraditional) || !uprv_strcmp(buffer,gFinance)) { in createInstance()
165 if (!uprv_strcmp(buffer,gNative) || !uprv_strcmp(buffer,gFinance)) { in createInstance()
167 } else if (!uprv_strcmp(buffer,gTraditional)) { in createInstance()
Dnumber_utils.h49 return uprv_strcmp("currency", unit.getType()) == 0; in unitIsCurrency()
57 return uprv_strcmp("percent", unit.getSubtype()) == 0; in unitIsPercent()
61 return uprv_strcmp("permille", unit.getSubtype()) == 0; in unitIsPermille()
Ddcfmtsym.cpp204 uprv_strcmp(validLocale, that.validLocale) == 0 && in operator ==()
205 uprv_strcmp(actualLocale, that.actualLocale) == 0; in operator ==()
239 if (gNumberElementKeys[i] != NULL && uprv_strcmp(key, gNumberElementKeys[i]) == 0) { in put()
293 if (uprv_strcmp(key, gBeforeCurrencyTag) == 0) { in put()
296 } else if (uprv_strcmp(key, gAfterCurrencyTag) == 0) { in put()
306 if (uprv_strcmp(key, gCurrencyMatchTag) == 0) { in put()
308 } else if (uprv_strcmp(key, gCurrencySudMatchTag) == 0) { in put()
310 } else if (uprv_strcmp(key, gCurrencyInsertBtnTag) == 0) { in put()
412 if (uprv_strcmp(nsName, gLatn) != 0) { in initialize()
Dnumber_longnames.cpp47 if (uprv_strcmp(pluralKeyword, "dnam") == 0) { in getIndex()
49 } else if (uprv_strcmp(pluralKeyword, "per") == 0) { in getIndex()
133 if (subtypeLen > 7 && uprv_strcmp(unit.getSubtype() + subtypeLen - 7, "-person") == 0) { in getMeasureData()
226 U_ASSERT(uprv_strcmp(unitRef.getType(), "") != 0 || in forMeasureUnit()
231 if (uprv_strcmp(perUnit.getType(), "none") != 0) { in forMeasureUnit()
234 if (uprv_strcmp(simplified.getType(), "") != 0) { in forMeasureUnit()
243 if (uprv_strcmp(unit.getType(), "") == 0) { in forMeasureUnit()
266 if (uprv_strcmp(unit.getType(), "") == 0 || uprv_strcmp(perUnit.getType(), "") == 0) { in forCompoundUnit()
Dlistformatter.cpp176 if (uprv_strcmp(lang, "es") == 0) { in createPatternHandler()
198 } else if (uprv_strcmp(lang, "he") == 0 || uprv_strcmp(lang, "iw") == 0) { in createPatternHandler()
455 if (uprv_strcmp(key, "2") == 0) { in put()
457 } else if (uprv_strcmp(key, "end") == 0) { in put()
459 } else if (uprv_strcmp(key, "middle") == 0) { in put()
461 } else if (uprv_strcmp(key, "start") == 0) { in put()
486 …if (U_FAILURE(errorCode) || sink.aliasedStyle[0] == 0 || uprv_strcmp(currentStyle, sink.aliasedSty… in loadListFormatInternal()
Dreldatefmt.cpp328 if (uprv_strcmp(key, "-2") == 0) { in keyToDirection()
331 if (uprv_strcmp(key, "-1") == 0) { in keyToDirection()
334 if (uprv_strcmp(key, "0") == 0) { in keyToDirection()
337 if (uprv_strcmp(key, "1") == 0) { in keyToDirection()
340 if (uprv_strcmp(key, "2") == 0) { in keyToDirection()
367 if (len >= 7 && uprv_strcmp(s + len - 7, "-narrow") == 0) { in styleFromString()
370 if (len >= 6 && uprv_strcmp(s + len - 6, "-short") == 0) { in styleFromString()
484 if (relUnitIndex == UDAT_REL_UNIT_SECOND && uprv_strcmp(key, "0") == 0 && in consumeTableRelative()
538 if (uprv_strcmp(key, "past") == 0) { in consumeTableRelativeTime()
540 } else if (uprv_strcmp(key, "future") == 0) { in consumeTableRelativeTime()
[all …]
Dtmutfmt.cpp383 if ( uprv_strcmp(timeUnitName, gTimeUnitYear) == 0 ) { in put()
385 } else if ( uprv_strcmp(timeUnitName, gTimeUnitMonth) == 0 ) { in put()
387 } else if ( uprv_strcmp(timeUnitName, gTimeUnitDay) == 0 ) { in put()
389 } else if ( uprv_strcmp(timeUnitName, gTimeUnitHour) == 0 ) { in put()
391 } else if ( uprv_strcmp(timeUnitName, gTimeUnitMinute) == 0 ) { in put()
393 } else if ( uprv_strcmp(timeUnitName, gTimeUnitSecond) == 0 ) { in put()
395 } else if ( uprv_strcmp(timeUnitName, gTimeUnitWeek) == 0 ) { in put()
604 if ( locNameLen == 0 && uprv_strcmp(key, gShortUnitsTag) == 0) { in searchInLocaleChain()
625 if ( uprv_strcmp(searchPluralCount, gPluralCountOther) == 0 ) { in searchInLocaleChain()
Dgender.cpp165 if (uprv_strcmp(type_str, gNeutralStr) == 0) { in loadInstance()
168 if (uprv_strcmp(type_str, gMixedNeutralStr) == 0) { in loadInstance()
171 if (uprv_strcmp(type_str, gMailTaintsStr) == 0) { in loadInstance()
/external/icu/icu4c/source/common/
Dputil.cpp744 || uprv_strcmp(id, "PST8PDT") == 0 in isValidOlsonID()
745 || uprv_strcmp(id, "MST7MDT") == 0 in isValidOlsonID()
746 || uprv_strcmp(id, "CST6CDT") == 0 in isValidOlsonID()
747 || uprv_strcmp(id, "EST5EDT") == 0); in isValidOlsonID()
993 if (uprv_strcmp(dirName, SKIP1) != 0 && uprv_strcmp(dirName, SKIP2) != 0 in searchForTZFile()
994 && uprv_strcmp(TZFILE_SKIP, dirName) != 0 && uprv_strcmp(TZFILE_SKIP2, dirName) != 0) { in searchForTZFile()
1143 && uprv_strcmp(tzid, TZ_ENV_CHECK) != 0 in uprv_tzname()
1602 || (uprv_strcmp("C", posixID) == 0)
1603 || (uprv_strcmp("POSIX", posixID) == 0))
1625 || (uprv_strcmp("C", posixID) == 0)
[all …]
Dlsr.cpp68 uprv_strcmp(language, other.language) == 0 && in isEquivalentTo()
69 uprv_strcmp(script, other.script) == 0 && in isEquivalentTo()
72 (regionIndex > 0 || uprv_strcmp(region, other.region) == 0); in isEquivalentTo()
77 uprv_strcmp(language, other.language) == 0 && in operator ==()
78 uprv_strcmp(script, other.script) == 0 && in operator ==()
81 (regionIndex > 0 || uprv_strcmp(region, other.region) == 0) && in operator ==()
Dloclikelysubtags.cpp364 if (uprv_strcmp(variant, "PSACCENT") == 0) { in makeMaximizedLsr()
367 } else if (uprv_strcmp(variant, "PSBIDI") == 0) { in makeMaximizedLsr()
370 } else if (uprv_strcmp(variant, "PSCRACK") == 0) { in makeMaximizedLsr()
384 if (uprv_strcmp(language, "und") == 0) { in maximize()
387 if (uprv_strcmp(script, "Zzzz") == 0) { in maximize()
390 if (uprv_strcmp(region, "ZZ") == 0) { in maximize()
501 if (uprv_strcmp(lsr.language, other.language) != 0) { in compareLikely()
504 if (uprv_strcmp(lsr.script, other.script) != 0) { in compareLikely()
513 if (uprv_strcmp(lsr.script, likely.script) == 0) { in compareLikely()
519 if (uprv_strcmp(lsr.region, other.region) != 0) { in compareLikely()
[all …]
Duscript.cpp71 if(0 == uprv_strcmp(lang, "ja")) { in getCodesFromLocale()
74 if(0 == uprv_strcmp(lang, "ko")) { in getCodesFromLocale()
81 if(0 == uprv_strcmp(lang, "zh") && 0 == uprv_strcmp(script, "Hant")) { in getCodesFromLocale()
Dlocresdata.cpp98 if(uprv_strcmp(tableKey, "Countries")==0){ in uloc_getTableStringWithFallback()
100 }else if(uprv_strcmp(tableKey, "Languages")==0){ in uloc_getTableStringWithFallback()
133 if(uprv_strcmp(explicitFallbackName, locale)==0){ in uloc_getTableStringWithFallback()
Dloadednormalizer2impl.cpp151 if (uprv_strcmp(what, "nfc") == 0) { in initSingletons()
155 if (uprv_strcmp(what, "nfkc") == 0) { in initSingletons()
157 } else if (uprv_strcmp(what, "nfkc_cf") == 0) { in initSingletons()
278 if(0==uprv_strcmp(name, "nfc")) { in getInstance()
280 } else if(0==uprv_strcmp(name, "nfkc")) { in getInstance()
282 } else if(0==uprv_strcmp(name, "nfkc_cf")) { in getInstance()
Dlocdistance.cpp144 if (uprv_strcmp(desired.language, supported.language) == 0) { in getBestIndexAndDistance()
174 if (uprv_strcmp(desired.script, supported.script) == 0) { in getBestIndexAndDistance()
190 if (uprv_strcmp(desired.region, supported.region) == 0) { in getBestIndexAndDistance()
268 if (uprv_strcmp(desired, supported) == 0) { in getDesSuppScriptDistance()
/external/icu/icu4c/source/test/cintltst/
Dspreptst.c725 if (uprv_strcmp(profileName, "RFC4013_SASLPREP") == 0) { in getTypeFromProfileName()
727 } else if (uprv_strcmp(profileName, "RFC4011_MIB") == 0) { in getTypeFromProfileName()
729 } else if (uprv_strcmp(profileName, "RFC4505_TRACE") == 0) { in getTypeFromProfileName()
731 } else if (uprv_strcmp(profileName, "RFC4518_LDAP") == 0) { in getTypeFromProfileName()
733 } else if (uprv_strcmp(profileName, "RFC4518_LDAP_CI") == 0) { in getTypeFromProfileName()
735 } else if (uprv_strcmp(profileName, "RFC3920_RESOURCEPREP") == 0) { in getTypeFromProfileName()
737 } else if (uprv_strcmp(profileName, "RFC3920_NODEPREP") == 0) { in getTypeFromProfileName()
739 } else if (uprv_strcmp(profileName, "RFC3722_ISCSI") == 0) { in getTypeFromProfileName()
741 } else if (uprv_strcmp(profileName, "RFC3530_NFS4_CS_PREP") == 0) { in getTypeFromProfileName()
743 } else if (uprv_strcmp(profileName, "RFC3530_NFS4_CS_PREP_CI") == 0) { in getTypeFromProfileName()
[all …]
Dcstrtest.c82 if(uprv_strcmp(src, "hello there") != 0){ in TestAPI()
86 if(uprv_strcmp(src, "HELLO THERE") != 0){ in TestAPI()
99 if(uprv_strcmp(src, "34556") != 0 || i != 5){ in TestAPI()
107 if(uprv_strcmp(src, "9223372036854775807") != 0 || i != 19){ in TestAPI()
139 if(uprv_strcmp(temp, "strdup") !=0 ){ in TestAPI()
336 if(diff1>0 || (diff1==0 && 0!=uprv_strcmp(invStrings[i-1][0], invStrings[i][0]))) { in TestCompareInvEbcdicAsAscii()
/external/icu/libicu/cts_headers/
Dnumber_utils.h49 return uprv_strcmp("currency", unit.getType()) == 0; in unitIsCurrency()
57 return uprv_strcmp("percent", unit.getSubtype()) == 0; in unitIsPercent()
61 return uprv_strcmp("permille", unit.getSubtype()) == 0; in unitIsPermille()
/external/icu/icu4c/source/tools/genrb/
Dwrtxml.cpp838 … if(uprv_strcmp(ext, ".jpg")==0 || uprv_strcmp(ext, ".jpeg")==0 || uprv_strcmp(ext, ".gif")==0 ){ in bin_write_xml()
840 } else if(uprv_strcmp(ext, ".wav")==0 || uprv_strcmp(ext, ".au")==0 ){ in bin_write_xml()
842 …} else if(uprv_strcmp(ext, ".avi")==0 || uprv_strcmp(ext, ".mpg")==0 || uprv_strcmp(ext, ".mpeg")=… in bin_write_xml()
844 } else if(uprv_strcmp(ext, ".txt")==0 || uprv_strcmp(ext, ".text")==0){ in bin_write_xml()
1054 if(uprv_strcmp(originalFileName, srBundle->fLocale) != 0) { in bundle_write_xml()
1155 if(language != NULL && uprv_strcmp(lang, srBundle->fLocale)!=0){ in bundle_write_xml()
/external/icu/icu4c/source/tools/toolutil/
Ducmstate.cpp265 if(uprv_strcmp(*pKey, "uconv_class")==0) { in ucm_parseHeaderLine()
266 if(uprv_strcmp(*pValue, "DBCS")==0) { in ucm_parseHeaderLine()
268 } else if(uprv_strcmp(*pValue, "SBCS")==0) { in ucm_parseHeaderLine()
270 } else if(uprv_strcmp(*pValue, "MBCS")==0) { in ucm_parseHeaderLine()
272 } else if(uprv_strcmp(*pValue, "EBCDIC_STATEFUL")==0) { in ucm_parseHeaderLine()
279 } else if(uprv_strcmp(*pKey, "mb_cur_max")==0) { in ucm_parseHeaderLine()
289 } else if(uprv_strcmp(*pKey, "mb_cur_min")==0) { in ucm_parseHeaderLine()
298 } else if(uprv_strcmp(*pKey, "icu:state")==0) { in ucm_parseHeaderLine()
319 } else if(uprv_strcmp(*pKey, "icu:base")==0) { in ucm_parseHeaderLine()
/external/icu/icu4c/source/test/intltest/
Dtzfmttst.cpp66 if (uprv_strcmp(list[i], str) == 0) { in contains()
231 if (uprv_strcmp(PATTERNS[patidx], "V") == 0) { in TestTimeZoneRoundTrip()
254 } else if (uprv_strcmp(PATTERNS[patidx], "VV") == 0) { in TestTimeZoneRoundTrip()
262 …} else if (uprv_strcmp(PATTERNS[patidx], "VVV") == 0 || uprv_strcmp(PATTERNS[patidx], "VVVV") == 0… in TestTimeZoneRoundTrip()
373 if (EXCLUSIONS[i].loc == NULL || uprv_strcmp(loc, EXCLUSIONS[i].loc) == 0) { in isSpecialTimeRoundTripCase()
375 … if (EXCLUSIONS[i].pattern == NULL || uprv_strcmp(pattern, EXCLUSIONS[i].pattern) == 0) { in isSpecialTimeRoundTripCase()
457 UBool bTestAll = (testAllProp && uprv_strcmp(testAllProp, "true") == 0); in TestTimeRoundTrip()
588 if (uprv_strcmp(PATTERNS[patidx], "V") == 0) { in RunTimeRoundTripTests()
596 } else if (uprv_strcmp(PATTERNS[patidx], "VVV") == 0) { in RunTimeRoundTripTests()
607 && uprv_strcmp(PATTERNS[patidx], "vvvv") == 0 in RunTimeRoundTripTests()

123456