Home | History | Annotate | Download | only in unicode

Lines Matching defs:UFILE

39  * Each UFILE takes up at least 2KB.
78 * Make sure that a UFile opened with "rw" can be used after using
188 UFILE *out = u_finit(stdout, NULL, NULL);
207 typedef struct UFILE UFILE;
221 * Open a UFILE.
222 * A UFILE is a wrapper around a FILE* that is locale and codepage aware.
223 * That is, data written to a UFILE will be formatted using the conventions
224 * specified by that UFILE's Locale; this data will be in the character set
225 * specified by that UFILE's codepage.
227 * @param perm The read/write permission for the UFILE; one of "r", "w", "rw"
234 * @return A new UFILE, or NULL if an error occurred.
237 U_STABLE UFILE* U_EXPORT2
244 * Open a UFILE on top of an existing FILE* stream. The FILE* stream
245 * ownership remains with the caller. To have the UFILE take over
248 * @param f The FILE* to which this UFILE will attach and use.
256 * @return A new UFILE, or NULL if an error occurred.
259 U_STABLE UFILE* U_EXPORT2
265 * Open a UFILE on top of an existing FILE* stream. The FILE* stream
266 * ownership is transferred to the new UFILE. It will be closed when the
267 * UFILE is closed.
268 * @param f The FILE* which this UFILE will take ownership of.
276 * @return A new UFILE, or NULL if an error occurred. If an error occurs
280 U_STABLE UFILE* U_EXPORT2
286 * Create a UFILE that can be used for localized formatting or parsing.
288 * specific locale. The ustdio.h file functions can be used on this UFILE.
290 * returned UFILE.
296 * @return A new UFILE, or NULL if an error occurred.
299 U_STABLE UFILE* U_EXPORT2
305 * Close a UFILE. Implies u_fflush first.
306 * @param file The UFILE to close.
311 u_fclose(UFILE *file);
319 * "Smart pointer" class, closes a UFILE via u_fclose().
326 U_DEFINE_LOCAL_OPEN_POINTER(LocalUFILEPointer, UFILE, u_fclose);
333 * Tests if the UFILE is at the end of the file stream.
334 * @param f The UFILE from which to read.
341 u_feof(UFILE *f);
344 * Flush output of a UFILE. Implies a flush of
350 * @param file The UFILE to flush.
354 u_fflush(UFILE *file);
358 * @param file The UFILE to rewind.
362 u_frewind(UFILE *file);
365 * Get the FILE* associated with a UFILE.
366 UFILE
367 * @return A FILE*, owned by the UFILE. The FILE <EM>must not</EM> be closed.
371 u_fgetfile(UFILE *f);
379 * @param file The UFILE to set.
384 u_fgetlocale(UFILE *file);
390 * @param file The UFILE to query.
395 u_fsetlocale(UFILE *file,
401 * Get the codepage in which data is written to and read from the UFILE.
404 * @param file The UFILE to query.
405 * @return The codepage in which data is written to and read from the UFILE,
410 u_fgetcodepage(UFILE *file);
413 * Set the codepage in which data will be written to and read from the UFILE.
414 * All Unicode data written to the UFILE will be converted to this codepage
417 * after opening the <TT>UFile</TT>, or after calling <TT>u_frewind</TT>.
420 * A value of NULL means the default codepage for the UFILE's current
422 * @param file The UFILE to set.
429 UFILE *file);
434 * @param f The UFILE to get the value from
438 U_STABLE UConverter* U_EXPORT2 u_fgetConverter(UFILE *f);
456 * Write formatted data to a UFILE.
457 * @param f The UFILE to which to write.
464 u_fprintf(UFILE *f,
469 * Write formatted data to a UFILE.
472 * @param f The UFILE to which to write.
481 u_vfprintf(UFILE *f,
497 * Get a UFILE for <TT>stdout</TT>.
498 * @return UFILE that writes to <TT>stdout</TT>
501 U_DRAFT UFILE * U_EXPORT2
505 * Write formatted data to a UFILE.
506 * @param f The UFILE to which to write.
513 u_fprintf_u(UFILE *f,
518 * Write formatted data to a UFILE.
521 * @param f The UFILE to which to write.
530 u_vfprintf_u(UFILE *f,
535 * Write a Unicode to a UFILE. The null (U+0000) terminated UChar*
539 * @param f The UFILE to which to write.
546 UFILE *f);
549 * Write a UChar to a UFILE.
551 * @param f The UFILE to which to write.
557 UFILE *f);
560 * Write Unicode to a UFILE.
561 * The ustring passed in will be converted to the UFILE's underlying
565 * @param f The UFILE to which to write.
573 UFILE *f);
580 * Read formatted data from a UFILE.
581 * @param f The UFILE from which to read.
589 u_fscanf(UFILE *f,
594 * Read formatted data from a UFILE.
597 * @param f The UFILE from which to read.
607 u_vfscanf(UFILE *f,
612 * Read formatted data from a UFILE.
613 * @param f The UFILE from which to read.
621 u_fscanf_u(UFILE *f,
626 * Read formatted data from a UFILE.
629 * @param f The UFILE from which to read.
639 u_vfscanf_u(UFILE *f,
645 * Read one line of text into a UChar* string from a UFILE. The newline
648 * @param f The UFILE from which to read.
659 UFILE *f);
662 * Read a UChar from a UFILE. It is recommended that <TT>u_fgetcx</TT>
666 * @param f The UFILE from which to read.
671 u_fgetc(UFILE *f);
674 * Read a UChar32 from a UFILE.
676 * @param f The UFILE from which to read.
684 u_fgetcx(UFILE *f);
687 * Unget a UChar from a UFILE.
693 * @param f The UFILE to receive <TT>c</TT>.
699 UFILE *f);
702 * Read Unicode from a UFILE.
703 * Bytes will be converted from the UFILE's underlying codepage, with
707 * @param f The UFILE from which to read.
714 UFILE *f);
719 * Set a transliterator on the UFILE. The transliterator will be owned by the
720 * UFILE.
721 * @param file The UFILE to set transliteration on
736 u_fsettransliterator(UFILE *file, UFileDirection direction,