Home | History | Annotate | Download | only in unicode

Lines Matching full:ufile

42  * Each UFILE takes up at least 2KB.
81 * Make sure that a UFile opened with "rw" can be used after using
191 UFILE *out = u_finit(stdout, NULL, NULL);
210 typedef struct UFILE UFILE;
224 * Open a UFILE.
225 * A UFILE is a wrapper around a FILE* that is locale and codepage aware.
226 * That is, data written to a UFILE will be formatted using the conventions
227 * specified by that UFILE's Locale; this data will be in the character set
228 * specified by that UFILE's codepage.
230 * @param perm The read/write permission for the UFILE; one of "r", "w", "rw"
237 * @return A new UFILE, or NULL if an error occurred.
240 U_STABLE UFILE* U_EXPORT2
247 * Open a UFILE with a UChar* filename
248 * A UFILE is a wrapper around a FILE* that is locale and codepage aware.
249 * That is, data written to a UFILE will be formatted using the conventions
250 * specified by that UFILE's Locale; this data will be in the character set
251 * specified by that UFILE's codepage.
253 * @param perm The read/write permission for the UFILE; one of "r", "w", "rw"
260 * @return A new UFILE, or NULL if an error occurred.
263 U_STABLE UFILE* U_EXPORT2
270 * Open a UFILE on top of an existing FILE* stream. The FILE* stream
271 * ownership remains with the caller. To have the UFILE take over
274 * @param f The FILE* to which this UFILE will attach and use.
282 * @return A new UFILE, or NULL if an error occurred.
285 U_STABLE UFILE* U_EXPORT2
291 * Open a UFILE on top of an existing FILE* stream. The FILE* stream
292 * ownership is transferred to the new UFILE. It will be closed when the
293 * UFILE is closed.
294 * @param f The FILE* which this UFILE will take ownership of.
302 * @return A new UFILE, or NULL if an error occurred. If an error occurs
306 U_STABLE UFILE* U_EXPORT2
312 * Create a UFILE that can be used for localized formatting or parsing.
314 * specific locale. The ustdio.h file functions can be used on this UFILE.
316 * returned UFILE.
322 * @return A new UFILE, or NULL if an error occurred.
325 U_STABLE UFILE* U_EXPORT2
331 * Close a UFILE. Implies u_fflush first.
332 * @param file The UFILE to close.
337 u_fclose(UFILE *file);
345 * "Smart pointer" class, closes a UFILE via u_fclose().
352 U_DEFINE_LOCAL_OPEN_POINTER(LocalUFILEPointer, UFILE, u_fclose);
359 UFILE is at the end of the file stream.
360 * @param f The UFILE from which to read.
367 u_feof(UFILE *f);
370 * Flush output of a UFILE. Implies a flush of
376 * @param file The UFILE to flush.
380 u_fflush(UFILE *file);
384 * @param file The UFILE to rewind.
388 u_frewind(UFILE *file);
391 * Get the FILE* associated with a UFILE.
392 * @param f The UFILE
393 * @return A FILE*, owned by the UFILE. (The FILE <EM>must not</EM> be modified or closed)
397 u_fgetfile(UFILE *f);
405 * @param file The UFILE to set.
410 u_fgetlocale(UFILE *file);
416 * @param file The UFILE to query.
421 u_fsetlocale(UFILE *file,
427 * Get the codepage in which data is written to and read from the UFILE.
430 * @param file The UFILE to query.
431 * @return The codepage in which data is written to and read from the UFILE,
436 u_fgetcodepage(UFILE *file);
439 * Set the codepage in which data will be written to and read from the UFILE.
440 * All Unicode data written to the UFILE will be converted to this codepage
443 * after opening the <TT>UFile</TT>, or after calling <TT>u_frewind</TT>.
446 * A value of NULL means the default codepage for the UFILE's current
448 * @param file The UFILE to set.
455 UFILE *file);
460 * @param f The UFILE to get the value from
464 U_STABLE UConverter* U_EXPORT2 u_fgetConverter(UFILE *f);
469 * @param f The UFILE to get the value from
473 U_STABLE const UNumberFormat* U_EXPORT2 u_fgetNumberFormat(UFILE *f);
489 * Write formatted data to a UFILE.
490 * @param f The UFILE to which to write.
497 u_fprintf(UFILE *f,
502 * Write formatted data to a UFILE.
505 * @param f The UFILE to which to write.
514 u_vfprintf(UFILE *f,
530 * Get a UFILE for <TT>stdout</TT>.
531 * @return UFILE that writes to <TT>stdout</TT>
534 U_STABLE UFILE * U_EXPORT2
538 * Write formatted data to a UFILE.
539 * @param f The UFILE to which to write.
546 u_fprintf_u(UFILE *f,
551 * Write formatted data to a UFILE.
554 * @param f The UFILE to which to write.
563 u_vfprintf_u(UFILE *f,
568 * Write a Unicode to a UFILE. The null (U+0000) terminated UChar*
572 * @param f The UFILE to which to write.
579 UFILE *f);
582 * Write a UChar to a UFILE.
584 * @param f The UFILE to which to write.
590 UFILE *f);
593 * Write Unicode to a UFILE.
594 * The ustring passed in will be converted to the UFILE's underlying
598 * @param f The UFILE to which to write.
606 UFILE *f);
613 * Read formatted data from a UFILE.
614 * @param f The UFILE from which to read.
622 u_fscanf(UFILE *f,
627 * Read formatted data from a UFILE.
630 * @param f The UFILE from which to read.
640 u_vfscanf(UFILE *f,
645 * Read formatted data from a UFILE.
646 * @param f The UFILE from which to read.
654 u_fscanf_u(UFILE *f,
659 * Read formatted data from a UFILE.
662 * @param f The UFILE from which to read.
672 u_vfscanf_u(UFILE *f,
678 * Read one line of text into a UChar* string from a UFILE. The newline
681 * @param f The UFILE from which to read.
692 UFILE *f);
695 * Read a UChar from a UFILE. It is recommended that <TT>u_fgetcx</TT>
699 * @param f The UFILE from which to read.
704 u_fgetc(UFILE *f);
707 * Read a UChar32 from a UFILE.
709 * @param f The UFILE from which to read.
717 u_fgetcx(UFILE *f);
720 * Unget a UChar from a UFILE.
726 * @param f The UFILE to receive <TT>c</TT>.
732 UFILE *f);
735 * Read Unicode from a UFILE.
736 * Bytes will be converted from the UFILE's underlying codepage, with
740 * @param f The UFILE from which to read.
747 UFILE *f);
752 * Set a transliterator on the UFILE. The transliterator will be owned by the
753 * UFILE.
754 * @param file The UFILE to set transliteration on
769 u_fsettransliterator(UFILE *file, UFileDirection direction,