Logo Search packages:      
Sourcecode: icu version File versions  Download package

ures.h File Reference

C API: Resource Bundle. More...

#include "unicode/utypes.h"
#include "unicode/uloc.h"
#include "unicode/localpointer.h"
Include dependency graph for ures.h:

Go to the source code of this file.

Typedefs

typedef struct UResourceBundle UResourceBundle

Enumerations

enum  UResType {
  URES_NONE = -1, URES_STRING = 0, URES_BINARY = 1, URES_TABLE = 2,
  URES_ALIAS = 3, URES_INT = 7, URES_ARRAY = 8, URES_INT_VECTOR = 14,
  RES_NONE = URES_NONE, RES_STRING = URES_STRING, RES_BINARY = URES_BINARY, RES_TABLE = URES_TABLE,
  RES_ALIAS = URES_ALIAS, RES_INT = URES_INT, RES_ARRAY = URES_ARRAY, RES_INT_VECTOR = URES_INT_VECTOR,
  RES_RESERVED = 15, URES_LIMIT = 16
}

Functions

U_STABLE void U_EXPORT2 ures_close (UResourceBundle *resourceBundle)
U_DEPRECATED int32_t U_EXPORT2 ures_countArrayItems (const UResourceBundle *resourceBundle, const char *resourceKey, UErrorCode *err)
U_STABLE const uint8_t *U_EXPORT2 ures_getBinary (const UResourceBundle *resourceBundle, int32_t *len, UErrorCode *status)
U_STABLE UResourceBundle *U_EXPORT2 ures_getByIndex (const UResourceBundle *resourceBundle, int32_t indexR, UResourceBundle *fillIn, UErrorCode *status)
U_STABLE UResourceBundle *U_EXPORT2 ures_getByKey (const UResourceBundle *resourceBundle, const char *key, UResourceBundle *fillIn, UErrorCode *status)
U_STABLE int32_t U_EXPORT2 ures_getInt (const UResourceBundle *resourceBundle, UErrorCode *status)
U_STABLE const int32_t *U_EXPORT2 ures_getIntVector (const UResourceBundle *resourceBundle, int32_t *len, UErrorCode *status)
U_STABLE const char *U_EXPORT2 ures_getKey (const UResourceBundle *resourceBundle)
U_DEPRECATED const char *U_EXPORT2 ures_getLocale (const UResourceBundle *resourceBundle, UErrorCode *status)
U_STABLE const char *U_EXPORT2 ures_getLocaleByType (const UResourceBundle *resourceBundle, ULocDataLocaleType type, UErrorCode *status)
U_STABLE UResourceBundle *U_EXPORT2 ures_getNextResource (UResourceBundle *resourceBundle, UResourceBundle *fillIn, UErrorCode *status)
U_STABLE const UChar *U_EXPORT2 ures_getNextString (UResourceBundle *resourceBundle, int32_t *len, const char **key, UErrorCode *status)
U_STABLE int32_t U_EXPORT2 ures_getSize (const UResourceBundle *resourceBundle)
U_STABLE const UChar *U_EXPORT2 ures_getString (const UResourceBundle *resourceBundle, int32_t *len, UErrorCode *status)
U_STABLE const UChar *U_EXPORT2 ures_getStringByIndex (const UResourceBundle *resourceBundle, int32_t indexS, int32_t *len, UErrorCode *status)
U_STABLE const UChar *U_EXPORT2 ures_getStringByKey (const UResourceBundle *resB, const char *key, int32_t *len, UErrorCode *status)
U_STABLE UResType U_EXPORT2 ures_getType (const UResourceBundle *resourceBundle)
U_STABLE uint32_t U_EXPORT2 ures_getUInt (const UResourceBundle *resourceBundle, UErrorCode *status)
U_STABLE const char *U_EXPORT2 ures_getUTF8String (const UResourceBundle *resB, char *dest, int32_t *length, UBool forceCopy, UErrorCode *status)
U_STABLE const char *U_EXPORT2 ures_getUTF8StringByIndex (const UResourceBundle *resB, int32_t stringIndex, char *dest, int32_t *pLength, UBool forceCopy, UErrorCode *status)
U_STABLE const char *U_EXPORT2 ures_getUTF8StringByKey (const UResourceBundle *resB, const char *key, char *dest, int32_t *pLength, UBool forceCopy, UErrorCode *status)
U_STABLE void U_EXPORT2 ures_getVersion (const UResourceBundle *resB, UVersionInfo versionInfo)
U_DEPRECATED const char *U_EXPORT2 ures_getVersionNumber (const UResourceBundle *resourceBundle)
U_STABLE UBool U_EXPORT2 ures_hasNext (const UResourceBundle *resourceBundle)
U_STABLE UResourceBundle *U_EXPORT2 ures_open (const char *packageName, const char *locale, UErrorCode *status)
U_STABLE UEnumeration *U_EXPORT2 ures_openAvailableLocales (const char *packageName, UErrorCode *status)
U_STABLE UResourceBundle *U_EXPORT2 ures_openDirect (const char *packageName, const char *locale, UErrorCode *status)
U_INTERNAL void U_EXPORT2 ures_openFillIn (UResourceBundle *r, const char *packageName, const char *localeID, UErrorCode *status)
U_STABLE UResourceBundle *U_EXPORT2 ures_openU (const UChar *packageName, const char *locale, UErrorCode *status)
U_STABLE void U_EXPORT2 ures_resetIterator (UResourceBundle *resourceBundle)

Detailed Description

C API: Resource Bundle.

C API: Resource Bundle

C API representing a collection of resource information pertaining to a given locale. A resource bundle provides a way of accessing locale- specific information in a data file. You create a resource bundle that manages the resources for a given locale and then ask it for individual resources.

Resource bundles in ICU4C are currently defined using text files which conform to the following BNF definition. More on resource bundle concepts and syntax can be found in the Users Guide.

Definition in file ures.h.


Generated by  Doxygen 1.6.0   Back to index