Home | History | Annotate | Download | only in common

Lines Matching defs:Resource

15 *   06/24/02    weiv        Added support for resource sharing
27 * Numeric constants for internal-only types of resource items.
36 /** Resource type constant for tables with 32-bit count, key offsets and values. */
40 * Resource type constant for tables with 16-bit count, key offsets and values.
45 /** Resource type constant for 16-bit Unicode strings in formatVersion 2. */
49 * Resource type constant for arrays with 16-bit count and values.
56 * A Resource is a 32-bit value that has 2 bit fields:
60 typedef uint32_t Resource;
68 /* get signed and unsigned integer values directly from the Resource handle */
76 #define URES_MAKE_RESOURCE(type, offset) (((Resource)(type)<<28)|(Resource)(offset))
77 #define URES_MAKE_EMPTY_RESOURCE(type) ((Resource)(type)<<28)
79 /* indexes[] value names; indexes are generally 32-bit (Resource) indexes */
104 * If set, then this resource bundle is a standalone bundle.
123 * File format for .res resource bundle files (formatVersion=2, ICU 4.4)
127 * Three new resource types -- String-v2, Table16 and Array16 -- have their
138 * It is allowed for all resource types to share values.
142 * A resource bundle may use a special pool bundle. Some or all of the table key strings
147 * Two bits in indexes[URES_INDEX_ATTRIBUTES] indicate whether a resource bundle
163 * An ICU4C resource bundle file (.res) is a binary, memory-mappable file
167 * Resource root; -- 32-bit Resource item, root item for this bundle's tree;
168 * currently, the root item must be a table or table32 resource item
179 * data is indexed by the offset values in 16-bit resource types,
186 * Each resource bundle item has a 32-bit Resource handle (see typedef above)
195 * array of 16-bit units. Each resource value is a sequence of 16-bit units,
196 * with no per-resource padding to a 4-byte boundary.
201 * - Empty Unicode strings have an offset value of 0 in the Resource handle itself.
203 * _any_ resource type indicates an empty value.
204 * - Integer values are 28-bit values stored in the Resource handle itself;
209 * start of the resource data (i.e., the root item handle is at offset 0).
211 * All resource item values are 4-aligned.
222 * The values of these pairs are either Resource handles or
225 * Array items are simple vectors of Resource handles,
230 * Key string offsets are relative to the start of the resource data (of the root handle),
234 * If the resource bundle uses a pool bundle, then some key strings are stored
249 * another resource bundle's item according to the path in the string.
256 * Resource types:
259 * of the resource data. These values are at least 4-aligned.
260 * Some resource values are stored directly in the offset field of the Resource itself.
261 * See UResType in unicode/ures.h for enumeration constants for Resource types.
277 * 2 Table: uint16_t count, uint16_t keyStringOffsets[count], (uint16_t padding), Resource[count]
279 * 4 Table32: int32_t count, int32_t keyStringOffsets[count], Resource[count]
291 * 8 Array: int32_t count, Resource[count]
312 Resource rootRes;
321 * Read a resource bundle from memory.
329 * Load a resource bundle file.
337 * Release a resource bundle file.
344 res_getPublicType(Resource res);
352 res_getString(const ResourceData *pResData, Resource res, int32_t *pLength);
355 res_getAlias(const ResourceData *pResData, Resource res, int32_t *pLength);
358 res_getBinary(const ResourceData *pResData, Resource res, int32_t *pLength);
361 res_getIntVector(const ResourceData *pResData, Resource res, int32_t *pLength);
363 U_INTERNAL Resource U_EXPORT2
367 res_countArrayItems(const ResourceData *pResData, Resource res);
369 U_INTERNAL Resource U_EXPORT2
370 res_getArrayItem(const ResourceData *pResData, Resource array, int32_t indexS);
372 U_INTERNAL Resource U_EXPORT2
373 res_getTableItemByIndex(const ResourceData *pResData, Resource table, int32_t indexS, const char ** key);
375 U_INTERNAL Resource U_EXPORT2
376 res_getTableItemByKey(const ResourceData *pResData, Resource table, int32_t *indexS, const char* * key);
382 U_CFUNC Resource res_findResource(const ResourceData *pResData, Resource r, char** path, const char** key);
385 * Swap an ICU resource bundle. See udataswp.h.