| Index: source/io/unicode/ustdio.h
|
| diff --git a/source/io/unicode/ustdio.h b/source/io/unicode/ustdio.h
|
| index e29ad22b49654ebf7dfb47686c2a8cdbaa1afa51..16bcf35eecffeec3d50e154b6d109ab33bbc5137 100644
|
| --- a/source/io/unicode/ustdio.h
|
| +++ b/source/io/unicode/ustdio.h
|
| @@ -1,7 +1,7 @@
|
| /*
|
| ******************************************************************************
|
| *
|
| -* Copyright (C) 1998-2013, International Business Machines
|
| +* Copyright (C) 1998-2014, International Business Machines
|
| * Corporation and others. All Rights Reserved.
|
| *
|
| ******************************************************************************
|
| @@ -31,6 +31,8 @@
|
| #include "unicode/localpointer.h"
|
| #include "unicode/unum.h"
|
|
|
| +#if !UCONFIG_NO_CONVERSION
|
| +
|
| /*
|
| TODO
|
| The following is a small list as to what is currently wrong/suggestions for
|
| @@ -241,6 +243,31 @@ u_fopen(const char *filename,
|
| const char *locale,
|
| const char *codepage);
|
|
|
| +#ifndef U_HIDE_DRAFT_API
|
| +/**
|
| + * Open a UFILE with a UChar* filename
|
| + * A UFILE is a wrapper around a FILE* that is locale and codepage aware.
|
| + * That is, data written to a UFILE will be formatted using the conventions
|
| + * specified by that UFILE's Locale; this data will be in the character set
|
| + * specified by that UFILE's codepage.
|
| + * @param filename The name of the file to open.
|
| + * @param perm The read/write permission for the UFILE; one of "r", "w", "rw"
|
| + * @param locale The locale whose conventions will be used to format
|
| + * and parse output. If this parameter is NULL, the default locale will
|
| + * be used.
|
| + * @param codepage The codepage in which data will be written to and
|
| + * read from the file. If this paramter is NULL the system default codepage
|
| + * will be used.
|
| + * @return A new UFILE, or NULL if an error occurred.
|
| + * @draft ICU 54
|
| + */
|
| +U_DRAFT UFILE* U_EXPORT2
|
| +u_fopen_u(const UChar *filename,
|
| + const char *perm,
|
| + const char *locale,
|
| + const char *codepage);
|
| +#endif /* U_HIDE_DRAFT_API */
|
| +
|
| /**
|
| * Open a UFILE on top of an existing FILE* stream. The FILE* stream
|
| * ownership remains with the caller. To have the UFILE take over
|
| @@ -439,15 +466,13 @@ u_fsetcodepage(const char *codepage,
|
| U_STABLE UConverter* U_EXPORT2 u_fgetConverter(UFILE *f);
|
|
|
| #if !UCONFIG_NO_FORMATTING
|
| -#ifndef U_HIDE_DRAFT_API
|
| /**
|
| * Returns an alias to the number formatter being used for this file.
|
| * @param f The UFILE to get the value from
|
| * @return alias to the number formatter (The formatter <EM>must not</EM> be modified or closed)
|
| - * @draft ICU 51
|
| + * @stable ICU 51
|
| */
|
| - U_DRAFT const UNumberFormat* U_EXPORT2 u_fgetNumberFormat(UFILE *f);
|
| -#endif /* U_HIDE_DRAFT_API */
|
| + U_STABLE const UNumberFormat* U_EXPORT2 u_fgetNumberFormat(UFILE *f);
|
|
|
| /* Output functions */
|
|
|
| @@ -985,6 +1010,8 @@ u_vsscanf_u(const UChar *buffer,
|
| const UChar *patternSpecification,
|
| va_list ap);
|
|
|
| +
|
| +#endif
|
| #endif
|
| #endif
|
|
|
|
|