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

U_STABLE const char* U_EXPORT2 u_fgetcodepage ( UFILE file  ) 

Get the codepage in which data is written to and read from the UFILE. This is the same codepage passed in the preceding call to u_fsetcodepage or u_fopen.

Parameters:
file The UFILE to query.
Returns:
The codepage in which data is written to and read from the UFILE, or NULL if an error occurred. ICU 3.0

Definition at line 273 of file ufile.c.

References NULL, U_FAILURE, and U_ZERO_ERROR.

{
    UErrorCode     status = U_ZERO_ERROR;
    const char     *codepage = NULL;

    if (file->fConverter) {
        codepage = ucnv_getName(file->fConverter, &status);
        if(U_FAILURE(status))
            return 0;
    }
    return codepage;
}


Generated by  Doxygen 1.6.0   Back to index