Home
last modified time | relevance | path

Searched refs:String (Results 1 – 25 of 5048) sorted by relevance

12345678910>>...202

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateTimeGeneratorTest.java60 String[][] tests = { in TestC()
82 for (String[] test : tests) { in TestC()
84 String skeleton = test[1]; in TestC()
86 String pattern = gen.getBestPattern(skeleton, options); in TestC()
93 String[][] dataItems = { in TestSkeletonsWithDayPeriods()
100 String[][] testItems = { in TestSkeletonsWithDayPeriods()
132 for (String[] dataItem : dataItems) { in TestSkeletonsWithDayPeriods()
134 String base = gen.getBaseSkeleton(dataItem[0]); in TestSkeletonsWithDayPeriods()
139 for (String[] testItem : testItems) { in TestSkeletonsWithDayPeriods()
141 String pattern = gen.getBestPattern(testItem[0], options); in TestSkeletonsWithDayPeriods()
[all …]
DDataDrivenNumberFormatTestData.java68 public String pattern = null;
73 public String format = null;
78 public String output = null;
83 public String comment = null;
97 public String padCharacter = null;
107 public String positivePrefix = null;
108 public String positiveSuffix = null;
109 public String negativePrefix = null;
110 public String negativeSuffix = null;
112 public String localizedPattern = null;
[all …]
DPersonNameFormatterTest.java23 public String nameFields;
24 public String[][] testCases;
26 public NameAndTestCases(String nameFields, String[][] testCases) { in NameAndTestCases()
32 private SimplePersonName buildPersonName(String fieldsAndValues) { in buildPersonName()
37 String entry = entrySplitter.nextToken(); in buildPersonName()
42 String fieldName = entry.substring(0, equalPos); in buildPersonName()
43 String fieldValue = entry.substring(equalPos + 1); in buildPersonName()
71 for (String[] testCase : nameAndTestCases.testCases) { in executeTestCases()
77 String expectedResult = testCase[5]; in executeTestCases()
81 String actualResult = formatter.formatToString(name); in executeTestCases()
[all …]
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/
DMetadataFilterTest.java31 private static final String ID = "AM";
33 private static final String INTERNATIONAL_PREFIX = "0[01]";
34 private static final String PREFERRED_INTERNATIONAL_PREFIX = "00";
35 private static final String NATIONAL_NUMBER_PATTERN = "\\d{8}";
38 private static final String EXAMPLE_NUMBER = "10123456";
44 TreeMap<String, TreeSet<String>> blacklist = new TreeMap<String, TreeSet<String>>(); in testForLiteBuild()
45 blacklist.put("fixedLine", new TreeSet<String>(Arrays.asList("exampleNumber"))); in testForLiteBuild()
46 blacklist.put("mobile", new TreeSet<String>(Arrays.asList("exampleNumber"))); in testForLiteBuild()
47 blacklist.put("tollFree", new TreeSet<String>(Arrays.asList("exampleNumber"))); in testForLiteBuild()
48 blacklist.put("premiumRate", new TreeSet<String>(Arrays.asList("exampleNumber"))); in testForLiteBuild()
[all …]
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DCountryCodeToRegionCodeMap.java33 public static Map<Integer, List<String>> getCountryCodeToRegionCodeMap() { in getCountryCodeToRegionCodeMap()
36 Map<Integer, List<String>> countryCodeToRegionCodeMap = in getCountryCodeToRegionCodeMap()
37 new HashMap<Integer, List<String>>(286); in getCountryCodeToRegionCodeMap()
39 ArrayList<String> listWithRegionCode; in getCountryCodeToRegionCodeMap()
41 listWithRegionCode = new ArrayList<String>(25); in getCountryCodeToRegionCodeMap()
69 listWithRegionCode = new ArrayList<String>(2); in getCountryCodeToRegionCodeMap()
74 listWithRegionCode = new ArrayList<String>(1); in getCountryCodeToRegionCodeMap()
78 listWithRegionCode = new ArrayList<String>(1); in getCountryCodeToRegionCodeMap()
82 listWithRegionCode = new ArrayList<String>(1); in getCountryCodeToRegionCodeMap()
86 listWithRegionCode = new ArrayList<String>(1); in getCountryCodeToRegionCodeMap()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DDateTimeGeneratorTest.java63 String[][] tests = { in TestC()
85 for (String[] test : tests) { in TestC()
87 String skeleton = test[1]; in TestC()
89 String pattern = gen.getBestPattern(skeleton, options); in TestC()
96 String[][] dataItems = { in TestSkeletonsWithDayPeriods()
103 String[][] testItems = { in TestSkeletonsWithDayPeriods()
135 for (String[] dataItem : dataItems) { in TestSkeletonsWithDayPeriods()
137 String base = gen.getBaseSkeleton(dataItem[0]); in TestSkeletonsWithDayPeriods()
142 for (String[] testItem : testItems) { in TestSkeletonsWithDayPeriods()
144 String pattern = gen.getBestPattern(testItem[0], options); in TestSkeletonsWithDayPeriods()
[all …]
DDataDrivenNumberFormatTestData.java71 public String pattern = null;
76 public String format = null;
81 public String output = null;
86 public String comment = null;
100 public String padCharacter = null;
110 public String positivePrefix = null;
111 public String positiveSuffix = null;
112 public String negativePrefix = null;
113 public String negativeSuffix = null;
115 public String localizedPattern = null;
[all …]
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DRegionCode.java24 static final String UN001 = "001";
25 static final String AD = "AD";
26 static final String AE = "AE";
27 static final String AM = "AM";
28 static final String AO = "AO";
29 static final String AQ = "AQ";
30 static final String AR = "AR";
31 static final String AU = "AU";
32 static final String BB = "BB";
33 static final String BR = "BR";
[all …]
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DPartitionInfo.java55 private final Set<String> variables = new HashSet<>();
56 private final SortedSetMultimap<String, String> regionToVariables = TreeMultimap.create();
65 private boolean isKnownVariableOrWildcard(String variable) { in isKnownVariableOrWildcard()
80 public void addVariableExpression(String variable, String expr) { in addVariableExpression()
87 Set<String> regions = parseAndFlattenRegionExpression(expr, territories); in addVariableExpression()
110 private void addVariable(String variable, Iterable<String> regions) { in addVariable()
113 for (String region : regions) { in addVariable()
121 private static Set<String> parseAndFlattenRegionExpression( in parseAndFlattenRegionExpression()
122 String expr, TerritoryContainment territories) { in parseAndFlattenRegionExpression()
123 Set<String> regions = new TreeSet<>(); in parseAndFlattenRegionExpression()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java121 … private static CacheBase<String, String, Void> nameCache = new SoftCache<String, String, Void>() {
123 protected String createInstance(String tmpLocaleID, Void unused) {
323 private static final String EMPTY_STRING = "";
332 private static final String LOCALE_ATTRIBUTE_KEY = "attribute";
373 private String localeID;
387 private static String[][] CANONICALIZE_MAP = {
411 private ULocale(String localeID, Locale locale) { in ULocale()
449 public ULocale(String localeID) { in ULocale()
459 public ULocale(String a, String b) { in ULocale()
483 public ULocale(String a, String b, String c) { in ULocale()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/message2/
DArgs.java22 public static final Map<String, Object> NONE = new HashMap<>();
24 public static Map<String, Object> of( in of()
25 String argName0, Object argValue0) { in of()
26 Map<String, Object> result = new HashMap<>(); in of()
31 public static Map<String, Object> of( in of()
32 String argName0, Object argValue0, in of()
33 String argName1, Object argValue1) { in of()
34 Map<String, Object> result = new HashMap<>(); in of()
40 public static Map<String, Object> of( in of()
41 String argName0, Object argValue0, in of()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DKeyTypeData.java37 …abstract boolean isWellFormed(String value); // doesn't test validity, just whether it is well for… in isWellFormed()
38 String canonicalize(String value) { in canonicalize()
46 boolean isWellFormed(String value) { in isWellFormed()
54 boolean isWellFormed(String value) { in isWellFormed()
62 boolean isWellFormed(String value) { in isWellFormed()
70 boolean isWellFormed(String value) { in isWellFormed()
78 boolean isWellFormed(String value) { in isWellFormed()
86 boolean isWellFormed(String value) { in isWellFormed()
106 String legacyId;
107 String bcpId;
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
DKeyTypeData.java42 …abstract boolean isWellFormed(String value); // doesn't test validity, just whether it is well for… in isWellFormed()
43 String canonicalize(String value) { in canonicalize()
51 boolean isWellFormed(String value) { in isWellFormed()
59 boolean isWellFormed(String value) { in isWellFormed()
67 boolean isWellFormed(String value) { in isWellFormed()
75 boolean isWellFormed(String value) { in isWellFormed()
83 boolean isWellFormed(String value) { in isWellFormed()
102 String legacyId;
103 String bcpId;
104 Map<String, Type> typeMap;
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DULocale.java119 … private static CacheBase<String, String, Void> nameCache = new SoftCache<String, String, Void>() {
121 protected String createInstance(String tmpLocaleID, Void unused) {
301 private static final String EMPTY_STRING = "";
310 private static final String LOCALE_ATTRIBUTE_KEY = "attribute";
347 private String localeID;
361 private static String[][] CANONICALIZE_MAP = {
385 private ULocale(String localeID, Locale locale) { in ULocale()
421 public ULocale(String localeID) { in ULocale()
430 public ULocale(String a, String b) { in ULocale()
453 public ULocale(String a, String b, String c) { in ULocale()
[all …]
/third_party/libphonenumber/tools/java/data/test/com/google/i18n/phonenumbers/
DCombineGeoDataTest.java39 SortedMap<String, String> phonePrefixMap = new TreeMap<String, String>(); in createSortedPrefixArray()
45 String[] sortedPrefixes = CombineGeoData.createSortedPrefixArray(phonePrefixMap); in createSortedPrefixArray()
54 SortedMap<String, String> phonePrefixMap = new TreeMap<String, String>(); in findRangeEndFromStart()
59 String[] prefixes = CombineGeoData.createSortedPrefixArray(phonePrefixMap); in findRangeEndFromStart()
66 SortedMap<String, String> phonePrefixMap = new TreeMap<String, String>(); in findRangeEndFromMiddle()
72 String[] prefixes = CombineGeoData.createSortedPrefixArray(phonePrefixMap); in findRangeEndFromMiddle()
79 SortedMap<String, String> phonePrefixMap = new TreeMap<String, String>(); in findRangeEndWithSameLocationButDifferentPrefix()
85 String[] prefixes = CombineGeoData.createSortedPrefixArray(phonePrefixMap); in findRangeEndWithSameLocationButDifferentPrefix()
92 SortedMap<String, String> phonePrefixMap = new TreeMap<String, String>(); in createRanges()
99 String[] prefixes = CombineGeoData.createSortedPrefixArray(phonePrefixMap); in createRanges()
[all …]
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DRoundTripTest.java73 …static String KATAKANA = "[[[:katakana:][\u30A1-\u30FA\u30FC]]-[\u30FF\u31F0-\u31FF]-[:^age=5.2:]]…
74 …static String HIRAGANA = "[[[:hiragana:][\u3040-\u3094]]-[\u3095-\u3096\u309F-\u30A0\\U0001F200-\\…
75 static String LENGTH = "[\u30FC]";
76 static String HALFWIDTH_KATAKANA = "[\uFF65-\uFF9D]";
77 static String KATAKANA_ITERATION = "[\u30FD\u30FE]";
78 static String HIRAGANA_ITERATION = "[\u309D\u309E]";
111 public void showElapsed(long start, String name) { in showElapsed()
185 …private void assertRoundTripTransform(String message, String source, Transliterator lh, Transliter… in assertRoundTripTransform()
186 String to = hl.transform(source); in assertRoundTripTransform()
187 String back = lh.transform(to); in assertRoundTripTransform()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/
DRoundTripTest.java76 …static String KATAKANA = "[[[:katakana:][\u30A1-\u30FA\u30FC]]-[\u30FF\u31F0-\u31FF]-[:^age=5.2:]]…
77 …static String HIRAGANA = "[[[:hiragana:][\u3040-\u3094]]-[\u3095-\u3096\u309F-\u30A0\\U0001F200-\\…
78 static String LENGTH = "[\u30FC]";
79 static String HALFWIDTH_KATAKANA = "[\uFF65-\uFF9D]";
80 static String KATAKANA_ITERATION = "[\u30FD\u30FE]";
81 static String HIRAGANA_ITERATION = "[\u309D\u309E]";
126 public void showElapsed(long start, String name) { in showElapsed()
200 …private void assertRoundTripTransform(String message, String source, Transliterator lh, Transliter… in assertRoundTripTransform()
201 String to = hl.transform(source); in assertRoundTripTransform()
202 String back = lh.transform(to); in assertRoundTripTransform()
[all …]
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfSampleRuleSets.java63 public static final String usEnglish =
266 public static final String ukEnglish =
359 public static final String spanish =
418 public static final String french =
476 public static final String swissFrench =
518 public static final String german =
565 public static final String italian =
657 public static final String swedish =
685 public static final String dutch =
718 public static final String japanese =
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/tool/locale/
DLocaleDistanceBuilder.java40 private static final String ANY = "�"; // matches any character. Uses value above any subtag.
44 private static String fixAny(String string) { in fixAny()
48 private static ICUResourceBundle getSupplementalDataBundle(String name) { in getSupplementalDataBundle()
56 final Multimap<String, String> graph = TreeMultimap.create();
58 final Multimap<String, String> resolved = TreeMultimap.create();
60 final Multimap<String, String> toLeavesOnly = TreeMultimap.create();
62 final Set<String> leaves;
70 for (Map.Entry<String, Set<String>> entry : resolved.asMap().entrySet()) { in TerritoryContainment()
71 String container = entry.getKey(); in TerritoryContainment()
72 for (String contained : entry.getValue()) { in TerritoryContainment()
[all …]
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/locale/
DLocaleDistanceBuilder.java40 private static final String ANY = "�"; // matches any character. Uses value above any subtag.
44 private static String fixAny(String string) { in fixAny()
48 private static ICUResourceBundle getSupplementalDataBundle(String name) { in getSupplementalDataBundle()
56 final Multimap<String, String> graph = TreeMultimap.create();
58 final Multimap<String, String> resolved = TreeMultimap.create();
60 final Multimap<String, String> toLeavesOnly = TreeMultimap.create();
62 final Set<String> leaves;
70 for (Map.Entry<String, Set<String>> entry : resolved.asMap().entrySet()) { in TerritoryContainment()
71 String container = entry.getKey(); in TerritoryContainment()
72 for (String contained : entry.getValue()) { in TerritoryContainment()
[all …]
/third_party/node/deps/v8/src/runtime/
Druntime-strings.cc24 Handle<String> matched = args.at<String>(0); in RUNTIME_FUNCTION()
25 Handle<String> subject = args.at<String>(1); in RUNTIME_FUNCTION()
27 Handle<String> replacement = args.at<String>(3); in RUNTIME_FUNCTION()
31 class SimpleMatch : public String::Match { in RUNTIME_FUNCTION()
33 SimpleMatch(Handle<String> match, Handle<String> prefix, in RUNTIME_FUNCTION()
34 Handle<String> suffix) in RUNTIME_FUNCTION()
37 Handle<String> GetMatch() override { return match_; } in RUNTIME_FUNCTION()
38 Handle<String> GetPrefix() override { return prefix_; } in RUNTIME_FUNCTION()
39 Handle<String> GetSuffix() override { return suffix_; } in RUNTIME_FUNCTION()
43 MaybeHandle<String> GetCapture(int i, bool* capture_exists) override { in RUNTIME_FUNCTION()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUService.java98 protected final String name;
111 public ICUService(String name) { in ICUService()
153 private final String id;
158 public Key(String id) { in Key()
165 public final String id() { in id()
173 public String canonicalID() { in canonicalID()
181 public String currentID() { in currentID()
194 public String currentDescriptor() { in currentDescriptor()
213 public boolean isFallbackOf(String idToCheck) { in isFallbackOf()
249 public void updateVisibleIDs(Map<String, Factory> result); in updateVisibleIDs() argument
[all …]
DZoneMeta.java47 private static final String ZONEINFORESNAME = "zoneinfo64";
48 private static final String kREGIONS = "Regions";
49 private static final String kZONES = "Zones";
50 private static final String kNAMES = "Names";
52 private static final String kGMT_ID = "GMT";
53 private static final String kCUSTOM_TZ_PREFIX = "GMT";
55 private static final String kWorld = "001";
57 private static SoftReference<Set<String>> REF_SYSTEM_ZONES;
58 private static SoftReference<Set<String>> REF_CANONICAL_SYSTEM_ZONES;
59 private static SoftReference<Set<String>> REF_CANONICAL_SYSTEM_LOCATION_ZONES;
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DICUService.java100 protected final String name;
113 public ICUService(String name) { in ICUService()
156 private final String id;
161 public Key(String id) { in Key()
168 public final String id() { in id()
176 public String canonicalID() { in canonicalID()
184 public String currentID() { in currentID()
197 public String currentDescriptor() { in currentDescriptor()
216 public boolean isFallbackOf(String idToCheck) { in isFallbackOf()
253 public void updateVisibleIDs(Map<String, Factory> result); in updateVisibleIDs() argument
[all …]
DZoneMeta.java48 private static final String ZONEINFORESNAME = "zoneinfo64";
49 private static final String kREGIONS = "Regions";
50 private static final String kZONES = "Zones";
51 private static final String kNAMES = "Names";
53 private static final String kGMT_ID = "GMT";
54 private static final String kCUSTOM_TZ_PREFIX = "GMT";
56 private static final String kWorld = "001";
58 private static SoftReference<Set<String>> REF_SYSTEM_ZONES;
59 private static SoftReference<Set<String>> REF_CANONICAL_SYSTEM_ZONES;
60 private static SoftReference<Set<String>> REF_CANONICAL_SYSTEM_LOCATION_ZONES;
[all …]

12345678910>>...202