Lines Matching refs:UFILE

40  * Each UFILE takes up at least 2KB.
189 UFILE *out = u_finit(stdout, NULL, NULL);
208 typedef struct UFILE UFILE;
222 * Open a UFILE.
223 * A UFILE is a wrapper around a FILE* that is locale and codepage aware.
224 * That is, data written to a UFILE will be formatted using the conventions
225 * specified by that UFILE's Locale; this data will be in the character set
226 * specified by that UFILE's codepage.
228 * @param perm The read/write permission for the UFILE; one of "r", "w", "rw"
235 * @return A new UFILE, or NULL if an error occurred.
238 U_STABLE UFILE* U_EXPORT2
245 * Open a UFILE on top of an existing FILE* stream. The FILE* stream
246 * ownership remains with the caller. To have the UFILE take over
249 * @param f The FILE* to which this UFILE will attach and use.
257 * @return A new UFILE, or NULL if an error occurred.
260 U_STABLE UFILE* U_EXPORT2
266 * Open a UFILE on top of an existing FILE* stream. The FILE* stream
267 * ownership is transferred to the new UFILE. It will be closed when the
268 * UFILE is closed.
269 * @param f The FILE* which this UFILE will take ownership of.
277 * @return A new UFILE, or NULL if an error occurred. If an error occurs
281 U_STABLE UFILE* U_EXPORT2
287 * Create a UFILE that can be used for localized formatting or parsing.
289 * specific locale. The ustdio.h file functions can be used on this UFILE.
291 * returned UFILE.
297 * @return A new UFILE, or NULL if an error occurred.
300 U_STABLE UFILE* U_EXPORT2
306 * Close a UFILE. Implies u_fflush first.
307 * @param file The UFILE to close.
312 u_fclose(UFILE *file);
320 * "Smart pointer" class, closes a UFILE via u_fclose().
327 U_DEFINE_LOCAL_OPEN_POINTER(LocalUFILEPointer, UFILE, u_fclose);
334 * Tests if the UFILE is at the end of the file stream.
335 * @param f The UFILE from which to read.
342 u_feof(UFILE *f);
345 * Flush output of a UFILE. Implies a flush of
351 * @param file The UFILE to flush.
355 u_fflush(UFILE *file);
359 * @param file The UFILE to rewind.
363 u_frewind(UFILE *file);
366 * Get the FILE* associated with a UFILE.
367 * @param f The UFILE
368 * @return A FILE*, owned by the UFILE. (The FILE <EM>must not</EM> be modified or closed)
372 u_fgetfile(UFILE *f);
380 * @param file The UFILE to set.
385 u_fgetlocale(UFILE *file);
391 * @param file The UFILE to query.
396 u_fsetlocale(UFILE *file,
402 * Get the codepage in which data is written to and read from the UFILE.
405 * @param file The UFILE to query.
406 * @return The codepage in which data is written to and read from the UFILE,
411 u_fgetcodepage(UFILE *file);
414 * Set the codepage in which data will be written to and read from the UFILE.
415 * All Unicode data written to the UFILE will be converted to this codepage
421 * A value of NULL means the default codepage for the UFILE's current
423 * @param file The UFILE to set.
430 UFILE *file);
435 * @param f The UFILE to get the value from
439 U_STABLE UConverter* U_EXPORT2 u_fgetConverter(UFILE *f);
444 * @param f The UFILE to get the value from
448 U_STABLE const UNumberFormat* U_EXPORT2 u_fgetNumberFormat(UFILE *f);
464 * Write formatted data to a UFILE.
465 * @param f The UFILE to which to write.
472 u_fprintf(UFILE *f,
477 * Write formatted data to a UFILE.
480 * @param f The UFILE to which to write.
489 u_vfprintf(UFILE *f,
505 * Get a UFILE for <TT>stdout</TT>.
506 * @return UFILE that writes to <TT>stdout</TT>
509 U_STABLE UFILE * U_EXPORT2
513 * Write formatted data to a UFILE.
514 * @param f The UFILE to which to write.
521 u_fprintf_u(UFILE *f,
526 * Write formatted data to a UFILE.
529 * @param f The UFILE to which to write.
538 u_vfprintf_u(UFILE *f,
543 * Write a Unicode to a UFILE. The null (U+0000) terminated UChar*
547 * @param f The UFILE to which to write.
554 UFILE *f);
557 * Write a UChar to a UFILE.
559 * @param f The UFILE to which to write.
565 UFILE *f);
568 * Write Unicode to a UFILE.
569 * The ustring passed in will be converted to the UFILE's underlying
573 * @param f The UFILE to which to write.
581 UFILE *f);
588 * Read formatted data from a UFILE.
589 * @param f The UFILE from which to read.
597 u_fscanf(UFILE *f,
602 * Read formatted data from a UFILE.
605 * @param f The UFILE from which to read.
615 u_vfscanf(UFILE *f,
620 * Read formatted data from a UFILE.
621 * @param f The UFILE from which to read.
629 u_fscanf_u(UFILE *f,
634 * Read formatted data from a UFILE.
637 * @param f The UFILE from which to read.
647 u_vfscanf_u(UFILE *f,
653 * Read one line of text into a UChar* string from a UFILE. The newline
656 * @param f The UFILE from which to read.
667 UFILE *f);
670 * Read a UChar from a UFILE. It is recommended that <TT>u_fgetcx</TT>
674 * @param f The UFILE from which to read.
679 u_fgetc(UFILE *f);
682 * Read a UChar32 from a UFILE.
684 * @param f The UFILE from which to read.
692 u_fgetcx(UFILE *f);
695 * Unget a UChar from a UFILE.
701 * @param f The UFILE to receive <TT>c</TT>.
707 UFILE *f);
710 * Read Unicode from a UFILE.
711 * Bytes will be converted from the UFILE's underlying codepage, with
715 * @param f The UFILE from which to read.
722 UFILE *f);
727 * Set a transliterator on the UFILE. The transliterator will be owned by the
728 * UFILE.
729 * @param file The UFILE to set transliteration on
744 u_fsettransliterator(UFILE *file, UFileDirection direction,