Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ufile.h

Go to the documentation of this file.
00001 /*
00002 *******************************************************************************
00003 *
00004 *   Copyright (C) 1998-1999, International Business Machines
00005 *   Corporation and others.  All Rights Reserved.
00006 *
00007 *******************************************************************************
00008 *
00009 * File ufile.h
00010 *
00011 * Modification History:
00012 *
00013 *   Date        Name        Description
00014 *   12/01/98    stephen        Creation.
00015 *   03/12/99    stephen     Modified for new C API.
00016 *******************************************************************************
00017 */
00018 
00019 #ifndef UFILE_H
00020 #define UFILE_H
00021 
00022 #include "unicode/utypes.h"
00023 #include "unicode/ucnv.h"
00024 #include "locbund.h"
00025 
00026 /* The buffer size for fromUnicode calls */
00027 #define UFILE_CHARBUFFER_SIZE 1024
00028 
00029 /* The buffer size for toUnicode calls */
00030 #define UFILE_UCHARBUFFER_SIZE 1024
00031 
00032 /* A UFILE */
00033 struct UFILE {
00034   FILE            *fFile;        /* the actual fs interface */
00035   UBool        fOwnFile;    /* TRUE if fFile should be closed */
00036   
00037   ULocaleBundle        *fBundle;     /* formatters */
00038   UBool        fOwnBundle;     /* TRUE if fBundle should be deleted */
00039 
00040   UConverter        *fConverter;     /* for codeset conversion */
00041 
00042                       /* buffer used for fromUnicode */
00043   char            fCharBuffer     [UFILE_CHARBUFFER_SIZE];
00044 
00045                       /* buffer used for toUnicode */
00046   UChar            fUCBuffer     [UFILE_UCHARBUFFER_SIZE];
00047 
00048   UChar            *fUCLimit;     /* data limit in fUCBuffer */
00049   UChar         *fUCPos;     /* current pos in fUCBuffer */
00050 };
00051 
00056 void
00057 ufile_fill_uchar_buffer(UFILE *f);
00058 
00059 #endif

Generated at Tue Dec 5 17:55:35 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000