Home
last modified time | relevance | path

Searched refs:exemplars (Results 1 – 25 of 34) sorted by relevance

12

/external/cldr/tools/java/org/unicode/cldr/test/
DCheckForExemplars.java91 private UnicodeSet exemplars; field in CheckForExemplars
188 exemplars = safeGetExemplars("", possibleErrors, resolvedFile, ok); in setCldrFileToCheck()
190 if (exemplars == null) { in setCldrFileToCheck()
197 exemplars = new UnicodeSet(); in setCldrFileToCheck()
199 exemplars = new UnicodeSet(exemplars); // modifiable copy in setCldrFileToCheck()
202 boolean isRTL = RTL.containsSome(exemplars); in setCldrFileToCheck()
204 exemplars.addAll(RTL_CONTROLS); in setCldrFileToCheck()
211 exemplars.addAll(auxiliary); in setCldrFileToCheck()
217 exemplars.addAll(punctuation); in setCldrFileToCheck()
221 exemplars.addAll(numbers); in setCldrFileToCheck()
[all …]
DCLDRTest.java245 UnicodeSet exemplars = getFixedExemplarSet(locale, resolved); in TestThatExemplarsContainAll() local
260 if (!exemplars.containsAll(value)) { in TestThatExemplarsContainAll()
262 UnicodeSet missing = new UnicodeSet().addAll(value).removeAll(exemplars); in TestThatExemplarsContainAll()
308 UnicodeSet exemplars = getExemplarSet(cldrfile, ""); in getFixedExemplarSet() local
309 if (exemplars.size() == 0) { in getFixedExemplarSet()
312 exemplars.addAll(getExemplarSet(cldrfile, "standard")); in getFixedExemplarSet()
314 if (exemplars.containsSome(auxiliary)) { in getFixedExemplarSet()
316 new UnicodeSet(exemplars).retainAll(auxiliary) + in getFixedExemplarSet()
317 ": change auxiliary to " + auxiliary.removeAll(exemplars)); in getFixedExemplarSet()
319 exemplars.addAll(auxiliary); in getFixedExemplarSet()
[all …]
DCheckForCopy.java235 … UnicodeSet exemplars = cldrFileToCheck.getExemplarSet("main", CLDRFile.WinningChoice.WINNING); in setCldrFileToCheck() local
236 …if (lang.equals("en") || lang.equals("root") || exemplars != null && ASCII_LETTER.containsNone(exe… in setCldrFileToCheck()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMutableAggregation.java271 @javax.annotation.Nullable private final Exemplar[] exemplars; field in MutableAggregation.MutableDistribution
280 this.exemplars = bucketBoundaries.getBoundaries().isEmpty() ? null : new Exemplar[buckets]; in MutableDistribution()
328 if (!attachments.isEmpty() && exemplars != null) { in add()
329 exemplars[bucket] = Exemplar.create(value, timestamp, attachments); in add()
376 if (exemplars != null && otherExemplars != null) { in combine()
383 this.exemplars[i] = exemplar; in combine()
396 if (exemplars != null) { in toAggregationData()
397 for (Exemplar exemplar : exemplars) { in toAggregationData()
413 if (exemplars != null) { in toPoint()
414 exemplar = exemplars[bucket]; in toPoint()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DAlphabeticIndex.java525 UnicodeSet exemplars = LocaleData.getExemplarSet(locale, 0, LocaleData.ES_INDEX); in addIndexExemplars() local
526 if (exemplars != null && !exemplars.isEmpty()) { in addIndexExemplars()
527 initialLabels.addAll(exemplars); in addIndexExemplars()
533 exemplars = LocaleData.getExemplarSet(locale, 0, LocaleData.ES_STANDARD); in addIndexExemplars()
535 exemplars = exemplars.cloneAsThawed(); in addIndexExemplars()
537 if (exemplars.containsSome('a', 'z') || exemplars.isEmpty()) { in addIndexExemplars()
538 exemplars.addAll('a', 'z'); in addIndexExemplars()
540 if (exemplars.containsSome(0xAC00, 0xD7A3)) { // Hangul syllables in addIndexExemplars()
542 exemplars.remove(0xAC00, 0xD7A3). in addIndexExemplars()
548 if (exemplars.containsSome(0x1200, 0x137F)) { // Ethiopic block in addIndexExemplars()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DAlphabeticIndex.java506 UnicodeSet exemplars = LocaleData.getExemplarSet(locale, 0, LocaleData.ES_INDEX); in addIndexExemplars() local
507 if (exemplars != null && !exemplars.isEmpty()) { in addIndexExemplars()
508 initialLabels.addAll(exemplars); in addIndexExemplars()
514 exemplars = LocaleData.getExemplarSet(locale, 0, LocaleData.ES_STANDARD); in addIndexExemplars()
516 exemplars = exemplars.cloneAsThawed(); in addIndexExemplars()
518 if (exemplars.containsSome('a', 'z') || exemplars.isEmpty()) { in addIndexExemplars()
519 exemplars.addAll('a', 'z'); in addIndexExemplars()
521 if (exemplars.containsSome(0xAC00, 0xD7A3)) { // Hangul syllables in addIndexExemplars()
523 exemplars.remove(0xAC00, 0xD7A3). in addIndexExemplars()
529 if (exemplars.containsSome(0x1200, 0x137F)) { // Ethiopic block in addIndexExemplars()
[all …]
/external/icu/icu4c/source/i18n/
Dalphaindex.cpp712 UnicodeSet exemplars; in addIndexExemplars() local
713 ulocdata_getExemplarSet(uld.getAlias(), exemplars.toUSet(), 0, ULOCDATA_ES_INDEX, &status); in addIndexExemplars()
715 initialLabels_->addAll(exemplars); in addIndexExemplars()
722 ulocdata_getExemplarSet(uld.getAlias(), exemplars.toUSet(), 0, ULOCDATA_ES_STANDARD, &status); in addIndexExemplars()
728 if (exemplars.containsSome(0x61, 0x7A) /* a-z */ || exemplars.isEmpty()) { in addIndexExemplars()
729 exemplars.add(0x61, 0x7A); in addIndexExemplars()
731 if (exemplars.containsSome(0xAC00, 0xD7A3)) { // Hangul syllables in addIndexExemplars()
733 exemplars.remove(0xAC00, 0xD7A3). in addIndexExemplars()
739 if (exemplars.containsSome(0x1200, 0x137F)) { // Ethiopic block in addIndexExemplars()
744 ethiopic.retainAll(exemplars); in addIndexExemplars()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateSidewaysView.java127 static int getFirstScript(UnicodeSet exemplars) { in getFirstScript() argument
128 for (UnicodeSetIterator it = new UnicodeSetIterator(exemplars); it.next();) { in getFirstScript()
344 UnicodeSet exemplars = new UnicodeSet(value); in showExemplars() local
347 for (String item : exemplars) { in showExemplars()
350 exemplars.addAll(extras); in showExemplars()
352 totalExemplars.addAll(exemplars); in showExemplars()
353 exemplars.removeAll(stuffToSkip); in showExemplars()
381 mapping.composeWith(exemplars, temp, setComposer); in showExemplars()
662 UnicodeSet exemplars = new UnicodeSet(value); in loadInformation() local
663 String script = UScript.getName(getFirstScript(exemplars)); in loadInformation()
DShowKeyboards.java747 … UnicodeSet exemplars = new UnicodeSet(cldrFile.getExemplarSet("", WinningChoice.WINNING)); in getInfo() local
750 exemplars.addAll(auxExemplars); in getInfo()
754 exemplars.addAll(punctuationExemplars); in getInfo()
756 exemplars.addAll(getNumericExemplars(cldrFile)); in getInfo()
757 exemplars.addAll(getQuotationMarks(cldrFile)); in getInfo()
758 exemplars.add(" "); in getInfo()
759 addComparison(keyboardId, common, exemplars, results); in getInfo()
771 private static void addComparison(Id keyboardId, UnicodeSet keyboard, UnicodeSet exemplars, in addComparison() argument
773 UnicodeSet common = new UnicodeSet(keyboard).retainAll(exemplars); in addComparison()
777 common = new UnicodeSet(keyboard).removeAll(exemplars); in addComparison()
[all …]
DGenerateCldrDateTimeTests.java78 String exemplars = cldrFile.getStringValue(cpath); in getInfo()
79 UnicodeSet exemplarSet = new UnicodeSet(exemplars); in getInfo()
DGenerateCldrTests.java852 UnicodeSet exemplars = getExemplarSet(locale, UnicodeSet.CASE,
856 exemplars = createCaseClosure(exemplars);
857 exemplars = nfc(exemplars);
859 tailored.addAll(exemplars);
863 if (!exemplars.containsAll(tailored)) {
869 Log.logln(new UnicodeSet(tailored).removeAll(exemplars)
DCountItems.java203 UnicodeSet exemplars = new UnicodeSet(v); in showExemplars() local
204 if (exemplars.size() != 0 && exemplars.size() < 500) { in showExemplars()
216 .format(exemplars); in showExemplars()
219 verifyEquality(exemplars, new UnicodeSet(fixed)); in showExemplars()
229 private static void verifyEquality(UnicodeSet exemplars, UnicodeSet others) { in verifyEquality() argument
230 if (others.equals(exemplars)) in verifyEquality()
233 + new UnicodeSet(exemplars).removeAll(others)); in verifyEquality()
234 System.out.println("\tb-a\t" + new UnicodeSet(others).removeAll(exemplars)); in verifyEquality()
DChartCollation.java289 UnicodeSet exemplars = cldrFile.getExemplarSet("", WinningChoice.WINNING).freeze(); in writeContents() local
291 UnicodeSet exemplars_all = new UnicodeSet(exemplars); in writeContents()
328 exemplars.addAllTo(sorted); in writeContents()
DGenerateCasingChart.java99 UnicodeSet exemplars = cldrFile.getExemplarSet("", WinningChoice.WINNING); in main() local
107 boolean hasCasedLetters = changesUpper.containsSome(exemplars); in main()
DGenerateXMB.java457 UnicodeSet exemplars = getExemplars(cldrFile); in writeFile() local
516 && !exemplars.containsAll(value) in writeFile()
524 bad = !exemplars.containsAll(value2); in writeFile()
527 UnicodeSet diff = new UnicodeSet().addAll(value).removeAll(exemplars); in writeFile()
628 UnicodeSet exemplars = cldrFile.getExemplarSet("", CLDRFile.WinningChoice.WINNING); in getExemplars() local
629 boolean isLatin = exemplars.containsSome(ASCII_LATIN); in getExemplars()
630 exemplars.addAll(CheckExemplars.AlwaysOK); in getExemplars()
633 exemplars.addAll(auxExemplars); in getExemplars()
636 exemplars.removeAll(LATIN); in getExemplars()
638 exemplars.freeze(); in getExemplars()
[all …]
DDeriveScripts.java101 UnicodeSet exemplars = cldrFile.getExemplarSet("", WinningChoice.WINNING);
102 for (String s : exemplars) {
DExtractMessages.java252 UnicodeSet exemplars = cldrFile.getExemplarSet("", WinningChoice.WINNING); in setLocale() local
253 usesLatin = exemplars != null && exemplars.containsSome(LATIN_SCRIPT); in setLocale()
DShowData.java500 private static Set<String> getScripts(String exemplars, Set<String> results) {
502 if (exemplars == null)
505 .addAll(exemplars)); it.next();) {
DGenerateG2xG2.java164 UnicodeSet exemplars = new UnicodeSet(v); in main() local
165 if (exemplars.contains('a', 'z')) continue; in main()
/external/opencensus-java/api/src/main/java/io/opencensus/stats/
DAggregationData.java286 List<Exemplar> exemplars) { in create() argument
297 Utils.checkNotNull(exemplars, "exemplar list should not be null."); in create()
298 for (Exemplar exemplar : exemplars) { in create()
309 Collections.<Exemplar>unmodifiableList(new ArrayList<Exemplar>(exemplars))); in create()
/external/cldr/tools/java/org/unicode/cldr/draft/
DExemplarInfo.java122 private UnicodeSet exemplars; field in ExemplarInfo
159 return exemplars; in getExemplars()
168 exemplars = ExemplarInfo.flatten(exemplars1, locale).freeze(); in ExemplarInfo()
175 exemplarsX = new UnicodeSet(exemplars).addAll(IGNORE).freeze(); in ExemplarInfo()
/external/cldr/tools/java/org/unicode/cldr/util/
DWikiSubdivisionLanguages.java175 UnicodeSet exemplars = null; in main() local
201 exemplars = new UnicodeSet() in main()
223 if (!exemplars.containsAll(name)) { in main()
224 … UnicodeSet exemplarFailures = new UnicodeSet().addAll(name).removeAll(exemplars); in main()
/external/cldr/tools/java/org/unicode/cldr/icu/
DTestCldr.java101 UnicodeSet exemplars = getExemplarSet(cfile, "").addAll( in TestScripts() local
103 Set<String> CLDRScripts = getScriptsFromUnicodeSet(exemplars); in TestScripts()
113 public Set<String> getScriptsFromUnicodeSet(UnicodeSet exemplars) { in getScriptsFromUnicodeSet() argument
117 for (UnicodeSetIterator it = new UnicodeSetIterator(exemplars); it.next();) { in getScriptsFromUnicodeSet()
/external/cldr/tools/scripts/
DfixSVNProps.sh13 find common exemplars keyboards seed specs tools/java tools/cldr-unittest -type f -print | while re…
/external/opencensus-java/
DCHANGELOG.md19 - Add an API MeasureMap.putAttachment() for recording exemplars.
23 on recording exemplars.

12