diff --git a/icu4c/source/extra/ustdio/ustdio.h b/icu4c/source/extra/ustdio/ustdio.h index 3323db28f8f..6e59242fc18 100644 --- a/icu4c/source/extra/ustdio/ustdio.h +++ b/icu4c/source/extra/ustdio/ustdio.h @@ -28,11 +28,14 @@ #include #include "utypes.h" +#include /** Forward declaration of a Unicode-aware file */ typedef struct UFILE UFILE; + + /** * Open a UFILE. * A UFILE is a wrapper around a FILE* that is locale and codepage aware. @@ -136,6 +139,13 @@ u_fsetcodepage(const char *codepage, UFILE *file); +/** + * Returns an alias to the converter being used for this file. + * @param file The UFILE to set. + * @return alias to the converter + */ +CAPI UConverter *u_fgetConverter(UFILE *f); + /* Output functions */ /**