2001-05-10 16:54:09 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright (C) 1998-2001, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* File ucbuf.c
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 05/10/01 Ram Creation.
|
2001-05-16 01:09:06 +00:00
|
|
|
*
|
|
|
|
* This API reads in files and returns UChars
|
2001-05-10 16:54:09 +00:00
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
#include "unicode/ucnv.h"
|
|
|
|
#include "filestrm.h"
|
|
|
|
#include "cmemory.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#ifndef UCBUF_H
|
|
|
|
#define UCBUF_H 1
|
|
|
|
|
|
|
|
typedef struct UCHARBUF UCHARBUF;
|
2001-07-24 23:15:31 +00:00
|
|
|
#define U_EOF 0xFFFFFFFF
|
|
|
|
#define U_ERR 0xFFFFFFFE
|
2001-05-16 01:09:06 +00:00
|
|
|
|
|
|
|
U_CAPI UChar32 U_EXPORT2
|
2001-05-10 21:43:01 +00:00
|
|
|
ucbuf_getc(UCHARBUF* buf,UErrorCode* err);
|
|
|
|
|
2001-05-16 01:09:06 +00:00
|
|
|
U_CAPI UChar32 U_EXPORT2
|
2001-05-10 21:43:01 +00:00
|
|
|
ucbuf_getcx(UCHARBUF* buf,UErrorCode* err);
|
|
|
|
|
2001-05-16 01:09:06 +00:00
|
|
|
U_CAPI void U_EXPORT2
|
2001-05-10 21:43:01 +00:00
|
|
|
ucbuf_rewind(UCHARBUF* buf);
|
|
|
|
|
2001-05-16 01:09:06 +00:00
|
|
|
U_CAPI UCHARBUF* U_EXPORT2
|
2001-11-03 02:54:08 +00:00
|
|
|
ucbuf_open(FileStream* in,const char* codepage,UBool showWarning, UErrorCode* err);
|
2001-05-10 21:43:01 +00:00
|
|
|
|
2001-05-16 01:09:06 +00:00
|
|
|
U_CAPI void U_EXPORT2
|
2001-05-10 21:43:01 +00:00
|
|
|
ucbuf_close(UCHARBUF* buf);
|
|
|
|
|
2001-05-16 01:09:06 +00:00
|
|
|
U_CAPI void U_EXPORT2
|
2001-05-10 21:43:01 +00:00
|
|
|
ucbuf_ungetc(UChar32 ungetChar,UCHARBUF* buf);
|
|
|
|
|
2001-05-16 01:09:06 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2001-05-10 21:43:01 +00:00
|
|
|
ucbuf_autodetect(FileStream* in,const char** cp);
|
2001-05-10 16:54:09 +00:00
|
|
|
|
|
|
|
#endif
|