Lines Matching refs:replacement
566 void (*checkReplacement)(const UChar* replacement),
574 // to store the index in the strings for the replacement script.
586 // to store the index in the strings for the replacement script.
597 // to store the index in the strings for the replacement script.
608 // to store the index in the strings for the replacement variant.
619 // to store the index in the strings for the replacement variant.
703 void (*checkReplacement)(const UChar* replacement),
724 ures_getStringByKey(res.getAlias(), "replacement", nullptr, &status);
739 * replacement language.
776 * replacement script.
793 [](const UChar* replacement) {
794 U_ASSERT(u_strlen(replacement) == 4);
807 * replacement regions.
835 * replacement variant.
854 [](const UChar* replacement) {
855 int32_t len = u_strlen(replacement);
858 (*replacement >= u'0' &&
859 *replacement <= u'9'));
872 * replacement regions.
1064 * A class that find the replacement values of locale fields by using AliasData.
1084 // Otherwise return false for no replacement or error.
1102 * If replacement is neither null nor empty and input is either null or empty,
1103 * return replacement.
1104 * If replacement is neither null nor empty but input is not empty, return input.
1105 * If replacement is either null or empty and type is either null or empty,
1108 * replacement input type return
1115 const char* input, const char* type, const char* replacement) {
1116 return notEmpty(replacement) ?
1117 ((input == nullptr) ? replacement : input) :
1140 void parseLanguageReplacement(const char* replacement,
1191 const char* replacement,
1205 if (uprv_strchr(replacement, '_') == nullptr) {
1206 replacedLanguage = replacement;
1212 replacement, (int32_t)uprv_strlen(replacement), status);
1309 const char *replacement = data->languageMap().get(typeKey.data());
1310 if (replacement == nullptr) {
1311 // Found no replacement data.
1320 parseLanguageReplacement(replacement,
1358 // replacement. Currently we know only the following 4 "BCP47 LegacyRules" have
1385 const char *replacement = data->territoryMap().get(region);
1386 if (replacement == nullptr) {
1387 // Found no replacement data for this region.
1390 const char* replacedRegion = replacement;
1391 const char* firstSpace = uprv_strchr(replacement, ' ');
1393 // If there are are more than one region in the replacement.
1407 const char* foundInReplacement = uprv_strstr(replacement,
1411 // the replacement of territoryAlias
1412 U_ASSERT(foundInReplacement == replacement ||
1422 new CharString(replacement,
1423 (int32_t)(firstSpace - replacement), status), status);
1446 const char *replacement = data->scriptMap().get(script);
1447 if (replacement == nullptr) {
1448 // Found no replacement data for this script.
1451 U_ASSERT(!same(script, replacement));
1452 script = replacement;
1466 const char *replacement = data->variantMap().get(variant);
1467 if (replacement == nullptr) {
1468 // Found no replacement data for this variant.
1471 U_ASSERT((uprv_strlen(replacement) >= 5 &&
1472 uprv_strlen(replacement) <= 8) ||
1473 (uprv_strlen(replacement) == 4 &&
1474 replacement[0] >= '0' &&
1475 replacement[0] <= '9'));
1476 if (!same(variant, replacement)) {
1477 variants.setElementAt((void*)replacement, i);
1500 const char *replacement = data->subdivisionMap().get(subdivision.data());
1501 if (replacement != nullptr) {
1502 const char* firstSpace = uprv_strchr(replacement, ' ');
1503 // Found replacement data for this subdivision.
1505 (firstSpace - replacement) : uprv_strlen(replacement);
1507 output.append(replacement, (int32_t)len, status);
1745 CharString replacement;
1747 if (replaceSubdivision(value.toStringPiece(), replacement, status)) {
1749 temp.setKeywordValue(key, replacement.data(), status);
1753 if (replaceTransformedExtensions(value, replacement, status)) {
1755 temp.setKeywordValue(key, replacement.data(), status);
1960 // If need replacement, call init again.