Home
last modified time | relevance | path

Searched refs:sourceStyle (Results 1 – 3 of 3) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRelativeDateTimeFormatter.java1164 Style sourceStyle = styleFromKey(key); in handleAlias() local
1165 int limit = key.length() - styleSuffixLength(sourceStyle); in handleAlias()
1171 if (sourceStyle == targetStyle) { in handleAlias()
1172 … throw new ICUException("Invalid style fallback from " + sourceStyle + " to itself"); in handleAlias()
1176 if (fallbackCache[sourceStyle.ordinal()] == null) { in handleAlias()
1177 fallbackCache[sourceStyle.ordinal()] = targetStyle; in handleAlias()
1178 } else if (fallbackCache[sourceStyle.ordinal()] != targetStyle) { in handleAlias()
1180 … "Inconsistent style fallback for style " + sourceStyle + " to " + targetStyle); in handleAlias()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRelativeDateTimeFormatter.java1101 Style sourceStyle = styleFromKey(key); in handleAlias() local
1102 int limit = key.length() - styleSuffixLength(sourceStyle); in handleAlias()
1108 if (sourceStyle == targetStyle) { in handleAlias()
1109 … throw new ICUException("Invalid style fallback from " + sourceStyle + " to itself"); in handleAlias()
1113 if (fallbackCache[sourceStyle.ordinal()] == null) { in handleAlias()
1114 fallbackCache[sourceStyle.ordinal()] = targetStyle; in handleAlias()
1115 } else if (fallbackCache[sourceStyle.ordinal()] != targetStyle) { in handleAlias()
1117 … "Inconsistent style fallback for style " + sourceStyle + " to " + targetStyle); in handleAlias()
/external/icu/icu4c/source/i18n/
Dreldatefmt.cpp499 UDateRelativeDateTimeFormatterStyle sourceStyle = styleFromString(key); in consumeAlias() local
506 if (sourceStyle == targetStyle) { in consumeAlias()
510 if (outputData.fallBackCache[sourceStyle] != -1 && in consumeAlias()
511 outputData.fallBackCache[sourceStyle] != targetStyle) { in consumeAlias()
515 outputData.fallBackCache[sourceStyle] = targetStyle; in consumeAlias()