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

U_STABLE UDataMemory* U_EXPORT2 udata_open ( const char *  path,
const char *  type,
const char *  name,
UErrorCode pErrorCode 

Convenience function. This function works the same as udata_openChoice except that any data that matches the type and name is assumed to be acceptable.

path Specifies an absolute path and/or a basename for the finding of the data in the file system. NULL for ICU data.
type A string that specifies the type of data to be loaded. For example, resource bundles are loaded with type "res", conversion tables with type "cnv". This may be NULL or empty.
name A string that specifies the name of the data.
pErrorCode An ICU UErrorCode parameter. It must not be NULL.
A pointer (handle) to a data memory object, or NULL if an error occurs. Call udata_getMemory() to get a pointer to the actual data.
See also:
udata_openChoice ICU 2.0

Definition at line 1471 of file udata.c.


  fprintf(stderr, "udata_open(): Opening: %s : %s . %s\n", (path?path:"NULL"), name, type);

    if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
        return NULL;
    } else if(name==NULL || *name==0) {
        return NULL;
    } else {
        return doOpenChoice(path, type, name, NULL, NULL, pErrorCode);

Generated by  Doxygen 1.6.0   Back to index