/third_party/node/deps/icu-small/source/common/ |
D | lsr.h | 16 struct LSR final : public UMemory { 36 LSR() : language("und"), script(""), region("") {} in LSR() function 39 LSR(const char *lang, const char *scr, const char *r, int32_t f) : in LSR() function 46 LSR(char prefix, const char *lang, const char *scr, const char *r, int32_t f, 48 LSR(LSR &&other) U_NOEXCEPT; 49 LSR(const LSR &other) = delete; 50 inline ~LSR() { in ~LSR() 57 LSR &operator=(LSR &&other) U_NOEXCEPT; 58 LSR &operator=(const LSR &other) = delete; 67 UBool isEquivalentTo(const LSR &other) const; [all …]
|
D | loclikelysubtags.cpp | 59 LSR *lsrs = nullptr; 131 if (length < LSR::REGION_INDEX_LIMIT) { in load() 181 lsrs = new LSR[lsrsLength]; in load() 187 lsrs[j] = LSR(strings.get(lsrSubtagIndexes[i]), in load() 190 LSR::IMPLICIT_LSR); in load() 207 LSR *paradigms = new LSR[distanceData.paradigmsLength]; in load() 213 paradigms[j] = LSR(strings.get(paradigmSubtagIndexes[i]), in load() 216 LSR::DONT_CARE_FLAGS); in load() 320 LSR XLikelySubtags::makeMaximizedLsrFrom(const Locale &locale, UErrorCode &errorCode) const { in makeMaximizedLsrFrom() 325 return LSR(name, "", "", LSR::EXPLICIT_LSR); in makeMaximizedLsrFrom() [all …]
|
D | lsr.cpp | 17 LSR::LSR(char prefix, const char *lang, const char *scr, const char *r, int32_t f, in LSR() function in LSR 34 LSR::LSR(LSR &&other) U_NOEXCEPT : in LSR() function in LSR 45 void LSR::deleteOwned() { in deleteOwned() 49 LSR &LSR::operator=(LSR &&other) U_NOEXCEPT { in operator =() 50 this->~LSR(); in operator =() 66 UBool LSR::isEquivalentTo(const LSR &other) const { in isEquivalentTo() 75 bool LSR::operator==(const LSR &other) const { in operator ==() 85 int32_t LSR::indexForRegion(const char *region) { in indexForRegion() 104 LSR &LSR::setHashCode() { in setHashCode()
|
D | loclikelysubtags.h | 31 const LSR *paradigms = nullptr; 50 LSR makeMaximizedLsrFrom(const Locale &locale, UErrorCode &errorCode) const; 62 int32_t compareLikely(const LSR &lsr, const LSR &other, int32_t likelyInfo) const; 68 LSR minimizeSubtags(const char *languageIn, const char *scriptIn, const char *regionIn, 82 LSR makeMaximizedLsr(const char *language, const char *script, const char *region, 88 LSR maximize(const char *language, const char *script, const char *region) const; 110 const LSR *lsrs;
|
D | locdistance.h | 59 int32_t getBestIndexAndDistance(const LSR &desired, 60 const LSR **supportedLSRs, int32_t supportedLSRsLength, 65 UBool isParadigmLSR(const LSR &lsr) const; 92 UBool isMatch(const LSR &desired, const LSR &supported, in isMatch() 94 const LSR *pSupp = &supported; in isMatch() 112 const char *partitionsForRegion(const LSR &lsr) const { in partitionsForRegion() 139 const LSR *paradigmLSRs;
|
/third_party/icu/icu4c/source/common/ |
D | lsr.h | 16 struct LSR final : public UMemory { 36 LSR() : language("und"), script(""), region("") {} in LSR() function 39 LSR(const char *lang, const char *scr, const char *r, int32_t f) : in LSR() function 46 LSR(char prefix, const char *lang, const char *scr, const char *r, int32_t f, 48 LSR(LSR &&other) U_NOEXCEPT; 49 LSR(const LSR &other) = delete; 50 inline ~LSR() { in ~LSR() 57 LSR &operator=(LSR &&other) U_NOEXCEPT; 58 LSR &operator=(const LSR &other) = delete; 67 UBool isEquivalentTo(const LSR &other) const; [all …]
|
D | loclikelysubtags.cpp | 59 LSR *lsrs = nullptr; 131 if (length < LSR::REGION_INDEX_LIMIT) { in load() 181 lsrs = new LSR[lsrsLength]; in load() 187 lsrs[j] = LSR(strings.get(lsrSubtagIndexes[i]), in load() 190 LSR::IMPLICIT_LSR); in load() 207 LSR *paradigms = new LSR[distanceData.paradigmsLength]; in load() 213 paradigms[j] = LSR(strings.get(paradigmSubtagIndexes[i]), in load() 216 LSR::DONT_CARE_FLAGS); in load() 320 LSR XLikelySubtags::makeMaximizedLsrFrom(const Locale &locale, UErrorCode &errorCode) const { in makeMaximizedLsrFrom() 325 return LSR(name, "", "", LSR::EXPLICIT_LSR); in makeMaximizedLsrFrom() [all …]
|
D | lsr.cpp | 17 LSR::LSR(char prefix, const char *lang, const char *scr, const char *r, int32_t f, in LSR() function in LSR 34 LSR::LSR(LSR &&other) U_NOEXCEPT : in LSR() function in LSR 45 void LSR::deleteOwned() { in deleteOwned() 49 LSR &LSR::operator=(LSR &&other) U_NOEXCEPT { in operator =() 50 this->~LSR(); in operator =() 66 UBool LSR::isEquivalentTo(const LSR &other) const { in isEquivalentTo() 75 UBool LSR::operator==(const LSR &other) const { in operator ==() 85 int32_t LSR::indexForRegion(const char *region) { in indexForRegion() 104 LSR &LSR::setHashCode() { in setHashCode()
|
D | loclikelysubtags.h | 31 const LSR *paradigms = nullptr; 50 LSR makeMaximizedLsrFrom(const Locale &locale, UErrorCode &errorCode) const; 62 int32_t compareLikely(const LSR &lsr, const LSR &other, int32_t likelyInfo) const; 68 LSR minimizeSubtags(const char *languageIn, const char *scriptIn, const char *regionIn, 82 LSR makeMaximizedLsr(const char *language, const char *script, const char *region, 88 LSR maximize(const char *language, const char *script, const char *region) const; 110 const LSR *lsrs;
|
D | locdistance.h | 59 int32_t getBestIndexAndDistance(const LSR &desired, 60 const LSR **supportedLSRs, int32_t supportedLSRsLength, 65 UBool isParadigmLSR(const LSR &lsr) const; 92 UBool isMatch(const LSR &desired, const LSR &supported, in isMatch() 94 const LSR *pSupp = &supported; in isMatch() 112 const char *partitionsForRegion(const LSR &lsr) const { in partitionsForRegion() 139 const LSR *paradigmLSRs;
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | lsr.h | 16 struct LSR final : public UMemory { 36 LSR() : language("und"), script(""), region("") {} in LSR() function 39 LSR(const char *lang, const char *scr, const char *r, int32_t f) : in LSR() function 46 LSR(char prefix, const char *lang, const char *scr, const char *r, int32_t f, 48 LSR(LSR &&other) U_NOEXCEPT; 49 LSR(const LSR &other) = delete; 50 inline ~LSR() { in ~LSR() 57 LSR &operator=(LSR &&other) U_NOEXCEPT; 58 LSR &operator=(const LSR &other) = delete; 67 UBool isEquivalentTo(const LSR &other) const; [all …]
|
D | loclikelysubtags.cpp | 59 LSR *lsrs = nullptr; 131 if (length < LSR::REGION_INDEX_LIMIT) { in load() 181 lsrs = new LSR[lsrsLength]; in load() 187 lsrs[j] = LSR(strings.get(lsrSubtagIndexes[i]), in load() 190 LSR::IMPLICIT_LSR); in load() 207 LSR *paradigms = new LSR[distanceData.paradigmsLength]; in load() 213 paradigms[j] = LSR(strings.get(paradigmSubtagIndexes[i]), in load() 216 LSR::DONT_CARE_FLAGS); in load() 320 LSR XLikelySubtags::makeMaximizedLsrFrom(const Locale &locale, UErrorCode &errorCode) const { in makeMaximizedLsrFrom() 325 return LSR(name, "", "", LSR::EXPLICIT_LSR); in makeMaximizedLsrFrom() [all …]
|
D | lsr.cpp | 17 LSR::LSR(char prefix, const char *lang, const char *scr, const char *r, int32_t f, in LSR() function in LSR 34 LSR::LSR(LSR &&other) U_NOEXCEPT : in LSR() function in LSR 45 void LSR::deleteOwned() { in deleteOwned() 49 LSR &LSR::operator=(LSR &&other) U_NOEXCEPT { in operator =() 50 this->~LSR(); in operator =() 66 UBool LSR::isEquivalentTo(const LSR &other) const { in isEquivalentTo() 75 UBool LSR::operator==(const LSR &other) const { in operator ==() 85 int32_t LSR::indexForRegion(const char *region) { in indexForRegion() 104 LSR &LSR::setHashCode() { in setHashCode()
|
D | loclikelysubtags.h | 31 const LSR *paradigms = nullptr; 50 LSR makeMaximizedLsrFrom(const Locale &locale, UErrorCode &errorCode) const; 62 int32_t compareLikely(const LSR &lsr, const LSR &other, int32_t likelyInfo) const; 68 LSR minimizeSubtags(const char *languageIn, const char *scriptIn, const char *regionIn, 82 LSR makeMaximizedLsr(const char *language, const char *script, const char *region, 88 LSR maximize(const char *language, const char *script, const char *region) const; 110 const LSR *lsrs;
|
D | locdistance.h | 59 int32_t getBestIndexAndDistance(const LSR &desired, 60 const LSR **supportedLSRs, int32_t supportedLSRsLength, 65 UBool isParadigmLSR(const LSR &lsr) const; 92 UBool isMatch(const LSR &desired, const LSR &supported, in isMatch() 94 const LSR *pSupp = &supported; in isMatch() 112 const char *partitionsForRegion(const LSR &lsr) const { in partitionsForRegion() 139 const LSR *paradigmLSRs;
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/ |
D | XLikelySubtags.java | 31 private static final boolean DEBUG_OUTPUT = LSR.DEBUG_OUTPUT; 41 public final LSR[] lsrs; 44 byte[] trie, LSR[] lsrs) { in Data() 95 LSR[] lsrs = new LSR[lsrSubtags.length / 3]; in load() 97 lsrs[j] = new LSR(lsrSubtags[i], lsrSubtags[i + 1], lsrSubtags[i + 2], in load() 98 LSR.IMPLICIT_LSR); in load() 136 private final LSR[] lsrs; 166 for (Map.Entry<String, LSR> mapping : getTable().entrySet()) { in XLikelySubtags() 195 public LSR makeMaximizedLsrFrom(ULocale locale) { in makeMaximizedLsrFrom() 201 return new LSR(tag, "", "", LSR.EXPLICIT_LSR); in makeMaximizedLsrFrom() [all …]
|
D | LocaleDistance.java | 59 private static final boolean DEBUG_OUTPUT = LSR.DEBUG_OUTPUT; 76 private final Set<LSR> paradigmLSRs; 114 public Set<LSR> paradigmLSRs; 119 Set<LSR> paradigmLSRs, int[] distances) { in Data() 151 if (regionToPartitions.length < LSR.REGION_INDEX_LIMIT) { in load() 158 Set<LSR> paradigmLSRs; in load() 164 paradigmLSRs.add(new LSR(paradigms[i], paradigms[i + 1], paradigms[i + 2], in load() 165 LSR.DONT_CARE_FLAGS)); in load() 217 LSR en = new LSR("en", "Latn", "US", LSR.EXPLICIT_LSR); in LocaleDistance() 218 LSR enGB = new LSR("en", "Latn", "GB", LSR.EXPLICIT_LSR); in LocaleDistance() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
D | XLikelySubtags.java | 27 private static final boolean DEBUG_OUTPUT = LSR.DEBUG_OUTPUT; 34 public final LSR[] lsrs; 37 byte[] trie, LSR[] lsrs) { in Data() 88 LSR[] lsrs = new LSR[lsrSubtags.length / 3]; in load() 90 lsrs[j] = new LSR(lsrSubtags[i], lsrSubtags[i + 1], lsrSubtags[i + 2], in load() 91 LSR.IMPLICIT_LSR); in load() 129 private final LSR[] lsrs; 159 for (Map.Entry<String, LSR> mapping : getTable().entrySet()) { in XLikelySubtags() 188 public LSR makeMaximizedLsrFrom(ULocale locale) { in makeMaximizedLsrFrom() 195 return new LSR(tag, "", "", LSR.EXPLICIT_LSR); in makeMaximizedLsrFrom() [all …]
|
D | LocaleDistance.java | 57 private static final boolean DEBUG_OUTPUT = LSR.DEBUG_OUTPUT; 74 private final Set<LSR> paradigmLSRs; 109 public Set<LSR> paradigmLSRs; 114 Set<LSR> paradigmLSRs, int[] distances) { in Data() 146 if (regionToPartitions.length < LSR.REGION_INDEX_LIMIT) { in load() 153 Set<LSR> paradigmLSRs; in load() 159 paradigmLSRs.add(new LSR(paradigms[i], paradigms[i + 1], paradigms[i + 2], in load() 160 LSR.DONT_CARE_FLAGS)); in load() 212 LSR en = new LSR("en", "Latn", "US", LSR.EXPLICIT_LSR); in LocaleDistance() 213 LSR enGB = new LSR("en", "Latn", "GB", LSR.EXPLICIT_LSR); in LocaleDistance() [all …]
|
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/locale/ |
D | LikelySubtagsBuilder.java | 17 import com.ibm.icu.impl.locale.LSR; 30 private static final boolean DEBUG_OUTPUT = LSR.DEBUG_OUTPUT; 135 Map<String, Map<String, Map<String, LSR>>> langTable = in build() 139 Map<LSR, Integer> lsrIndexes = new LinkedHashMap<>(); in build() 142 lsrIndexes.put(new LSR("", "", "", LSR.DONT_CARE_FLAGS), 0); // arbitrary LSR in build() 146 lsrIndexes.put(new LSR("skip", "script", "", LSR.DONT_CARE_FLAGS), 1); in build() 149 for (Map.Entry<String, Map<String, Map<String, LSR>>> ls : langTable.entrySet()) { in build() 157 Map<String, Map<String, LSR>> scriptTable = ls.getValue(); in build() 160 Map<String, LSR> regionTable = scriptTable.get(""); in build() 176 for (Map.Entry<String, Map<String, LSR>> sr : scriptTable.entrySet()) { in build() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/tool/locale/ |
D | LikelySubtagsBuilder.java | 17 import ohos.global.icu.impl.locale.LSR; 30 private static final boolean DEBUG_OUTPUT = LSR.DEBUG_OUTPUT; 135 Map<String, Map<String, Map<String, LSR>>> langTable = in build() 139 Map<LSR, Integer> lsrIndexes = new LinkedHashMap<>(); in build() 142 lsrIndexes.put(new LSR("", "", "", LSR.DONT_CARE_FLAGS), 0); // arbitrary LSR in build() 146 lsrIndexes.put(new LSR("skip", "script", "", LSR.DONT_CARE_FLAGS), 1); in build() 149 for (Map.Entry<String, Map<String, Map<String, LSR>>> ls : langTable.entrySet()) { in build() 157 Map<String, Map<String, LSR>> scriptTable = ls.getValue(); in build() 160 Map<String, LSR> regionTable = scriptTable.get(""); in build() 176 for (Map.Entry<String, Map<String, LSR>> sr : scriptTable.entrySet()) { in build() [all …]
|
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/localedistance/ |
D | PartitionInfoTest.java | 12 import com.ibm.icu.impl.locale.LSR; 72 assertThat(lookup[LSR.indexForRegion("CA")]).isEqualTo(1); in testPartitionInfo() 73 assertThat(lookup[LSR.indexForRegion("VI")]).isEqualTo(1); in testPartitionInfo() 74 assertThat(lookup[LSR.indexForRegion("DE")]).isEqualTo(2); in testPartitionInfo() 75 assertThat(lookup[LSR.indexForRegion("FR")]).isEqualTo(2); in testPartitionInfo() 76 assertThat(lookup[LSR.indexForRegion("GB")]).isEqualTo(3); in testPartitionInfo() 77 assertThat(lookup[LSR.indexForRegion("PR")]).isEqualTo(4); in testPartitionInfo() 78 assertThat(lookup[LSR.indexForRegion("US")]).isEqualTo(4); in testPartitionInfo() 79 assertThat(lookup[LSR.indexForRegion("001")]).isEqualTo(5); in testPartitionInfo() 80 assertThat(lookup[LSR.indexForRegion("003")]).isEqualTo(6); in testPartitionInfo() [all …]
|
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/ |
D | LikelySubtagsBuilder.java | 10 import com.ibm.icu.impl.locale.LSR; 156 Map<String, Map<String, Map<String, LSR>>> lsrTable = in build() 164 Indexer<LSR, Integer> lsrToIndex = Indexer.create(); in build() 187 lsrToIndex.getValues().toArray(new LSR[0])); in build() 191 Map<String, Map<String, Map<String, LSR>>> languages, in writeLsrTable() 192 Indexer<LSR, Integer> lsrToIndex) { in writeLsrTable() argument 204 … Trie.Span languageSpan, Map<String, Map<String, LSR>> scripts, Indexer<LSR, Integer> lsrToIndex) { in writeScripts() argument 215 Map<String, LSR> regions = scripts.get("*"); in writeScripts() 229 … Trie.Span languageOrScriptSpan, Map<String, LSR> regions, Indexer<LSR, Integer> lsrToIndex) { in writeRegions() argument 244 private static Map<String, Map<String, Map<String, LSR>>> makeTable( in makeTable() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | LocaleMatcher.java | 19 import com.ibm.icu.impl.locale.LSR; 66 private static final LSR UND_LSR = new LSR("und","","", LSR.EXPLICIT_LSR); 76 private static abstract class LsrIterator implements Iterator<LSR> { 346 private final Map<LSR, Integer> supportedLsrToIndex; 349 private final LSR[] supportedLSRs; 682 LSR defLSR = null; in LocaleMatcher() 695 LSR lsrs[] = new LSR[supportedLocalesLength]; in LocaleMatcher() 713 supportedLSRs = new LSR[supportedLocalesLength]; in LocaleMatcher() 722 LSR lsr = lsrs[i]; in LocaleMatcher() 772 new LSR[] { getMaximalLsrOrUnd(builder.maxDistanceSupported) }, 1, in LocaleMatcher() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | LocaleMatcher.java | 20 import ohos.global.icu.impl.locale.LSR; 67 private static final LSR UND_LSR = new LSR("und","","", LSR.EXPLICIT_LSR); 77 private static abstract class LsrIterator implements Iterator<LSR> { 351 private final Map<LSR, Integer> supportedLsrToIndex; 354 private final LSR[] supportedLSRs; 607 LSR defLSR = null; in LocaleMatcher() 620 LSR lsrs[] = new LSR[supportedLocalesLength]; in LocaleMatcher() 638 supportedLSRs = new LSR[supportedLocalesLength]; in LocaleMatcher() 647 LSR lsr = lsrs[i]; in LocaleMatcher() 694 private final int putIfAbsent(LSR lsr, int i, int suppLength) { in putIfAbsent() [all …]
|