| OLD | NEW |
| 1 /* | 1 /* |
| 2 ****************************************************************************** | 2 ****************************************************************************** |
| 3 * | 3 * |
| 4 * Copyright (C) 1998-2014, International Business Machines | 4 * Copyright (C) 1998-2015, International Business Machines |
| 5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
| 6 * | 6 * |
| 7 ****************************************************************************** | 7 ****************************************************************************** |
| 8 * | 8 * |
| 9 * File ustdio.h | 9 * File ustdio.h |
| 10 * | 10 * |
| 11 * Modification History: | 11 * Modification History: |
| 12 * | 12 * |
| 13 * Date Name Description | 13 * Date Name Description |
| 14 * 10/16/98 stephen Creation. | 14 * 10/16/98 stephen Creation. |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 * will be used. | 236 * will be used. |
| 237 * @return A new UFILE, or NULL if an error occurred. | 237 * @return A new UFILE, or NULL if an error occurred. |
| 238 * @stable ICU 3.0 | 238 * @stable ICU 3.0 |
| 239 */ | 239 */ |
| 240 U_STABLE UFILE* U_EXPORT2 | 240 U_STABLE UFILE* U_EXPORT2 |
| 241 u_fopen(const char *filename, | 241 u_fopen(const char *filename, |
| 242 const char *perm, | 242 const char *perm, |
| 243 const char *locale, | 243 const char *locale, |
| 244 const char *codepage); | 244 const char *codepage); |
| 245 | 245 |
| 246 #ifndef U_HIDE_DRAFT_API | |
| 247 /** | 246 /** |
| 248 * Open a UFILE with a UChar* filename | 247 * Open a UFILE with a UChar* filename |
| 249 * A UFILE is a wrapper around a FILE* that is locale and codepage aware. | 248 * A UFILE is a wrapper around a FILE* that is locale and codepage aware. |
| 250 * That is, data written to a UFILE will be formatted using the conventions | 249 * That is, data written to a UFILE will be formatted using the conventions |
| 251 * specified by that UFILE's Locale; this data will be in the character set | 250 * specified by that UFILE's Locale; this data will be in the character set |
| 252 * specified by that UFILE's codepage. | 251 * specified by that UFILE's codepage. |
| 253 * @param filename The name of the file to open. | 252 * @param filename The name of the file to open. |
| 254 * @param perm The read/write permission for the UFILE; one of "r", "w", "rw" | 253 * @param perm The read/write permission for the UFILE; one of "r", "w", "rw" |
| 255 * @param locale The locale whose conventions will be used to format | 254 * @param locale The locale whose conventions will be used to format |
| 256 * and parse output. If this parameter is NULL, the default locale will | 255 * and parse output. If this parameter is NULL, the default locale will |
| 257 * be used. | 256 * be used. |
| 258 * @param codepage The codepage in which data will be written to and | 257 * @param codepage The codepage in which data will be written to and |
| 259 * read from the file. If this paramter is NULL the system default codepage | 258 * read from the file. If this paramter is NULL the system default codepage |
| 260 * will be used. | 259 * will be used. |
| 261 * @return A new UFILE, or NULL if an error occurred. | 260 * @return A new UFILE, or NULL if an error occurred. |
| 262 * @draft ICU 54 | 261 * @stable ICU 54 |
| 263 */ | 262 */ |
| 264 U_DRAFT UFILE* U_EXPORT2 | 263 U_STABLE UFILE* U_EXPORT2 |
| 265 u_fopen_u(const UChar *filename, | 264 u_fopen_u(const UChar *filename, |
| 266 const char *perm, | 265 const char *perm, |
| 267 const char *locale, | 266 const char *locale, |
| 268 const char *codepage); | 267 const char *codepage); |
| 269 #endif /* U_HIDE_DRAFT_API */ | |
| 270 | 268 |
| 271 /** | 269 /** |
| 272 * Open a UFILE on top of an existing FILE* stream. The FILE* stream | 270 * Open a UFILE on top of an existing FILE* stream. The FILE* stream |
| 273 * ownership remains with the caller. To have the UFILE take over | 271 * ownership remains with the caller. To have the UFILE take over |
| 274 * ownership and responsibility for the FILE* stream, use the | 272 * ownership and responsibility for the FILE* stream, use the |
| 275 * function u_fadopt. | 273 * function u_fadopt. |
| 276 * @param f The FILE* to which this UFILE will attach and use. | 274 * @param f The FILE* to which this UFILE will attach and use. |
| 277 * @param locale The locale whose conventions will be used to format | 275 * @param locale The locale whose conventions will be used to format |
| 278 * and parse output. If this parameter is NULL, the default locale will | 276 * and parse output. If this parameter is NULL, the default locale will |
| 279 * be used. | 277 * be used. |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 u_vsscanf_u(const UChar *buffer, | 1007 u_vsscanf_u(const UChar *buffer, |
| 1010 const UChar *patternSpecification, | 1008 const UChar *patternSpecification, |
| 1011 va_list ap); | 1009 va_list ap); |
| 1012 | 1010 |
| 1013 | 1011 |
| 1014 #endif | 1012 #endif |
| 1015 #endif | 1013 #endif |
| 1016 #endif | 1014 #endif |
| 1017 | 1015 |
| 1018 | 1016 |
| OLD | NEW |