Main Page   Modules   Data Structures   Globals   Appendix  

coding.c File Reference


Variables: Symbols representing a coding system

MSymbol Mcoding_us_ascii
 Symbol for the coding system US-ASCII.

MSymbol Mcoding_iso_8859_1
 Symbol for the coding system ISO-8859-1.

MSymbol Mcoding_utf_8
 Symbol for the coding system UTF-8.

MSymbol Mcoding_utf_8_full
 UTF-8-FULL.

MSymbol Mcoding_utf_16
 UTF-16.

MSymbol Mcoding_utf_16be
 UTF-16BE.

MSymbol Mcoding_utf_16le
 UTF-16LE.

MSymbol Mcoding_utf_32
 UTF-32.

MSymbol Mcoding_utf_32be
 UTF-32be.

MSymbol Mcoding_utf_32le
 UTF-32LE.

MSymbol Mcoding_sjis
 SJIS.


Variables: Parameter keys for mconv_define_coding().

MSymbol Mtype
MSymbol Mcharsets
MSymbol Mflags
MSymbol Mdesignation
MSymbol Minvocation
MSymbol Mcode_unit
MSymbol Mbom
MSymbol Mlittle_endian

Variables: Symbols representing coding system type.

MSymbol Mutf
MSymbol Miso_2022

Variables: Symbols appearing in the value of #Mfrag parameter.

MSymbol Mreset_at_eol
MSymbol Mreset_at_cntl
MSymbol Meight_bit
MSymbol Mlong_form
MSymbol Mdesignation_g0
MSymbol Mdesignation_g1
MSymbol Mdesignation_ctext
MSymbol Mdesignation_ctext_ext
MSymbol Mlocking_shift
MSymbol Msingle_shift
MSymbol Msingle_shift_7
MSymbol Meuc_tw_shift
MSymbol Miso_6429
MSymbol Mrevision_number
MSymbol Mfull_support

Variables: etc

Remaining variables.

MSymbol Mmaybe
 Symbol whose name is "maybe".

MSymbol Mcoding
 The symbol Mcoding.


Functions

MSymbol mconv_define_coding (char *name, MPlist *plist, int(*resetter)(MConverter *), int(*decoder)(unsigned char *, int, MText *, MConverter *), int(*encoder)(MText *, int, int, unsigned char *, int, MConverter *), void *extra_info)
 Define a coding system.

MSymbol mconv_resolve_coding (MSymbol symbol)
 Resolve coding system name.

int mconv_list_codings (MSymbol **symbols)
 List symbols representing a coding system.

MConvertermconv_buffer_converter (MSymbol name, unsigned char *buf, int n)
 Create a code converter bound to a buffer.

MConvertermconv_stream_converter (MSymbol name, FILE *fp)
 Create a code converter bound to a stream.

int mconv_reset_converter (MConverter *converter)
 Reset a code converter.

void mconv_free_converter (MConverter *converter)
 Free a code converter.

MConvertermconv_rebind_buffer (MConverter *converter, unsigned char *buf, int n)
 Bind a buffer to a code converter.

MConvertermconv_rebind_stream (MConverter *converter, FILE *fp)
 Bind a stream to a code converter.

MTextmconv_decode (MConverter *converter, MText *mt)
 Decode a byte sequence into an M-text.

MTextmconv_decode_buffer (MSymbol name, unsigned char *buf, int n)
 Decode a buffer area based on a coding system.

MTextmconv_decode_stream (MSymbol name, FILE *fp)
 Decode a stream input based on a coding system.

int mconv_encode (MConverter *converter, MText *mt)
 Encode an M-text into a byte sequence.

int mconv_encode_range (MConverter *converter, MText *mt, int from, int to)
 Encode a part of an M-text.

int mconv_encode_buffer (MSymbol name, MText *mt, unsigned char *buf, int n)
 Encode an M-text into a buffer area.

int mconv_encode_stream (MSymbol name, MText *mt, FILE *fp)
 Encode an M-text to write to a stream.

int mconv_getc (MConverter *converter)
 Read a character via a code converter.

int mconv_ungetc (MConverter *converter, int c)
 Push a character back to a code converter.

int mconv_putc (MConverter *converter, int c)
 Write a character via a code converter.

MTextmconv_gets (MConverter *converter, MText *mt)
 Read a line using a code converter.


Top of this page

Main Page   Modules   Data Structures   Globals   Appendix  

mulemark mule-aist@m17n.org