Home
last modified time | relevance | path

Searched refs:UResourceBundle (Results 1 – 25 of 235) sorted by relevance

12345678910

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DResourceModule.java21 import android.icu.util.UResourceBundle;
75 UResourceBundle res;
76 UResourceBundle info;
77 UResourceBundle defaultHeader;
78 UResourceBundle testData;
82 res = (UResourceBundle) UResourceBundle.getBundleInstance(baseName, localeName, in ResourceModule()
84 info = getFromTable(res, INFO, UResourceBundle.TABLE); in ResourceModule()
85 testData = getFromTable(res, TEST_DATA, UResourceBundle.TABLE); in ResourceModule()
89 …defaultHeader = getFromTable(info, HEADER, new int[]{UResourceBundle.ARRAY, UResourceBundle.STRING… in ResourceModule()
109 protected Object prepareNext(UResourceBundle nextRes) throws DataModuleFormatError { in getTestDataIterator()
[all …]
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DResourceModule.java20 import com.ibm.icu.util.UResourceBundle;
74 UResourceBundle res;
75 UResourceBundle info;
76 UResourceBundle defaultHeader;
77 UResourceBundle testData;
81 res = (UResourceBundle) UResourceBundle.getBundleInstance(baseName, localeName, in ResourceModule()
83 info = getFromTable(res, INFO, UResourceBundle.TABLE); in ResourceModule()
84 testData = getFromTable(res, TEST_DATA, UResourceBundle.TABLE); in ResourceModule()
88 …defaultHeader = getFromTable(info, HEADER, new int[]{UResourceBundle.ARRAY, UResourceBundle.STRING… in ResourceModule()
108 protected Object prepareNext(UResourceBundle nextRes) throws DataModuleFormatError { in getTestDataIterator()
[all …]
/external/icu/icu4c/source/common/unicode/
Dures.h54 struct UResourceBundle;
59 typedef struct UResourceBundle UResourceBundle; typedef
166 U_STABLE UResourceBundle* U_EXPORT2
189 U_STABLE UResourceBundle* U_EXPORT2
212 U_STABLE UResourceBundle* U_EXPORT2
235 ures_countArrayItems(const UResourceBundle* resourceBundle,
249 ures_close(UResourceBundle* resourceBundle);
264 U_DEFINE_LOCAL_OPEN_POINTER(LocalUResourceBundlePointer, UResourceBundle, ures_close);
282 ures_getVersionNumber(const UResourceBundle* resourceBundle);
295 ures_getVersion(const UResourceBundle* resB,
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DICUResourceBundleTest.java39 import com.ibm.icu.util.UResourceBundle;
94UResourceBundle bundle = UResourceBundle.getBundleInstance("com.ibm.icu.impl.data.HolidayBundle", … in TestResourceBundleWrapper()
102 bundle = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "bogus"); in TestResourceBundleWrapper()
103 if(bundle instanceof UResourceBundle && bundle.getULocale().getName().equals("en_US")){ in TestResourceBundleWrapper()
110 bundle = UResourceBundle.getBundleInstance("bogus", "bogus"); in TestResourceBundleWrapper()
125UResourceBundle bundle = UResourceBundle.getBundleInstance("com/ibm/icu/dev/data/testdata", ULocal… in TestJB3879()
136UResourceBundle bundle = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "en_US_POSIX"); in TestOpen()
142 UResourceBundle obj = bundle.get("NumberElements").get("latn").get("patterns"); in TestOpen()
146 if(type == UResourceBundle.TABLE){ in TestOpen()
147 UResourceBundle sub; in TestOpen()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DICUResourceBundleTest.java40 import android.icu.util.UResourceBundle;
97UResourceBundle bundle = UResourceBundle.getBundleInstance("android.icu.impl.data.HolidayBundle", … in TestResourceBundleWrapper()
105 bundle = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "bogus"); in TestResourceBundleWrapper()
106 if(bundle instanceof UResourceBundle && bundle.getULocale().getName().equals("en_US")){ in TestResourceBundleWrapper()
113 bundle = UResourceBundle.getBundleInstance("bogus", "bogus"); in TestResourceBundleWrapper()
128UResourceBundle bundle = UResourceBundle.getBundleInstance("android/icu/dev/data/testdata", ULocal… in TestJB3879()
139UResourceBundle bundle = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "en_US_POSIX"); in TestOpen()
145 UResourceBundle obj = bundle.get("NumberElements").get("latn").get("patterns"); in TestOpen()
149 if(type == UResourceBundle.TABLE){ in TestOpen()
150 UResourceBundle sub; in TestOpen()
[all …]
/external/icu/icu4c/source/common/
Duresimp.h63 struct UResourceBundle { struct
83 U_CAPI void U_EXPORT2 ures_initStackObject(UResourceBundle* resB);
93 U_CAPI UResourceBundle* U_EXPORT2
97 U_CFUNC const char* ures_getName(const UResourceBundle* resB);
99 U_CFUNC const char* ures_getPath(const UResourceBundle* resB);
111 U_CFUNC UResourceBundle *ures_copyResb(UResourceBundle *r, const UResourceBundle *original, UErrorC…
128 U_CAPI UResourceBundle* U_EXPORT2
130 UResourceBundle *fillIn, UErrorCode *status);
147 U_CAPI UResourceBundle* U_EXPORT2
148 ures_findSubResource(const UResourceBundle *resB,
[all …]
Duresbund.cpp108 static const ResourceData *getFallbackData(const UResourceBundle* resBundle, const char* * resTag, … in getFallbackData()
490 static void ures_setIsStackObject( UResourceBundle* resB, UBool state) { in ures_setIsStackObject()
500 static UBool ures_isStackObject(const UResourceBundle* resB) { in ures_isStackObject()
505 U_CFUNC void ures_initStackObject(UResourceBundle* resB) { in ures_initStackObject()
506 uprv_memset(resB, 0, sizeof(UResourceBundle)); in ures_initStackObject()
846 static void ures_appendResPath(UResourceBundle *resB, const char* toAdd, int32_t lenToAdd, UErrorCo… in ures_appendResPath()
876 static void ures_freeResPath(UResourceBundle *resB) { in ures_freeResPath()
885 ures_closeBundle(UResourceBundle* resB, UBool freeBundleObj) in ures_closeBundle()
902 uprv_memset(resB, -1, sizeof(UResourceBundle)); in ures_closeBundle()
909 ures_close(UResourceBundle* resB) in ures_close()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DUResourceBundle.java95 public abstract class UResourceBundle extends ResourceBundle { class
109 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance()
126 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance()
147 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance()
158 public UResourceBundle() { in UResourceBundle() method in UResourceBundle
169 public static UResourceBundle getBundleInstance(ULocale locale) { in getBundleInstance()
185 public static UResourceBundle getBundleInstance(String baseName) { in getBundleInstance()
205 public static UResourceBundle getBundleInstance(String baseName, Locale locale) { in getBundleInstance()
225 public static UResourceBundle getBundleInstance(String baseName, ULocale locale) { in getBundleInstance()
247 public static UResourceBundle getBundleInstance(String baseName, Locale locale, in getBundleInstance()
[all …]
DLocaleData.java227 … ld.bundle = (ICUResourceBundle)UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, locale); in getInstance()
228 …ld.langBundle = (ICUResourceBundle)UResourceBundle.getBundleInstance(ICUData.ICU_LANG_BASE_NAME, l… in getInstance()
300 …private static UResourceBundle measurementTypeBundleForLocale(ULocale locale, String measurementTy… in measurementTypeBundleForLocale()
302 UResourceBundle measTypeBundle = null; in measurementTypeBundleForLocale()
305 UResourceBundle rb = UResourceBundle.getBundleInstance( in measurementTypeBundleForLocale()
309 UResourceBundle measurementData = rb.get("measurementData"); in measurementTypeBundleForLocale()
310 UResourceBundle measDataBundle = null; in measurementTypeBundleForLocale()
361 UResourceBundle sysBundle = measurementTypeBundleForLocale(locale, MEASUREMENT_SYSTEM); in getMeasurementSystem()
413 UResourceBundle obj = measurementTypeBundleForLocale(locale, PAPER_SIZE); in getPaperSize()
457UResourceBundle supplementalDataBundle = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, … in getCLDRVersion()
[all …]
DRegion.java159 UResourceBundle metadataAlias = null; in loadRegionData()
160 UResourceBundle territoryAlias = null; in loadRegionData()
161 UResourceBundle codeMappings = null; in loadRegionData()
162 UResourceBundle idValidity = null; in loadRegionData()
163 UResourceBundle regionList = null; in loadRegionData()
164 UResourceBundle regionRegular = null; in loadRegionData()
165 UResourceBundle regionMacro = null; in loadRegionData()
166 UResourceBundle regionUnknown = null; in loadRegionData()
167 UResourceBundle worldContainment = null; in loadRegionData()
168 UResourceBundle territoryContainment = null; in loadRegionData()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DUResourceBundle.java96 public abstract class UResourceBundle extends ResourceBundle { class
109 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance()
125 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance()
145 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance()
155 public UResourceBundle() { in UResourceBundle() method in UResourceBundle
165 public static UResourceBundle getBundleInstance(ULocale locale) { in getBundleInstance()
180 public static UResourceBundle getBundleInstance(String baseName) { in getBundleInstance()
199 public static UResourceBundle getBundleInstance(String baseName, Locale locale) { in getBundleInstance()
218 public static UResourceBundle getBundleInstance(String baseName, ULocale locale) { in getBundleInstance()
239 public static UResourceBundle getBundleInstance(String baseName, Locale locale, in getBundleInstance()
[all …]
DLocaleData.java225 … ld.bundle = (ICUResourceBundle)UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, locale); in getInstance()
226 …ld.langBundle = (ICUResourceBundle)UResourceBundle.getBundleInstance(ICUData.ICU_LANG_BASE_NAME, l… in getInstance()
294 …private static UResourceBundle measurementTypeBundleForLocale(ULocale locale, String measurementTy… in measurementTypeBundleForLocale()
296 UResourceBundle measTypeBundle = null; in measurementTypeBundleForLocale()
299 UResourceBundle rb = UResourceBundle.getBundleInstance( in measurementTypeBundleForLocale()
303 UResourceBundle measurementData = rb.get("measurementData"); in measurementTypeBundleForLocale()
304 UResourceBundle measDataBundle = null; in measurementTypeBundleForLocale()
350 UResourceBundle sysBundle = measurementTypeBundleForLocale(locale, MEASUREMENT_SYSTEM); in getMeasurementSystem()
398 UResourceBundle obj = measurementTypeBundleForLocale(locale, PAPER_SIZE); in getPaperSize()
441UResourceBundle supplementalDataBundle = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, … in getCLDRVersion()
[all …]
DRegion.java151 UResourceBundle metadataAlias = null; in loadRegionData()
152 UResourceBundle territoryAlias = null; in loadRegionData()
153 UResourceBundle codeMappings = null; in loadRegionData()
154 UResourceBundle idValidity = null; in loadRegionData()
155 UResourceBundle regionList = null; in loadRegionData()
156 UResourceBundle regionRegular = null; in loadRegionData()
157 UResourceBundle regionMacro = null; in loadRegionData()
158 UResourceBundle regionUnknown = null; in loadRegionData()
159 UResourceBundle worldContainment = null; in loadRegionData()
160 UResourceBundle territoryContainment = null; in loadRegionData()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DZoneMeta.java28 import com.ibm.icu.util.UResourceBundle;
224 UResourceBundle res = openOlsonResource(null, id); in countEquivalentIDs()
227 UResourceBundle links = res.get("links"); in countEquivalentIDs()
258 UResourceBundle res = openOlsonResource(null, id); in getEquivalentID()
262 UResourceBundle links = res.get("links"); in getEquivalentID()
289 UResourceBundle top = UResourceBundle.getBundleInstance( in getZoneIDs()
369UResourceBundle top = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, in getCanonicalCLDRID()
371 UResourceBundle zones = top.get(kZONES); in getCanonicalCLDRID()
372 UResourceBundle zone = zones.get(zoneIdx); in getCanonicalCLDRID()
373 if (zone.getType() == UResourceBundle.INT) { in getCanonicalCLDRID()
[all …]
DICUResourceBundleImpl.java16 import com.ibm.icu.util.UResourceBundle;
36 UResourceBundle requested) { in createBundleObject()
158 …protected UResourceBundle createBundleObject(int index, String resKey, HashMap<String, String> ali… in createBundleObject()
159 UResourceBundle requested) { in createBundleObject()
198 protected UResourceBundle handleGet(String indexStr, HashMap<String, String> aliasesVisited, in handleGet()
199 UResourceBundle requested) { in handleGet()
204 protected UResourceBundle handleGet(int index, HashMap<String, String> aliasesVisited, in handleGet()
205 UResourceBundle requested) { in handleGet()
232 protected UResourceBundle handleGet(String resKey, HashMap<String, String> aliasesVisited, in handleGet()
233 UResourceBundle requested) { in handleGet()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DZoneMeta.java29 import android.icu.util.UResourceBundle;
225 UResourceBundle res = openOlsonResource(null, id); in countEquivalentIDs()
228 UResourceBundle links = res.get("links"); in countEquivalentIDs()
259 UResourceBundle res = openOlsonResource(null, id); in getEquivalentID()
263 UResourceBundle links = res.get("links"); in getEquivalentID()
290 UResourceBundle top = UResourceBundle.getBundleInstance( in getZoneIDs()
370UResourceBundle top = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, in getCanonicalCLDRID()
372 UResourceBundle zones = top.get(kZONES); in getCanonicalCLDRID()
373 UResourceBundle zone = zones.get(zoneIdx); in getCanonicalCLDRID()
374 if (zone.getType() == UResourceBundle.INT) { in getCanonicalCLDRID()
[all …]
DICUResourceBundleImpl.java17 import android.icu.util.UResourceBundle;
37 UResourceBundle requested) { in createBundleObject()
159 …protected UResourceBundle createBundleObject(int index, String resKey, HashMap<String, String> ali… in createBundleObject()
160 UResourceBundle requested) { in createBundleObject()
199 protected UResourceBundle handleGet(String indexStr, HashMap<String, String> aliasesVisited, in handleGet()
200 UResourceBundle requested) { in handleGet()
205 protected UResourceBundle handleGet(int index, HashMap<String, String> aliasesVisited, in handleGet()
206 UResourceBundle requested) { in handleGet()
233 protected UResourceBundle handleGet(String resKey, HashMap<String, String> aliasesVisited, in handleGet()
234 UResourceBundle requested) { in handleGet()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationLoader.java28 import android.icu.util.UResourceBundle;
48 UResourceBundle rootBundle = UResourceBundle.getBundleInstance( in loadRootRules()
85 UResourceBundle bundle = UResourceBundle.getBundleInstance( in loadRules()
87 UResourceBundle data = ((ICUResourceBundle)bundle).getWithFallback( in loadRules()
93 private static final UResourceBundle findWithFallback(UResourceBundle table, String entryName) { in findWithFallback()
110 UResourceBundle bundle = null; in loadTailoring()
130 UResourceBundle collations; in loadTailoring()
161 UResourceBundle data = findWithFallback(collations, type); in loadTailoring()
204 UResourceBundle binary = data.get("%%CollationBin"); in loadTailoring()
233 UResourceBundle actualBundle = UResourceBundle.getBundleInstance( in loadTailoring()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationLoader.java27 import com.ibm.icu.util.UResourceBundle;
46 UResourceBundle rootBundle = UResourceBundle.getBundleInstance( in loadRootRules()
83 UResourceBundle bundle = UResourceBundle.getBundleInstance( in loadRules()
85 UResourceBundle data = ((ICUResourceBundle)bundle).getWithFallback( in loadRules()
91 private static final UResourceBundle findWithFallback(UResourceBundle table, String entryName) { in findWithFallback()
108 UResourceBundle bundle = null; in loadTailoring()
128 UResourceBundle collations; in loadTailoring()
159 UResourceBundle data = findWithFallback(collations, type); in loadTailoring()
202 UResourceBundle binary = data.get("%%CollationBin"); in loadTailoring()
231 UResourceBundle actualBundle = UResourceBundle.getBundleInstance( in loadTailoring()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNumberingSystem.java22 import com.ibm.icu.util.UResourceBundle;
174 … rb = (ICUResourceBundle)UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, locale); in lookupInstanceByLocale()
237UResourceBundle numberingSystemsInfo = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "n… in lookupInstanceByName()
238 UResourceBundle nsCurrent = numberingSystemsInfo.get("numberingSystems"); in lookupInstanceByName()
239 UResourceBundle nsTop = nsCurrent.get(name); in lookupInstanceByName()
242 UResourceBundle nsRadixBundle = nsTop.get("radix"); in lookupInstanceByName()
243 UResourceBundle nsAlgBundle = nsTop.get("algorithmic"); in lookupInstanceByName()
263UResourceBundle numberingSystemsInfo = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "n… in getAvailableNames()
264 UResourceBundle nsCurrent = numberingSystemsInfo.get("numberingSystems"); in getAvailableNames()
265 UResourceBundle temp; in getAvailableNames()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNumberingSystem.java23 import android.icu.util.UResourceBundle;
169 … rb = (ICUResourceBundle)UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, locale); in lookupInstanceByLocale()
230UResourceBundle numberingSystemsInfo = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "n… in lookupInstanceByName()
231 UResourceBundle nsCurrent = numberingSystemsInfo.get("numberingSystems"); in lookupInstanceByName()
232 UResourceBundle nsTop = nsCurrent.get(name); in lookupInstanceByName()
235 UResourceBundle nsRadixBundle = nsTop.get("radix"); in lookupInstanceByName()
236 UResourceBundle nsAlgBundle = nsTop.get("algorithmic"); in lookupInstanceByName()
255UResourceBundle numberingSystemsInfo = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "n… in getAvailableNames()
256 UResourceBundle nsCurrent = numberingSystemsInfo.get("numberingSystems"); in getAvailableNames()
257 UResourceBundle temp; in getAvailableNames()
/external/icu/icu4c/source/tools/ctestfw/unicode/
Dtestdata.h90 UResourceBundle *fData;
91 UResourceBundle *fHeaders;
92 UResourceBundle *fSettings;
93 UResourceBundle *fCases;
97 RBTestData(UResourceBundle *data, UResourceBundle *headers, UErrorCode& status);
/external/icu/icu4c/source/i18n/
Dulocdata.cpp44 UResourceBundle *bundle;
49 UResourceBundle *langBundle;
152 UResourceBundle *delimiterBundle; in ulocdata_getDelimiter()
194 static UResourceBundle * measurementTypeBundleForLocale(const char *localeID, const char *measureme… in measurementTypeBundleForLocale()
196 UResourceBundle *rb; in measurementTypeBundleForLocale()
197 UResourceBundle *measTypeBundle = NULL; in measurementTypeBundleForLocale()
204 UResourceBundle *measDataBundle = ures_getByKey(rb, region, NULL, status); in measurementTypeBundleForLocale()
225 UResourceBundle* measurement=NULL; in ulocdata_getMeasurementSystem()
243 UResourceBundle* paperSizeBundle = NULL; in ulocdata_getPaperSize()
269 UResourceBundle *rb = NULL; in ulocdata_getCLDRVersion()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DKeyTypeData.java25 import com.ibm.icu.util.UResourceBundle;
213 UResourceBundle keyTypeDataRes = UResourceBundle.getBundleInstance( in initFromResourceBundle()
221 UResourceBundle keyMapRes = keyTypeDataRes.get("keyMap"); in initFromResourceBundle()
222 UResourceBundle typeMapRes = keyTypeDataRes.get("typeMap"); in initFromResourceBundle()
225 UResourceBundle typeAliasRes = null; in initFromResourceBundle()
226 UResourceBundle bcpTypeAliasRes = null; in initFromResourceBundle()
245 UResourceBundle keyMapEntry = keyMapItr.next(); in initFromResourceBundle()
263 UResourceBundle typeAliasResByKey = null; in initFromResourceBundle()
273 UResourceBundle typeAliasDataEntry = typeAliasResItr.next(); in initFromResourceBundle()
292 UResourceBundle bcpTypeAliasResByKey = null; in initFromResourceBundle()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DKeyTypeData.java26 import android.icu.util.UResourceBundle;
215 UResourceBundle keyTypeDataRes = UResourceBundle.getBundleInstance( in initFromResourceBundle()
223 UResourceBundle keyMapRes = keyTypeDataRes.get("keyMap"); in initFromResourceBundle()
224 UResourceBundle typeMapRes = keyTypeDataRes.get("typeMap"); in initFromResourceBundle()
227 UResourceBundle typeAliasRes = null; in initFromResourceBundle()
228 UResourceBundle bcpTypeAliasRes = null; in initFromResourceBundle()
247 UResourceBundle keyMapEntry = keyMapItr.next(); in initFromResourceBundle()
265 UResourceBundle typeAliasResByKey = null; in initFromResourceBundle()
275 UResourceBundle typeAliasDataEntry = typeAliasResItr.next(); in initFromResourceBundle()
294 UResourceBundle bcpTypeAliasResByKey = null; in initFromResourceBundle()
[all …]

12345678910