00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef USTDIO_H
00023 #define USTDIO_H
00024
00025 #include <stdio.h>
00026 #include <stdarg.h>
00027
00028 #include "unicode/utypes.h"
00029 #include "unicode/ucnv.h"
00030 #include "unicode/utrans.h"
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088 #define U_EOF 0xFFFF
00089
00091 typedef struct UFILE UFILE;
00092
00094 typedef enum {
00095 U_READ = 1, U_WRITE = 2,
00096 U_READWRITE =3
00097 } UFileDirection;
00098
00117 U_CAPI UFILE* U_EXPORT2
00118 u_fopen(const char *filename,
00119 const char *perm,
00120 const char *locale,
00121 const char *codepage);
00122
00136 U_CAPI UFILE* U_EXPORT2
00137 u_finit(FILE *f,
00138 const char *locale,
00139 const char *codepage);
00140
00146 U_CAPI void U_EXPORT2
00147 u_fclose(UFILE *file);
00148
00157 U_CAPI void U_EXPORT2
00158 u_fflush(UFILE *file);
00159
00166 U_CAPI FILE* U_EXPORT2
00167 u_fgetfile(UFILE *f);
00168
00177 U_CAPI const char* U_EXPORT2
00178 u_fgetlocale(UFILE *file);
00179
00188 U_CAPI int32_t U_EXPORT2
00189 u_fsetlocale(const char *locale,
00190 UFILE *file);
00191
00201 U_CAPI const char* U_EXPORT2
00202 u_fgetcodepage(UFILE *file);
00203
00216 U_CAPI int32_t U_EXPORT2
00217 u_fsetcodepage(const char *codepage,
00218 UFILE *file);
00219
00220
00227 U_CAPI UConverter* U_EXPORT2 u_fgetConverter(UFILE *f);
00228
00229
00230
00239 U_CAPI int32_t U_EXPORT2
00240 u_fprintf( UFILE *f,
00241 const char *patternSpecification,
00242 ... );
00243
00256 U_CAPI int32_t U_EXPORT2
00257 u_vfprintf( UFILE *f,
00258 const char *patternSpecification,
00259 va_list ap);
00260
00269 U_CAPI int32_t U_EXPORT2
00270 u_fprintf_u( UFILE *f,
00271 const UChar *patternSpecification,
00272 ... );
00273
00286 U_CAPI int32_t U_EXPORT2
00287 u_vfprintf_u( UFILE *f,
00288 const UChar *patternSpecification,
00289 va_list ap);
00290
00300 U_CAPI int32_t U_EXPORT2
00301 u_fputs(const UChar *s,
00302 UFILE *f);
00303
00311 U_CAPI int32_t U_EXPORT2
00312 u_fputc(UChar uc,
00313 UFILE *f);
00314
00325 U_CAPI int32_t U_EXPORT2
00326 u_file_write(const UChar *chars,
00327 int32_t count,
00328 UFILE *f);
00329
00330
00331
00332
00342 U_CAPI int32_t U_EXPORT2
00343 u_fscanf( UFILE *f,
00344 const char *patternSpecification,
00345 ... );
00346
00360 U_CAPI int32_t U_EXPORT2
00361 u_vfscanf( UFILE *f,
00362 const char *patternSpecification,
00363 va_list ap);
00364
00374 U_CAPI int32_t U_EXPORT2
00375 u_fscanf_u( UFILE *f,
00376 const UChar *patternSpecification,
00377 ... );
00378
00392 U_CAPI int32_t U_EXPORT2
00393 u_vfscanf_u( UFILE *f,
00394 const UChar *patternSpecification,
00395 va_list ap);
00396
00409 U_CAPI UChar* U_EXPORT2
00410 u_fgets(UFILE *f,
00411 int32_t n,
00412 UChar *s);
00413
00420 U_CAPI UChar U_EXPORT2
00421 u_fgetc(UFILE *f);
00422
00437 U_CAPI UChar32 U_EXPORT2
00438 u_fgetcx(UFILE *f);
00439
00449 U_CAPI UChar U_EXPORT2
00450 u_fungetc(UChar c,
00451 UFILE *f);
00452
00463 U_CAPI int32_t U_EXPORT2
00464 u_file_read(UChar *chars,
00465 int32_t count,
00466 UFILE *f);
00467
00485 U_CAPI UTransliterator* U_EXPORT2
00486 u_fsettransliterator(UFILE *file, UFileDirection direction,
00487 UTransliterator *adopt, UErrorCode *status);
00488
00489
00490
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00513 U_CAPI int32_t U_EXPORT2
00514 u_sprintf(UChar *buffer,
00515 const char *locale,
00516 const char *patternSpecification,
00517 ... );
00518
00537 U_CAPI int32_t U_EXPORT2
00538 u_snprintf(UChar *buffer,
00539 int32_t count,
00540 const char *locale,
00541 const char *patternSpecification,
00542 ... );
00543
00559 U_CAPI int32_t U_EXPORT2
00560 u_vsprintf(UChar *buffer,
00561 const char *locale,
00562 const char *patternSpecification,
00563 va_list ap);
00564
00586 U_CAPI int32_t U_EXPORT2
00587 u_vsnprintf(UChar *buffer,
00588 int32_t count,
00589 const char *locale,
00590 const char *patternSpecification,
00591 va_list ap);
00592
00604 U_CAPI int32_t U_EXPORT2
00605 u_sprintf_u(UChar *buffer,
00606 const char *locale,
00607 const UChar *patternSpecification,
00608 ... );
00609
00627 U_CAPI int32_t U_EXPORT2
00628 u_snprintf_u(UChar *buffer,
00629 int32_t count,
00630 const char *locale,
00631 const UChar *patternSpecification,
00632 ... );
00633
00650 U_CAPI int32_t U_EXPORT2
00651 u_vsprintf_u(UChar *buffer,
00652 const char *locale,
00653 const UChar *patternSpecification,
00654 va_list ap);
00655
00676 U_CAPI int32_t U_EXPORT2
00677 u_vsnprintf_u(UChar *buffer,
00678 int32_t count,
00679 const char *locale,
00680 const UChar *patternSpecification,
00681 va_list ap);
00682
00683
00684
00697 U_CAPI int32_t U_EXPORT2
00698 u_sscanf(UChar *buffer,
00699 const char *locale,
00700 const char *patternSpecification,
00701 ... );
00702
00719 U_CAPI int32_t U_EXPORT2
00720 u_vsscanf(UChar *buffer,
00721 const char *locale,
00722 const char *patternSpecification,
00723 va_list ap);
00724
00737 U_CAPI int32_t U_EXPORT2
00738 u_sscanf_u(UChar *buffer,
00739 const char *locale,
00740 const UChar *patternSpecification,
00741 ... );
00742
00759 U_CAPI int32_t U_EXPORT2
00760 u_vsscanf_u(UChar *buffer,
00761 const char *locale,
00762 const UChar *patternSpecification,
00763 va_list ap);
00764
00765
00766 #endif
00767
00768
00769