@cpp.js/package-iconv 1.0.0-beta.22 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +1 -1
  3. package/charset.xcframework/ios-arm64_arm64e/libcharset.a +0 -0
  4. package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/libcharset.a +0 -0
  5. package/cppjs.build.js +1 -0
  6. package/dist/prebuilt/Android-x86_64/include/iconv.h +243 -0
  7. package/dist/prebuilt/Android-x86_64/include/libcharset.h +45 -0
  8. package/dist/prebuilt/Android-x86_64/include/localcharset.h +137 -0
  9. package/dist/prebuilt/Android-x86_64/lib/libcharset.la +41 -0
  10. package/dist/prebuilt/Android-x86_64/lib/libcharset.so +0 -0
  11. package/dist/prebuilt/Android-x86_64/lib/libiconv.la +41 -0
  12. package/dist/prebuilt/Android-x86_64/lib/libiconv.so +0 -0
  13. package/dist/prebuilt/Android-x86_64/share/doc/iconv.1.html +217 -0
  14. package/dist/prebuilt/Android-x86_64/share/doc/iconv.3.html +255 -0
  15. package/dist/prebuilt/Android-x86_64/share/doc/iconv_close.3.html +89 -0
  16. package/dist/prebuilt/Android-x86_64/share/doc/iconv_open.3.html +352 -0
  17. package/dist/prebuilt/Android-x86_64/share/doc/iconv_open_into.3.html +132 -0
  18. package/dist/prebuilt/Android-x86_64/share/doc/iconvctl.3.html +244 -0
  19. package/dist/prebuilt/Android-x86_64/share/man/man1/iconv.1 +112 -0
  20. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv.3 +129 -0
  21. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_close.3 +31 -0
  22. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_open.3 +260 -0
  23. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_open_into.3 +47 -0
  24. package/dist/prebuilt/Android-x86_64/share/man/man3/iconvctl.3 +112 -0
  25. package/dist/prebuilt/iOS-iphoneos/lib/libcharset.a +0 -0
  26. package/dist/prebuilt/iOS-iphoneos/lib/libiconv.a +0 -0
  27. package/dist/prebuilt/iOS-iphonesimulator/lib/libcharset.a +0 -0
  28. package/dist/prebuilt/iOS-iphonesimulator/lib/libiconv.a +0 -0
  29. package/iconv.xcframework/ios-arm64_arm64e/libiconv.a +0 -0
  30. package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/libiconv.a +0 -0
  31. package/package.json +2 -2
@@ -0,0 +1,352 @@
1
+ <!-- Creator : groff version 1.22.3 -->
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
3
+ "http://www.w3.org/TR/html4/loose.dtd">
4
+ <html>
5
+ <head>
6
+ <meta name="generator" content="groff -Thtml, see www.gnu.org">
7
+ <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
8
+ <meta name="Content-Style" content="text/css">
9
+ <style type="text/css">
10
+ p { margin-top: 0; margin-bottom: 0; vertical-align: top }
11
+ pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
12
+ table { margin-top: 0; margin-bottom: 0; vertical-align: top }
13
+ h1 { text-align: center }
14
+ </style>
15
+ <title>ICONV_OPEN</title>
16
+
17
+ </head>
18
+ <body>
19
+
20
+ <h1 align="center">ICONV_OPEN</h1>
21
+
22
+ <a href="#NAME">NAME</a><br>
23
+ <a href="#SYNOPSIS">SYNOPSIS</a><br>
24
+ <a href="#DESCRIPTION">DESCRIPTION</a><br>
25
+ <a href="#RETURN VALUE">RETURN VALUE</a><br>
26
+ <a href="#ERRORS">ERRORS</a><br>
27
+ <a href="#CONFORMING TO">CONFORMING TO</a><br>
28
+ <a href="#SEE ALSO">SEE ALSO</a><br>
29
+
30
+ <hr>
31
+
32
+
33
+ <h2>NAME
34
+ <a name="NAME"></a>
35
+ </h2>
36
+
37
+
38
+ <p style="margin-left:11%; margin-top: 1em">iconv_open
39
+ &minus; allocate descriptor for character set conversion</p>
40
+
41
+ <h2>SYNOPSIS
42
+ <a name="SYNOPSIS"></a>
43
+ </h2>
44
+
45
+
46
+ <p style="margin-left:11%; margin-top: 1em"><b>#include
47
+ &lt;iconv.h&gt;</b></p>
48
+
49
+ <p style="margin-left:11%; margin-top: 1em"><b>iconv_t
50
+ iconv_open (const char*</b> <i>tocode</i><b>, const
51
+ char*</b> <i>fromcode</i><b>);</b></p>
52
+
53
+ <h2>DESCRIPTION
54
+ <a name="DESCRIPTION"></a>
55
+ </h2>
56
+
57
+
58
+ <p style="margin-left:11%; margin-top: 1em">The
59
+ <b>iconv_open</b> function allocates a conversion descriptor
60
+ suitable for converting byte sequences from character
61
+ encoding <i>fromcode</i> to character encoding
62
+ <i>tocode</i>.</p>
63
+
64
+ <p style="margin-left:11%; margin-top: 1em">The values
65
+ permitted for <i>fromcode</i> and <i>tocode</i> and the
66
+ supported combinations are system dependent. For the
67
+ libiconv library, the following encodings are supported, in
68
+ all combinations. <br>
69
+ European languages</p>
70
+
71
+ <p style="margin-left:22%;">ASCII,
72
+ ISO&minus;8859&minus;{1,2,3,4,5,7,9,10,13,14,15,16},
73
+ KOI8&minus;R, KOI8&minus;U, KOI8&minus;RU,
74
+ CP{1250,1251,1252,1253,1254,1257}, CP{850,866,1131},
75
+ Mac{Roman,CentralEurope,Iceland,Croatian,Romania},
76
+ Mac{Cyrillic,Ukraine,Greek,Turkish}, Macintosh</p>
77
+
78
+ <p style="margin-left:11%;">Semitic languages</p>
79
+
80
+ <p style="margin-left:22%;">ISO&minus;8859&minus;{6,8},
81
+ CP{1255,1256}, CP862, Mac{Hebrew,Arabic}</p>
82
+
83
+ <p style="margin-left:11%;">Japanese</p>
84
+
85
+ <p style="margin-left:22%;">EUC&minus;JP, SHIFT_JIS, CP932,
86
+ ISO&minus;2022&minus;JP, ISO&minus;2022&minus;JP&minus;2,
87
+ ISO&minus;2022&minus;JP&minus;1,
88
+ ISO-2022&minus;JP&minus;MS</p>
89
+
90
+ <p style="margin-left:11%;">Chinese</p>
91
+
92
+ <p style="margin-left:22%;">EUC&minus;CN, HZ, GBK, CP936,
93
+ GB18030, GB18030:2022, EUC&minus;TW, BIG5, CP950,
94
+ BIG5&minus;HKSCS, BIG5&minus;HKSCS:2004,
95
+ BIG5&minus;HKSCS:2001, BIG5&minus;HKSCS:1999,
96
+ ISO&minus;2022&minus;CN,
97
+ ISO&minus;2022&minus;CN&minus;EXT</p>
98
+
99
+ <table width="100%" border="0" rules="none" frame="void"
100
+ cellspacing="0" cellpadding="0">
101
+ <tr valign="top" align="left">
102
+ <td width="11%"></td>
103
+ <td width="9%">
104
+
105
+
106
+ <p>Korean</p></td>
107
+ <td width="2%"></td>
108
+ <td width="50%">
109
+
110
+
111
+ <p>EUC&minus;KR, CP949, ISO&minus;2022&minus;KR, JOHAB</p></td>
112
+ <td width="28%">
113
+ </td></tr>
114
+ </table>
115
+
116
+ <p style="margin-left:11%;">Armenian</p>
117
+
118
+ <p style="margin-left:22%;">ARMSCII&minus;8</p>
119
+
120
+ <p style="margin-left:11%;">Georgian</p>
121
+
122
+ <p style="margin-left:22%;">Georgian&minus;Academy,
123
+ Georgian&minus;PS</p>
124
+
125
+ <table width="100%" border="0" rules="none" frame="void"
126
+ cellspacing="0" cellpadding="0">
127
+ <tr valign="top" align="left">
128
+ <td width="11%"></td>
129
+ <td width="9%">
130
+
131
+
132
+ <p>Tajik</p></td>
133
+ <td width="2%"></td>
134
+ <td width="35%">
135
+
136
+
137
+ <p>KOI8&minus;T</p></td>
138
+ <td width="43%">
139
+ </td></tr>
140
+ <tr valign="top" align="left">
141
+ <td width="11%"></td>
142
+ <td width="9%">
143
+
144
+
145
+ <p>Kazakh</p></td>
146
+ <td width="2%"></td>
147
+ <td width="35%">
148
+
149
+
150
+ <p>PT154, RK1048</p></td>
151
+ <td width="43%">
152
+ </td></tr>
153
+ <tr valign="top" align="left">
154
+ <td width="11%"></td>
155
+ <td width="9%">
156
+
157
+
158
+ <p>Thai</p></td>
159
+ <td width="2%"></td>
160
+ <td width="35%">
161
+
162
+
163
+ <p>TIS&minus;620, CP874, MacThai</p></td>
164
+ <td width="43%">
165
+ </td></tr>
166
+ </table>
167
+
168
+ <p style="margin-left:11%;">Laotian</p>
169
+
170
+ <p style="margin-left:22%;">MuleLao&minus;1, CP1133</p>
171
+
172
+ <p style="margin-left:11%;">Vietnamese</p>
173
+
174
+ <p style="margin-left:22%;">VISCII, TCVN, CP1258</p>
175
+
176
+ <p style="margin-left:11%;">Platform specifics</p>
177
+
178
+ <p style="margin-left:22%;">HP&minus;ROMAN8, NEXTSTEP</p>
179
+
180
+ <p style="margin-left:11%;">Full Unicode</p>
181
+
182
+ <p style="margin-left:22%;">UTF&minus;8 <br>
183
+ UCS&minus;2, UCS&minus;2BE, UCS&minus;2LE <br>
184
+ UCS&minus;4, UCS&minus;4BE, UCS&minus;4LE <br>
185
+ UTF&minus;16, UTF&minus;16BE, UTF&minus;16LE <br>
186
+ UTF&minus;32, UTF&minus;32BE, UTF&minus;32LE <br>
187
+ UTF&minus;7 <br>
188
+ C99, JAVA</p>
189
+
190
+ <p style="margin-left:11%;">Full Unicode, in terms of
191
+ <b>uint16_t</b> or <b>uint32_t</b></p>
192
+
193
+ <p style="margin-left:22%;">(with machine dependent
194
+ endianness and alignment) <br>
195
+ UCS&minus;2&minus;INTERNAL, UCS&minus;4&minus;INTERNAL</p>
196
+
197
+ <p style="margin-left:11%;">Locale dependent, in terms of
198
+ <b>char</b> or <b>wchar_t</b></p>
199
+
200
+ <p style="margin-left:22%;">(with machine dependent
201
+ endianness and alignment, and with semantics depending on
202
+ the OS and the current LC_CTYPE locale facet) <br>
203
+ char, wchar_t</p>
204
+
205
+ <p style="margin-left:11%; margin-top: 1em">When configured
206
+ with the option
207
+ <b>&minus;&minus;enable&minus;extra&minus;encodings</b>, it
208
+ also provides support for a few extra encodings: <br>
209
+ European languages</p>
210
+
211
+
212
+ <p style="margin-left:22%;">CP{437,737,775,852,853,855,857,858,860,861,863,865,869,1125}</p>
213
+
214
+ <p style="margin-left:11%;">Semitic languages</p>
215
+
216
+ <p style="margin-left:22%;">CP864</p>
217
+
218
+ <p style="margin-left:11%;">Japanese</p>
219
+
220
+ <p style="margin-left:22%;">EUC&minus;JISX0213,
221
+ Shift_JISX0213, ISO&minus;2022&minus;JP&minus;3</p>
222
+
223
+ <p style="margin-left:11%;">Chinese</p>
224
+
225
+ <p style="margin-left:22%;">BIG5&minus;2003
226
+ (experimental)</p>
227
+
228
+ <p style="margin-left:11%;">Turkmen</p>
229
+
230
+ <p style="margin-left:22%;">TDS565</p>
231
+
232
+ <p style="margin-left:11%;">Platform specifics</p>
233
+
234
+ <p style="margin-left:22%;">ATARIST,
235
+ RISCOS&minus;LATIN1</p>
236
+
237
+ <p style="margin-left:11%;">EBCDIC compatible (not ASCII
238
+ compatible, very rarely used)</p>
239
+
240
+ <p style="margin-left:22%;">European languages: <br>
241
+
242
+ IBM-{037,273,277,278,280,282,284,285,297,423,500,870,871,875,880},
243
+ <br>
244
+
245
+ IBM-{905,924,1025,1026,1047,1112,1122,1123,1140,1141,1142,1143},
246
+ <br>
247
+
248
+ IBM-{1144,1145,1146,1147,1148,1149,1153,1154,1155,1156,1157,1158},
249
+ <br>
250
+ IBM-{1165,1166,4971} <br>
251
+ Semitic languages: <br>
252
+ IBM-{424,425,12712,16804} <br>
253
+ Persian: <br>
254
+ IBM-1097 <br>
255
+ Thai: <br>
256
+ IBM-{838,1160} <br>
257
+ Laotian: <br>
258
+ IBM-1132 <br>
259
+ Vietnamese: <br>
260
+ IBM-{1130,1164} <br>
261
+ Indic languages: <br>
262
+ IBM-1137</p>
263
+
264
+ <p style="margin-left:11%; margin-top: 1em">The empty
265
+ encoding name &quot;&quot; is equivalent to
266
+ &quot;char&quot;: it denotes the locale dependent character
267
+ encoding.</p>
268
+
269
+ <p style="margin-left:11%; margin-top: 1em">When the string
270
+ &quot;//TRANSLIT&quot; is appended to <i>tocode</i>,
271
+ transliteration is activated. This means that when a
272
+ character cannot be represented in the target character set,
273
+ it can be approximated through one or several characters
274
+ that look similar to the original character.</p>
275
+
276
+ <p style="margin-left:11%; margin-top: 1em">When the string
277
+ &quot;//IGNORE&quot; is appended to <i>tocode</i>, invalid
278
+ multibyte sequences in the input and characters that cannot
279
+ be represented in the target character set will be silently
280
+ discarded.</p>
281
+
282
+ <p style="margin-left:11%; margin-top: 1em">When the string
283
+ &quot;//NON_IDENTICAL_DISCARD&quot; is appended to
284
+ <i>tocode</i>, characters that cannot be represented in the
285
+ target character set will be silently discarded.</p>
286
+
287
+ <p style="margin-left:11%; margin-top: 1em">The resulting
288
+ conversion descriptor can be used with <b>iconv</b> any
289
+ number of times. It remains valid until deallocated using
290
+ <b>iconv_close</b>.</p>
291
+
292
+ <p style="margin-left:11%; margin-top: 1em">A conversion
293
+ descriptor contains a conversion state. After creation using
294
+ <b>iconv_open</b>, the state is in the initial state. Using
295
+ <b>iconv</b> modifies the descriptor&rsquo;s conversion
296
+ state. (This implies that a conversion descriptor can not be
297
+ used in multiple threads simultaneously.) To bring the state
298
+ back to the initial state, use <b>iconv</b> with NULL as
299
+ <i>inbuf</i> argument.</p>
300
+
301
+ <h2>RETURN VALUE
302
+ <a name="RETURN VALUE"></a>
303
+ </h2>
304
+
305
+
306
+ <p style="margin-left:11%; margin-top: 1em">The
307
+ <b>iconv_open</b> function returns a freshly allocated
308
+ conversion descriptor. In case of error, it sets
309
+ <b>errno</b> and returns (iconv_t)(&minus;1).</p>
310
+
311
+ <h2>ERRORS
312
+ <a name="ERRORS"></a>
313
+ </h2>
314
+
315
+
316
+ <p style="margin-left:11%; margin-top: 1em">The following
317
+ error can occur, among others:</p>
318
+
319
+ <table width="100%" border="0" rules="none" frame="void"
320
+ cellspacing="0" cellpadding="0">
321
+ <tr valign="top" align="left">
322
+ <td width="11%"></td>
323
+ <td width="9%">
324
+
325
+
326
+ <p><b>EINVAL</b></p></td>
327
+ <td width="2%"></td>
328
+ <td width="78%">
329
+
330
+
331
+ <p>The conversion from <i>fromcode</i> to <i>tocode</i> is
332
+ not supported by the implementation.</p></td></tr>
333
+ </table>
334
+
335
+ <h2>CONFORMING TO
336
+ <a name="CONFORMING TO"></a>
337
+ </h2>
338
+
339
+
340
+ <p style="margin-left:11%; margin-top: 1em">POSIX:2024</p>
341
+
342
+ <h2>SEE ALSO
343
+ <a name="SEE ALSO"></a>
344
+ </h2>
345
+
346
+
347
+
348
+ <p style="margin-left:11%; margin-top: 1em"><b>iconv</b>(3)
349
+ <b>iconvctl</b>(3) <b>iconv_close</b>(3)</p>
350
+ <hr>
351
+ </body>
352
+ </html>
@@ -0,0 +1,132 @@
1
+ <!-- Creator : groff version 1.22.3 -->
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
3
+ "http://www.w3.org/TR/html4/loose.dtd">
4
+ <html>
5
+ <head>
6
+ <meta name="generator" content="groff -Thtml, see www.gnu.org">
7
+ <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
8
+ <meta name="Content-Style" content="text/css">
9
+ <style type="text/css">
10
+ p { margin-top: 0; margin-bottom: 0; vertical-align: top }
11
+ pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
12
+ table { margin-top: 0; margin-bottom: 0; vertical-align: top }
13
+ h1 { text-align: center }
14
+ </style>
15
+ <title>ICONV_OPEN_INTO</title>
16
+
17
+ </head>
18
+ <body>
19
+
20
+ <h1 align="center">ICONV_OPEN_INTO</h1>
21
+
22
+ <a href="#NAME">NAME</a><br>
23
+ <a href="#SYNOPSIS">SYNOPSIS</a><br>
24
+ <a href="#DESCRIPTION">DESCRIPTION</a><br>
25
+ <a href="#RETURN VALUE">RETURN VALUE</a><br>
26
+ <a href="#ERRORS">ERRORS</a><br>
27
+ <a href="#CONFORMING TO">CONFORMING TO</a><br>
28
+ <a href="#SEE ALSO">SEE ALSO</a><br>
29
+
30
+ <hr>
31
+
32
+
33
+ <h2>NAME
34
+ <a name="NAME"></a>
35
+ </h2>
36
+
37
+
38
+
39
+ <p style="margin-left:11%; margin-top: 1em">iconv_open_into
40
+ &minus; initialize descriptor for character set
41
+ conversion</p>
42
+
43
+ <h2>SYNOPSIS
44
+ <a name="SYNOPSIS"></a>
45
+ </h2>
46
+
47
+
48
+ <p style="margin-left:11%; margin-top: 1em"><b>#include
49
+ &lt;iconv.h&gt;</b></p>
50
+
51
+ <p style="margin-left:11%; margin-top: 1em"><b>int
52
+ iconv_open_into (const char*</b> <i>tocode</i><b>, const
53
+ char*</b> <i>fromcode</i><b>, <br>
54
+ iconv_allocation_t*</b> <i>resultp</i><b>);</b></p>
55
+
56
+ <h2>DESCRIPTION
57
+ <a name="DESCRIPTION"></a>
58
+ </h2>
59
+
60
+
61
+ <p style="margin-left:11%; margin-top: 1em">The
62
+ <b>iconv_open_into</b> function initializes a conversion
63
+ descriptor suitable for converting byte sequences from
64
+ character encoding <i>fromcode</i> to character encoding
65
+ <i>tocode</i>. The conversion descriptor is stored in the
66
+ memory pointed to by <i>resultp</i>.</p>
67
+
68
+ <p style="margin-left:11%; margin-top: 1em">The values
69
+ permitted for <i>fromcode</i> and <i>tocode</i> are the same
70
+ as for the function <b>iconv_open</b>.</p>
71
+
72
+ <p style="margin-left:11%; margin-top: 1em">After a
73
+ successful return from this function, <i>resultp</i> can be
74
+ be used as an <b>iconv_t</b> object with the <b>iconv</b>
75
+ function.</p>
76
+
77
+ <h2>RETURN VALUE
78
+ <a name="RETURN VALUE"></a>
79
+ </h2>
80
+
81
+
82
+ <p style="margin-left:11%; margin-top: 1em">The
83
+ <b>iconv_open_into</b> function fills <b>*</b><i>resultp</i>
84
+ and returns 0 if it succeeds. In case of error, it sets
85
+ <b>errno</b> and returns &minus;1.</p>
86
+
87
+ <h2>ERRORS
88
+ <a name="ERRORS"></a>
89
+ </h2>
90
+
91
+
92
+ <p style="margin-left:11%; margin-top: 1em">The following
93
+ error can occur, among others:</p>
94
+
95
+ <table width="100%" border="0" rules="none" frame="void"
96
+ cellspacing="0" cellpadding="0">
97
+ <tr valign="top" align="left">
98
+ <td width="11%"></td>
99
+ <td width="9%">
100
+
101
+
102
+ <p><b>EINVAL</b></p></td>
103
+ <td width="2%"></td>
104
+ <td width="78%">
105
+
106
+
107
+ <p>The conversion from <i>fromcode</i> to <i>tocode</i> is
108
+ not supported by the implementation.</p></td></tr>
109
+ </table>
110
+
111
+ <h2>CONFORMING TO
112
+ <a name="CONFORMING TO"></a>
113
+ </h2>
114
+
115
+
116
+ <p style="margin-left:11%; margin-top: 1em">This function
117
+ is implemented only in GNU libiconv and not in other
118
+ <b>iconv</b> implementations. It is not backed by a
119
+ standard. You can test for its presence through
120
+ <b>(_LIBICONV_VERSION &gt;= 0x010D)</b>.</p>
121
+
122
+ <h2>SEE ALSO
123
+ <a name="SEE ALSO"></a>
124
+ </h2>
125
+
126
+
127
+
128
+ <p style="margin-left:11%; margin-top: 1em"><b>iconv_open</b>(3)
129
+ <b>iconv</b>(3)</p>
130
+ <hr>
131
+ </body>
132
+ </html>