File: m17nConv.3m17n

package info (click to toggle)
m17n-docs 1.6.2-2
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 22,492 kB
  • ctags: 1,495
  • sloc: sh: 1,032; makefile: 406; ansic: 206; perl: 108
file content (554 lines) | stat: -rw-r--r-- 21,398 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
.\" Copyright (C) 2001 Information-technology Promotion Agency (IPA)
.\" Copyright (C) 2001-2011
.\"   National Institute of Advanced Industrial Science and Technology (AIST)
.\" This file is part of the m17n library documentation.
.\" Permission is granted to copy, distribute and/or modify this document
.\" under the terms of the GNU Free Documentation License, Version 1.2 or
.\" any later version published by the Free Software Foundation; with no
.\" Invariant Section, no Front-Cover Texts,
.\" and no Back-Cover Texts.  A copy of the license is included in the
.\" appendix entitled "GNU Free Documentation License".
.TH "Code Conversion" 3m17n "12 Jan 2011" "Version 1.6.2" "The m17n Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Code_Conversion \- Coding system objects and API for them.  

.SS "Data Structures"

.in +1c
.ti -1c
.RI "struct \fBMConverter\fP"
.br
.RI "\fIStructure to be used in code conversion. \fP"
.ti -1c
.RI "struct \fBMCodingInfoISO2022\fP"
.br
.RI "\fIStructure for a coding system of type \fBMCODING_TYPE_ISO_2022\fP. \fP"
.ti -1c
.RI "struct \fBMCodingInfoUTF\fP"
.br
.RI "\fIStructure for extra information about a coding system of type \fBMCODING_TYPE_UTF\fP. \fP"
.in -1c
.SS "Enumerations"

.in +1c
.ti -1c
.RI "enum \fBMConversionResult\fP { \fBMCONVERSION_RESULT_SUCCESS\fP, \fBMCONVERSION_RESULT_INVALID_BYTE\fP, \fBMCONVERSION_RESULT_INVALID_CHAR\fP, \fBMCONVERSION_RESULT_INSUFFICIENT_SRC\fP, \fBMCONVERSION_RESULT_INSUFFICIENT_DST\fP, \fBMCONVERSION_RESULT_IO_ERROR\fP }"
.br
.RI "\fICodes that represent the result of code conversion. \fP"
.ti -1c
.RI "enum \fBMCodingType\fP { \fBMCODING_TYPE_CHARSET\fP, \fBMCODING_TYPE_UTF\fP, \fBMCODING_TYPE_ISO_2022\fP, \fBMCODING_TYPE_MISC\fP }"
.br
.RI "\fITypes of coding system. \fP"
.ti -1c
.RI "enum \fBMCodingFlagISO2022\fP { \fBMCODING_ISO_RESET_AT_EOL\fP =  0x1, \fBMCODING_ISO_RESET_AT_CNTL\fP =  0x2, \fBMCODING_ISO_EIGHT_BIT\fP =  0x4, \fBMCODING_ISO_LONG_FORM\fP =  0x8, \fBMCODING_ISO_DESIGNATION_G0\fP =  0x10, \fBMCODING_ISO_DESIGNATION_G1\fP =  0x20, \fBMCODING_ISO_DESIGNATION_CTEXT\fP =  0x40, \fBMCODING_ISO_DESIGNATION_CTEXT_EXT\fP =  0x80, \fBMCODING_ISO_LOCKING_SHIFT\fP =  0x100, \fBMCODING_ISO_SINGLE_SHIFT\fP =  0x200, \fBMCODING_ISO_SINGLE_SHIFT_7\fP =  0x400, \fBMCODING_ISO_EUC_TW_SHIFT\fP =  0x800, \fBMCODING_ISO_ISO6429\fP =  0x1000, \fBMCODING_ISO_REVISION_NUMBER\fP =  0x2000, \fBMCODING_ISO_FULL_SUPPORT\fP =  0x3000, \fBMCODING_ISO_FLAG_MAX\fP }"
.br
.RI "\fIBit-masks to specify the detail of coding system whose type is MCODING_TYPE_ISO_2022. \fP"
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "\fBMSymbol\fP \fBmconv_define_coding\fP (const char *name, \fBMPlist\fP *plist, int(*resetter)(\fBMConverter\fP *), int(*decoder)(const unsigned char *, int, \fBMText\fP *, \fBMConverter\fP *), int(*encoder)(\fBMText\fP *, int, int, unsigned char *, int, \fBMConverter\fP *), void *extra_info)"
.br
.RI "\fIDefine a coding system. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBmconv_resolve_coding\fP (\fBMSymbol\fP symbol)"
.br
.RI "\fIResolve coding system name. \fP"
.ti -1c
.RI "int \fBmconv_list_codings\fP (\fBMSymbol\fP **symbols)"
.br
.RI "\fIList symbols representing coding systems. \fP"
.ti -1c
.RI "\fBMConverter\fP * \fBmconv_buffer_converter\fP (\fBMSymbol\fP name, const unsigned char *buf, int n)"
.br
.RI "\fICreate a code converter bound to a buffer. \fP"
.ti -1c
.RI "\fBMConverter\fP * \fBmconv_stream_converter\fP (\fBMSymbol\fP name, FILE *fp)"
.br
.RI "\fICreate a code converter bound to a stream. \fP"
.ti -1c
.RI "int \fBmconv_reset_converter\fP (\fBMConverter\fP *converter)"
.br
.RI "\fIReset a code converter. \fP"
.ti -1c
.RI "void \fBmconv_free_converter\fP (\fBMConverter\fP *converter)"
.br
.RI "\fIFree a code converter. \fP"
.ti -1c
.RI "\fBMConverter\fP * \fBmconv_rebind_buffer\fP (\fBMConverter\fP *converter, const unsigned char *buf, int n)"
.br
.RI "\fIBind a buffer to a code converter. \fP"
.ti -1c
.RI "\fBMConverter\fP * \fBmconv_rebind_stream\fP (\fBMConverter\fP *converter, FILE *fp)"
.br
.RI "\fIBind a stream to a code converter. \fP"
.ti -1c
.RI "\fBMText\fP * \fBmconv_decode\fP (\fBMConverter\fP *converter, \fBMText\fP *mt)"
.br
.RI "\fIDecode a byte sequence into an M-text. \fP"
.ti -1c
.RI "\fBMText\fP * \fBmconv_decode_buffer\fP (\fBMSymbol\fP name, const unsigned char *buf, int n)"
.br
.RI "\fIDecode a buffer area based on a coding system. \fP"
.ti -1c
.RI "\fBMText\fP * \fBmconv_decode_stream\fP (\fBMSymbol\fP name, FILE *fp)"
.br
.RI "\fIDecode a stream input based on a coding system. \fP"
.ti -1c
.RI "int \fBmconv_encode\fP (\fBMConverter\fP *converter, \fBMText\fP *mt)"
.br
.RI "\fIEncode an M-text into a byte sequence. \fP"
.ti -1c
.RI "int \fBmconv_encode_range\fP (\fBMConverter\fP *converter, \fBMText\fP *mt, int from, int to)"
.br
.RI "\fIEncode a part of an M-text. \fP"
.ti -1c
.RI "int \fBmconv_encode_buffer\fP (\fBMSymbol\fP name, \fBMText\fP *mt, unsigned char *buf, int n)"
.br
.RI "\fIEncode an M-text into a buffer area. \fP"
.ti -1c
.RI "int \fBmconv_encode_stream\fP (\fBMSymbol\fP name, \fBMText\fP *mt, FILE *fp)"
.br
.RI "\fIEncode an M-text to write to a stream. \fP"
.ti -1c
.RI "int \fBmconv_getc\fP (\fBMConverter\fP *converter)"
.br
.RI "\fIRead a character via a code converter. \fP"
.ti -1c
.RI "int \fBmconv_ungetc\fP (\fBMConverter\fP *converter, int c)"
.br
.RI "\fIPush a character back to a code converter. \fP"
.ti -1c
.RI "int \fBmconv_putc\fP (\fBMConverter\fP *converter, int c)"
.br
.RI "\fIWrite a character via a code converter. \fP"
.ti -1c
.RI "\fBMText\fP * \fBmconv_gets\fP (\fBMConverter\fP *converter, \fBMText\fP *mt)"
.br
.RI "\fIRead a line using a code converter. \fP"
.in -1c
.SS "Variables: Symbols representing coding systems"
 
.in +1c
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_us_ascii\fP"
.br
.RI "\fISymbol for the coding system US-ASCII. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_iso_8859_1\fP"
.br
.RI "\fISymbol for the coding system ISO-8859-1. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_utf_8\fP"
.br
.RI "\fISymbol for the coding system UTF-8. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_utf_8_full\fP"
.br
.RI "\fISymbol for the coding system UTF-8-FULL. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_utf_16\fP"
.br
.RI "\fISymbol for the coding system UTF-16. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_utf_16be\fP"
.br
.RI "\fISymbol for the coding system UTF-16BE. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_utf_16le\fP"
.br
.RI "\fISymbol for the coding system UTF-16LE. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_utf_32\fP"
.br
.RI "\fISymbol for the coding system UTF-32. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_utf_32be\fP"
.br
.RI "\fISymbol for the coding system UTF-32BE. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_utf_32le\fP"
.br
.RI "\fISymbol for the coding system UTF-32LE. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding_sjis\fP"
.br
.RI "\fISymbol for the coding system SJIS. \fP"
.in -1c
.SS "Variables: Parameter keys for mconv_define_coding()."
 
.in +1c
.ti -1c
.RI "\fBMSymbol\fP \fBMtype\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMcharsets\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMflags\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMdesignation\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMinvocation\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMcode_unit\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMbom\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMlittle_endian\fP"
.br
.in -1c
.SS "Variables: Symbols representing coding system types."
 
.in +1c
.ti -1c
.RI "\fBMSymbol\fP \fBMutf\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMiso_2022\fP"
.br
.in -1c
.SS "Variables: Symbols appearing in the value of Mflags parameter."
 Symbols that can be a value of the \fBMflags\fP parameter of a coding system used in an argument to the \fBmconv_define_coding()\fP function (which see). 
.in +1c
.ti -1c
.RI "\fBMSymbol\fP \fBMreset_at_eol\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMreset_at_cntl\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMeight_bit\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMlong_form\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMdesignation_g0\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMdesignation_g1\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMdesignation_ctext\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMdesignation_ctext_ext\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMlocking_shift\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMsingle_shift\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMsingle_shift_7\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMeuc_tw_shift\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMiso_6429\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMrevision_number\fP"
.br
.ti -1c
.RI "\fBMSymbol\fP \fBMfull_support\fP"
.br
.in -1c
.SS "Variables: Others"
 Remaining variables. 
.in +1c
.ti -1c
.RI "\fBMSymbol\fP \fBMmaybe\fP"
.br
.RI "\fISymbol whose name is 'maybe'. \fP"
.ti -1c
.RI "\fBMSymbol\fP \fBMcoding\fP"
.br
.RI "\fIThe symbol \fCMcoding\fP. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Coding system objects and API for them. 

The m17n library represents a character encoding scheme (CES) of coded character sets (CCS) as an object called \fIcoding\fP \fIsystem\fP. Application programs can add original coding systems.
.PP
To \fIencode\fP means converting code\-points to character codes and to \fIdecode\fP means converting character codes back to code\-points.
.PP
Application programs can decode a byte sequence with a specified coding system into an M\-text, and inversely, can encode an M\-text into a byte sequence. 
.SH "Data Structure Documentation"
.SS MConverter
.PP
.ad l
.nh
.PP
\fBFIELD DOCUMENTATION:\fP
.PP 
.PP
\fBint \fBMConverter::lenient\fP\fP
.PP
If the conversion is strict, the converter stops at the first invalid byte (on decoding) or at the first character not supported by the coding system (on encoding). If this happens, \fCMConverter\->result\fP is set to \fCMCONVERSION_RESULT_INVALID_BYTE\fP or \fCMCONVERSION_RESULT_INVALID_CHAR\fP accordingly.
.PP
If the conversion is lenient, on decoding, an invalid byte is kept per se, and on encoding, an invalid character is replaced with '<U+XXXX>' (if the character is a Unicode character) or with '<M+XXXXXX>' (otherwise). 
.PP
\fBint \fBMConverter::last_block\fP\fP
.PP
On decoding, in the case that the last few bytes are too short to form a valid byte sequence:
.PP
If the value is nonzero, the conversion terminates by error (MCONVERSION_RESULT_INVALID_BYTE) at the first byte of the sequence.
.PP
If the value is zero, the conversion terminates successfully. Those bytes are stored in the converter as carryover and are prepended to the byte sequence of the further conversion.
.PP
On encoding, in the case that the coding system is context dependent:
.PP
If the value is nonzero, the conversion may produce a byte sequence at the end to reset the context to the initial state even if the source characters are zero.
.PP
If the value is zero, the conversion never produce such a byte sequence at the end. 
.PP
\fBunsigned \fBMConverter::at_most\fP\fP
.PP
\fBint \fBMConverter::nchars\fP\fP
.PP
Number of characters most recently decoded or encoded. 
.PP
\fBint \fBMConverter::nbytes\fP\fP
.PP
\fBenum \fBMConversionResult\fP \fBMConverter::result\fP\fP
.PP
\fBvoid* \fBMConverter::ptr\fP\fP
.PP
\fBdouble \fBMConverter::dbl\fP\fP
.PP
\fBchar \fBMConverter::c\fP[256]\fP
.PP
\fBunion { ... }   \fBMConverter::status\fP\fP
.PP
\fBvoid* \fBMConverter::internal_info\fP\fP

.SS MCodingInfoISO2022
.PP
.ad l
.nh
.PP
\fBFIELD DOCUMENTATION:\fP
.PP 
.PP
\fBint \fBMCodingInfoISO2022::initial_invocation\fP[2]\fP
.PP
\fBchar \fBMCodingInfoISO2022::designations\fP[32]\fP
.PP
If an element value is 0..3, it specifies a graphic register number to designate the corresponds charset. In addition, the charset is initially designated to that graphic register.
.PP
If the value is \-4..\-1, it specifies a graphic register number 0..3 respectively to designate the corresponds charset. Initially, the charset is not designated to any graphic register. 
.PP
\fBunsigned \fBMCodingInfoISO2022::flags\fP\fP

.SS MCodingInfoUTF
.PP
.ad l
.nh
.PP
\fBFIELD DOCUMENTATION:\fP
.PP 
.PP
\fBint \fBMCodingInfoUTF::code_unit_bits\fP\fP
.PP
\fBint \fBMCodingInfoUTF::bom\fP\fP
.PP
0: On decoding, check the first two byte. If they are BOM, decide endian by them. If not, decide endian by the member \fCendian\fP. On encoding, produce byte sequence according to \fCendian\fP with heading BOM.
.PP
1: On decoding, do not handle the first two bytes as BOM, and decide endian by \fCendian\fP. On encoding, produce byte sequence according to \fCendian\fP without BOM.
.PP
2: On decoding, handle the first two bytes as BOM and decide ending by them. On encoding, produce byte sequence according to \fCendian\fP with heading BOM.
.PP
If <code_unit_bits> is 8, the value has no meaning. 
.PP
\fBint \fBMCodingInfoUTF::endian\fP\fP
.PP
If <code_unit_bits> is 8, the value has no meaning. 

.SH "Enumeration Type Documentation"
.PP 
.SS "enum \fBMConversionResult\fP"
.PP
Codes that represent the result of code conversion. One of these values is set in \fCMConverter\->result\fP. 
.PP
\fBEnumerator: \fP
.in +1c
.TP
\fB\fIMCONVERSION_RESULT_SUCCESS \fP\fP
Code conversion is successful. 
.TP
\fB\fIMCONVERSION_RESULT_INVALID_BYTE \fP\fP
On decoding, the source contains an invalid byte. 
.TP
\fB\fIMCONVERSION_RESULT_INVALID_CHAR \fP\fP
On encoding, the source contains a character that cannot be encoded by the specified coding system. 
.TP
\fB\fIMCONVERSION_RESULT_INSUFFICIENT_SRC \fP\fP
On decoding, the source ends with an incomplete byte sequence. 
.TP
\fB\fIMCONVERSION_RESULT_INSUFFICIENT_DST \fP\fP
On encoding, the destination is too short to store the result. 
.TP
\fB\fIMCONVERSION_RESULT_IO_ERROR \fP\fP
An I/O error occurred in the conversion. 
.SS "enum \fBMCodingType\fP"
.PP
Types of coding system. 
.PP
\fBEnumerator: \fP
.in +1c
.TP
\fB\fIMCODING_TYPE_CHARSET \fP\fP
A coding system of this type supports charsets directly. The dimension of each charset defines the length of bytes to represent a single character of the charset, and a byte sequence directly represents the code\-point of a character. The m17n library provides the default decoding and encoding routines of this type. 
.TP
\fB\fIMCODING_TYPE_UTF \fP\fP
A coding system of this type supports byte sequences of a UTF (UTF\-8, UTF\-16, UTF\-32) like structure. The m17n library provides the default decoding and encoding routines of this type. 
.TP
\fB\fIMCODING_TYPE_ISO_2022 \fP\fP
A coding system of this type supports byte sequences of an ISO\-2022 like structure. The details of each structure are specified by \fBMCodingInfoISO2022\fP. The m17n library provides decoding and encoding routines of this type. 
.TP
\fB\fIMCODING_TYPE_MISC \fP\fP
A coding system of this type is for byte sequences of miscellaneous structures. The m17n library does not provide decoding and encoding routines of this type. They must be provided by the application program. 
.SS "enum \fBMCodingFlagISO2022\fP"
.PP
Bit\-masks to specify the detail of coding system whose type is MCODING_TYPE_ISO_2022. 
.PP
\fBEnumerator: \fP
.in +1c
.TP
\fB\fIMCODING_ISO_RESET_AT_EOL \fP\fP
On encoding, reset the invocation and designation status to initial at end of line. 
.TP
\fB\fIMCODING_ISO_RESET_AT_CNTL \fP\fP
On encoding, reset the invocation and designation status to initial before any control codes. 
.TP
\fB\fIMCODING_ISO_EIGHT_BIT \fP\fP
Use the right graphic plane. 
.TP
\fB\fIMCODING_ISO_LONG_FORM \fP\fP
Use the non\-standard 4 bytes format for designation sequence for charsets JISX0208\-1978, GB2312, and JISX0208\-1983. 
.TP
\fB\fIMCODING_ISO_DESIGNATION_G0 \fP\fP
On encoding, unless explicitly specified, designate charsets to G0. 
.TP
\fB\fIMCODING_ISO_DESIGNATION_G1 \fP\fP
On encoding, unless explicitly specified, designate charsets except for ASCII to G1. 
.TP
\fB\fIMCODING_ISO_DESIGNATION_CTEXT \fP\fP
On encoding, unless explicitly specified, designate 94\-chars charsets to G0, 96\-chars charsets to G1. 
.TP
\fB\fIMCODING_ISO_DESIGNATION_CTEXT_EXT \fP\fP
On encoding, encode such charsets not conforming to ISO\-2022 by ESC % / ..., and encode non\-supported Unicode characters by ESC % G ... ESC % @ . On decoding, handle those escape sequences. 
.TP
\fB\fIMCODING_ISO_LOCKING_SHIFT \fP\fP
Use locking shift. 
.TP
\fB\fIMCODING_ISO_SINGLE_SHIFT \fP\fP
Use single shift (SS2 (0x8E or ESC N), SS3 (0x8F or ESC O)). 
.TP
\fB\fIMCODING_ISO_SINGLE_SHIFT_7 \fP\fP
Use 7\-bit single shift 2 (SS2 (0x19)). 
.TP
\fB\fIMCODING_ISO_EUC_TW_SHIFT \fP\fP
Use EUC\-TW like special shifting. 
.TP
\fB\fIMCODING_ISO_ISO6429 \fP\fP
Use ISO\-6429 escape sequences to indicate direction. Not yet implemented. 
.TP
\fB\fIMCODING_ISO_REVISION_NUMBER \fP\fP
On encoding, if a charset has revision number, produce escape sequences to specify the number. 
.TP
\fB\fIMCODING_ISO_FULL_SUPPORT \fP\fP
Support all ISO\-2022 charsets. 
.TP
\fB\fIMCODING_ISO_FLAG_MAX \fP\fP

.SH "Variable Documentation"
.PP 
.SS "\fBMSymbol\fP \fBMcoding_us_ascii\fP"
.PP
Symbol for the coding system US\-ASCII. The symbol \fBMcoding_us_ascii\fP has name \fC'us\-ascii'\fP and represents a coding system for the CES US\-ASCII. 
.SS "\fBMSymbol\fP \fBMcoding_iso_8859_1\fP"
.PP
Symbol for the coding system ISO\-8859\-1. The symbol \fBMcoding_iso_8859_1\fP has name \fC'iso\-8859\-1'\fP and represents a coding system for the CES ISO\-8859\-1. 
.SS "\fBMSymbol\fP \fBMcoding_utf_8\fP"
.PP
Symbol for the coding system UTF\-8. The symbol \fBMcoding_utf_8\fP has name \fC'utf\-8'\fP and represents a coding system for the CES UTF\-8. 
.SS "\fBMSymbol\fP \fBMcoding_utf_8_full\fP"
.PP
Symbol for the coding system UTF\-8\-FULL. The symbol \fBMcoding_utf_8_full\fP has name \fC'utf\-8\-full'\fP and represents a coding system that is a extension of UTF\-8. This coding system uses the same encoding algorithm as UTF\-8 but is not limited to the Unicode characters. It can encode all characters supported by the m17n library. 
.SS "\fBMSymbol\fP \fBMcoding_utf_16\fP"
.PP
Symbol for the coding system UTF\-16. The symbol \fBMcoding_utf_16\fP has name \fC'utf\-16'\fP and represents a coding system for the CES UTF\-16 (RFC 2279). 
.SS "\fBMSymbol\fP \fBMcoding_utf_16be\fP"
.PP
Symbol for the coding system UTF\-16BE. The symbol \fBMcoding_utf_16be\fP has name \fC'utf\-16be'\fP and represents a coding system for the CES UTF\-16BE (RFC 2279). 
.SS "\fBMSymbol\fP \fBMcoding_utf_16le\fP"
.PP
Symbol for the coding system UTF\-16LE. The symbol \fBMcoding_utf_16le\fP has name \fC'utf\-16le'\fP and represents a coding system for the CES UTF\-16LE (RFC 2279). 
.SS "\fBMSymbol\fP \fBMcoding_utf_32\fP"
.PP
Symbol for the coding system UTF\-32. The symbol \fBMcoding_utf_32\fP has name \fC'utf\-32'\fP and represents a coding system for the CES UTF\-32 (RFC 2279). 
.SS "\fBMSymbol\fP \fBMcoding_utf_32be\fP"
.PP
Symbol for the coding system UTF\-32BE. The symbol \fBMcoding_utf_32be\fP has name \fC'utf\-32be'\fP and represents a coding system for the CES UTF\-32BE (RFC 2279). 
.SS "\fBMSymbol\fP \fBMcoding_utf_32le\fP"
.PP
Symbol for the coding system UTF\-32LE. The symbol \fBMcoding_utf_32le\fP has name \fC'utf\-32le'\fP and represents a coding system for the CES UTF\-32LE (RFC 2279). 
.SS "\fBMSymbol\fP \fBMcoding_sjis\fP"
.PP
Symbol for the coding system SJIS. The symbol \fBMcoding_sjis\fP has name \fC'sjis'\fP and represents a coding system for the CES Shift\-JIS. 
.SS "\fBMSymbol\fP \fBMtype\fP"Parameter key for \fBmconv_define_coding()\fP (which see). 
.SS "\fBMSymbol\fP \fBMcharsets\fP"
.SS "\fBMSymbol\fP \fBMflags\fP"
.SS "\fBMSymbol\fP \fBMdesignation\fP"
.SS "\fBMSymbol\fP \fBMinvocation\fP"
.SS "\fBMSymbol\fP \fBMcode_unit\fP"
.SS "\fBMSymbol\fP \fBMbom\fP"
.SS "\fBMSymbol\fP \fBMlittle_endian\fP"
.SS "\fBMSymbol\fP \fBMutf\fP"Symbol that can be a value of the \fBMtype\fP parameter of a coding system used in an argument to the \fBmconv_define_coding()\fP function (which see). 
.SS "\fBMSymbol\fP \fBMiso_2022\fP"
.SS "\fBMSymbol\fP \fBMreset_at_eol\fP"
.SS "\fBMSymbol\fP \fBMreset_at_cntl\fP"
.SS "\fBMSymbol\fP \fBMeight_bit\fP"
.SS "\fBMSymbol\fP \fBMlong_form\fP"
.SS "\fBMSymbol\fP \fBMdesignation_g0\fP"
.SS "\fBMSymbol\fP \fBMdesignation_g1\fP"
.SS "\fBMSymbol\fP \fBMdesignation_ctext\fP"
.SS "\fBMSymbol\fP \fBMdesignation_ctext_ext\fP"
.SS "\fBMSymbol\fP \fBMlocking_shift\fP"
.SS "\fBMSymbol\fP \fBMsingle_shift\fP"
.SS "\fBMSymbol\fP \fBMsingle_shift_7\fP"
.SS "\fBMSymbol\fP \fBMeuc_tw_shift\fP"
.SS "\fBMSymbol\fP \fBMiso_6429\fP"
.SS "\fBMSymbol\fP \fBMrevision_number\fP"
.SS "\fBMSymbol\fP \fBMfull_support\fP"
.SS "\fBMSymbol\fP \fBMmaybe\fP"
.PP
Symbol whose name is 'maybe'. The variable \fBMmaybe\fP is a symbol of name \fC'maybe'\fP. It is used a value of \fBMbom\fP parameter of the function \fBmconv_define_coding()\fP (which see). 
.SS "\fBMSymbol\fP \fBMcoding\fP"
.PP
The symbol \fCMcoding\fP. Any decoded M\-text has a text property whose key is the predefined symbol \fCMcoding\fP. The name of \fCMcoding\fP is \fC'coding'\fP. 
.SH "Author"
.PP 
Generated automatically by Doxygen for The m17n Library from the source code.
.SH COPYRIGHT
Copyright (C) 2001 Information\-technology Promotion Agency (IPA)
.br
Copyright (C) 2001\-2011 National Institute of Advanced Industrial Science and Technology (AIST)
.br
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License 
<http://www.gnu.org/licenses/fdl.html>.