comparison modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/common/uresimp.h @ 11348:6744f504e684

8231310: Add .jcheck/conf to jfx git repo Reviewed-by: prr, jvos
author kcr
date Tue, 01 Oct 2019 05:28:24 -0700
parents fee4ef5c87df
children
comparison
equal deleted inserted replaced
0:9f0b22eed507 1:60f4c16f8cdb
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
1 /* 3 /*
2 ********************************************************************** 4 **********************************************************************
3 * Copyright (C) 2000-2011, International Business Machines 5 * Copyright (C) 2000-2016, International Business Machines
4 * Corporation and others. All Rights Reserved. 6 * Corporation and others. All Rights Reserved.
5 ********************************************************************** 7 **********************************************************************
6 */ 8 */
7 9
8 #ifndef URESIMP_H 10 #ifndef URESIMP_H
29 31
30 #define URES_MAX_ALIAS_LEVEL 256 32 #define URES_MAX_ALIAS_LEVEL 256
31 #define URES_MAX_BUFFER_SIZE 256 33 #define URES_MAX_BUFFER_SIZE 256
32 34
33 #define EMPTY_SET 0x2205 35 #define EMPTY_SET 0x2205
34
35 /*
36 enum UResEntryType {
37 ENTRY_OK = 0,
38 ENTRY_GOTO_ROOT = 1,
39 ENTRY_GOTO_DEFAULT = 2,
40 ENTRY_INVALID = 3
41 };
42
43 typedef enum UResEntryType UResEntryType;
44 */
45 36
46 struct UResourceDataEntry; 37 struct UResourceDataEntry;
47 typedef struct UResourceDataEntry UResourceDataEntry; 38 typedef struct UResourceDataEntry UResourceDataEntry;
48 39
49 /* 40 /*
89 /*const UResourceBundle *fParentRes;*/ /* needed to get the actual locale for a child resource */ 80 /*const UResourceBundle *fParentRes;*/ /* needed to get the actual locale for a child resource */
90 }; 81 };
91 82
92 U_CAPI void U_EXPORT2 ures_initStackObject(UResourceBundle* resB); 83 U_CAPI void U_EXPORT2 ures_initStackObject(UResourceBundle* resB);
93 84
85 /**
86 * Opens a resource bundle for the locale;
87 * if there is not even a base language bundle, then loads the root bundle;
88 * never falls back to the default locale.
89 *
90 * This is used for algorithms that have good pan-Unicode default behavior,
91 * such as case mappings, collation, and segmentation (BreakIterator).
92 */
93 U_CAPI UResourceBundle* U_EXPORT2
94 ures_openNoDefault(const char* path, const char* localeID, UErrorCode* status);
95
94 /* Some getters used by the copy constructor */ 96 /* Some getters used by the copy constructor */
95 U_CFUNC const char* ures_getName(const UResourceBundle* resB); 97 U_CFUNC const char* ures_getName(const UResourceBundle* resB);
96 #ifdef URES_DEBUG 98 #ifdef URES_DEBUG
97 U_CFUNC const char* ures_getPath(const UResourceBundle* resB); 99 U_CFUNC const char* ures_getPath(const UResourceBundle* resB);
98 /** 100 /**
220 ures_getStringByKeyWithFallback(const UResourceBundle *resB, 222 ures_getStringByKeyWithFallback(const UResourceBundle *resB,
221 const char* inKey, 223 const char* inKey,
222 int32_t* len, 224 int32_t* len,
223 UErrorCode *status); 225 UErrorCode *status);
224 226
227 #ifdef __cplusplus
228
229 U_CAPI void U_EXPORT2
230 ures_getAllItemsWithFallback(const UResourceBundle *bundle, const char *path,
231 icu::ResourceSink &sink, UErrorCode &errorCode);
232
233 #endif /* __cplusplus */
234
225 /** 235 /**
226 * Get a version number by key 236 * Get a version number by key
227 * @param resB bundle containing version number 237 * @param resB bundle containing version number
228 * @param key the key for the version number 238 * @param key the key for the version number
229 * @param ver fillin for the version number 239 * @param ver fillin for the version number