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);
445 * @param f The UFILE to get the value from
449 U_DRAFT const UNumberFormat* U_EXPORT2 u_fgetNumberFormat(UFILE *f);
466 * Write formatted data to a UFILE.
467 * @param f The UFILE to which to write.
474 u_fprintf(UFILE *f,
479 * Write formatted data to a UFILE.
482 * @param f The UFILE to which to write.
491 u_vfprintf(UFILE *f,
507 * Get a UFILE for <TT>stdout</TT>.
508 * @return UFILE that writes to <TT>stdout</TT>
511 U_STABLE UFILE * U_EXPORT2
515 * Write formatted data to a UFILE.
516 * @param f The UFILE to which to write.
523 u_fprintf_u(UFILE *f,
528 * Write formatted data to a UFILE.
531 * @param f The UFILE to which to write.
540 u_vfprintf_u(UFILE *f,
545 * Write a Unicode to a UFILE. The null (U+0000) terminated UChar*
549 * @param f The UFILE to which to write.
556 UFILE *f);
559 * Write a UChar to a UFILE.
561 * @param f The UFILE to which to write.
567 UFILE *f);
570 * Write Unicode to a UFILE.
571 * The ustring passed in will be converted to the UFILE's underlying
575 * @param f The UFILE to which to write.
583 UFILE *f);
590 * Read formatted data from a UFILE.
591 * @param f The UFILE from which to read.
599 u_fscanf(UFILE *f,
604 * Read formatted data from a UFILE.
607 * @param f The UFILE from which to read.
617 u_vfscanf(UFILE *f,
622 * Read formatted data from a UFILE.
623 * @param f The UFILE from which to read.
631 u_fscanf_u(UFILE *f,
636 * Read formatted data from a UFILE.
639 * @param f The UFILE from which to read.
649 u_vfscanf_u(UFILE *f,
655 * Read one line of text into a UChar* string from a UFILE. The newline
658 * @param f The UFILE from which to read.
669 UFILE *f);
672 * Read a UChar from a UFILE. It is recommended that <TT>u_fgetcx</TT>
676 * @param f The UFILE from which to read.
681 u_fgetc(UFILE *f);
684 * Read a UChar32 from a UFILE.
686 * @param f The UFILE from which to read.
694 u_fgetcx(UFILE *f);
697 * Unget a UChar from a UFILE.
703 * @param f The UFILE to receive <TT>c</TT>.
709 UFILE *f);
712 * Read Unicode from a UFILE.
713 * Bytes will be converted from the UFILE's underlying codepage, with
717 * @param f The UFILE from which to read.
724 UFILE *f);
729 * Set a transliterator on the UFILE. The transliterator will be owned by the
730 * UFILE.
731 * @param file The UFILE to set transliteration on
746 u_fsettransliterator(UFILE *file, UFileDirection direction,