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);
445 * Write formatted data to a UFILE.
446 * @param f The UFILE to which to write.
453 u_fprintf(UFILE *f,
458 * Write formatted data to a UFILE.
461 * @param f The UFILE to which to write.
470 u_vfprintf(UFILE *f,
475 * Write formatted data to a UFILE.
476 * @param f The UFILE to which to write.
483 u_fprintf_u(UFILE *f,
488 * Write formatted data to a UFILE.
491 * @param f The UFILE to which to write.
500 u_vfprintf_u(UFILE *f,
505 * Write a Unicode to a UFILE. The null (U+0000) terminated UChar*
509 * @param f The UFILE to which to write.
516 UFILE *f);
519 * Write a UChar to a UFILE.
521 * @param f The UFILE to which to write.
527 UFILE *f);
530 * Write Unicode to a UFILE.
531 * The ustring passed in will be converted to the UFILE's underlying
535 * @param f The UFILE to which to write.
543 UFILE *f);
550 * Read formatted data from a UFILE.
551 * @param f The UFILE from which to read.
559 u_fscanf(UFILE *f,
564 * Read formatted data from a UFILE.
567 * @param f The UFILE from which to read.
577 u_vfscanf(UFILE *f,
582 * Read formatted data from a UFILE.
583 * @param f The UFILE from which to read.
591 u_fscanf_u(UFILE *f,
596 * Read formatted data from a UFILE.
599 * @param f The UFILE from which to read.
609 u_vfscanf_u(UFILE *f,
615 * Read one line of text into a UChar* string from a UFILE. The newline
618 * @param f The UFILE from which to read.
629 UFILE *f);
632 * Read a UChar from a UFILE. It is recommended that <TT>u_fgetcx</TT>
636 * @param f The UFILE from which to read.
641 u_fgetc(UFILE *f);
644 * Read a UChar32 from a UFILE.
646 * @param f The UFILE from which to read.
654 u_fgetcx(UFILE *f);
657 * Unget a UChar from a UFILE.
663 * @param f The UFILE to receive <TT>c</TT>.
669 UFILE *f);
672 * Read Unicode from a UFILE.
673 * Bytes will be converted from the UFILE's underlying codepage, with
677 * @param f The UFILE from which to read.
684 UFILE *f);
689 * Set a transliterator on the UFILE. The transliterator will be owned by the
690 * UFILE.
691 * @param file The UFILE to set transliteration on
706 u_fsettransliterator(UFILE *file, UFileDirection direction,