@cpp.js/package-iconv 1.0.0-beta.20

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 (139) hide show
  1. package/LICENSE +502 -0
  2. package/README.md +47 -0
  3. package/cppjs-package-iconv.podspec +13 -0
  4. package/cppjs.build.js +14 -0
  5. package/cppjs.config.js +18 -0
  6. package/dist/prebuilt/Android-arm64-v8a/include/iconv.h +241 -0
  7. package/dist/prebuilt/Android-arm64-v8a/include/libcharset.h +45 -0
  8. package/dist/prebuilt/Android-arm64-v8a/include/localcharset.h +137 -0
  9. package/dist/prebuilt/Android-arm64-v8a/lib/libcharset.la +41 -0
  10. package/dist/prebuilt/Android-arm64-v8a/lib/libcharset.so +0 -0
  11. package/dist/prebuilt/Android-arm64-v8a/lib/libiconv.la +41 -0
  12. package/dist/prebuilt/Android-arm64-v8a/lib/libiconv.so +0 -0
  13. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv.1.html +205 -0
  14. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv.3.html +206 -0
  15. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_close.3.html +89 -0
  16. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_open.3.html +345 -0
  17. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_open_into.3.html +132 -0
  18. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconvctl.3.html +170 -0
  19. package/dist/prebuilt/Android-arm64-v8a/share/man/man1/iconv.1 +108 -0
  20. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv.3 +92 -0
  21. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_close.3 +31 -0
  22. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_open.3 +254 -0
  23. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_open_into.3 +47 -0
  24. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconvctl.3 +67 -0
  25. package/dist/prebuilt/CMakeLists.txt +44 -0
  26. package/dist/prebuilt/Emscripten-x86_64/include/iconv.h +241 -0
  27. package/dist/prebuilt/Emscripten-x86_64/include/libcharset.h +45 -0
  28. package/dist/prebuilt/Emscripten-x86_64/include/localcharset.h +137 -0
  29. package/dist/prebuilt/Emscripten-x86_64/lib/libcharset.a +0 -0
  30. package/dist/prebuilt/Emscripten-x86_64/lib/libcharset.la +41 -0
  31. package/dist/prebuilt/Emscripten-x86_64/lib/libiconv.a +0 -0
  32. package/dist/prebuilt/Emscripten-x86_64/lib/libiconv.la +41 -0
  33. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv.1.html +205 -0
  34. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv.3.html +206 -0
  35. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_close.3.html +89 -0
  36. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_open.3.html +345 -0
  37. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_open_into.3.html +132 -0
  38. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconvctl.3.html +170 -0
  39. package/dist/prebuilt/Emscripten-x86_64/share/locale/af/LC_MESSAGES/libiconv.mo +0 -0
  40. package/dist/prebuilt/Emscripten-x86_64/share/locale/bg/LC_MESSAGES/libiconv.mo +0 -0
  41. package/dist/prebuilt/Emscripten-x86_64/share/locale/ca/LC_MESSAGES/libiconv.mo +0 -0
  42. package/dist/prebuilt/Emscripten-x86_64/share/locale/cs/LC_MESSAGES/libiconv.mo +0 -0
  43. package/dist/prebuilt/Emscripten-x86_64/share/locale/da/LC_MESSAGES/libiconv.mo +0 -0
  44. package/dist/prebuilt/Emscripten-x86_64/share/locale/de/LC_MESSAGES/libiconv.mo +0 -0
  45. package/dist/prebuilt/Emscripten-x86_64/share/locale/el/LC_MESSAGES/libiconv.mo +0 -0
  46. package/dist/prebuilt/Emscripten-x86_64/share/locale/eo/LC_MESSAGES/libiconv.mo +0 -0
  47. package/dist/prebuilt/Emscripten-x86_64/share/locale/es/LC_MESSAGES/libiconv.mo +0 -0
  48. package/dist/prebuilt/Emscripten-x86_64/share/locale/et/LC_MESSAGES/libiconv.mo +0 -0
  49. package/dist/prebuilt/Emscripten-x86_64/share/locale/fi/LC_MESSAGES/libiconv.mo +0 -0
  50. package/dist/prebuilt/Emscripten-x86_64/share/locale/fr/LC_MESSAGES/libiconv.mo +0 -0
  51. package/dist/prebuilt/Emscripten-x86_64/share/locale/ga/LC_MESSAGES/libiconv.mo +0 -0
  52. package/dist/prebuilt/Emscripten-x86_64/share/locale/gl/LC_MESSAGES/libiconv.mo +0 -0
  53. package/dist/prebuilt/Emscripten-x86_64/share/locale/hr/LC_MESSAGES/libiconv.mo +0 -0
  54. package/dist/prebuilt/Emscripten-x86_64/share/locale/hu/LC_MESSAGES/libiconv.mo +0 -0
  55. package/dist/prebuilt/Emscripten-x86_64/share/locale/id/LC_MESSAGES/libiconv.mo +0 -0
  56. package/dist/prebuilt/Emscripten-x86_64/share/locale/it/LC_MESSAGES/libiconv.mo +0 -0
  57. package/dist/prebuilt/Emscripten-x86_64/share/locale/ja/LC_MESSAGES/libiconv.mo +0 -0
  58. package/dist/prebuilt/Emscripten-x86_64/share/locale/ko/LC_MESSAGES/libiconv.mo +0 -0
  59. package/dist/prebuilt/Emscripten-x86_64/share/locale/lt/LC_MESSAGES/libiconv.mo +0 -0
  60. package/dist/prebuilt/Emscripten-x86_64/share/locale/nl/LC_MESSAGES/libiconv.mo +0 -0
  61. package/dist/prebuilt/Emscripten-x86_64/share/locale/pl/LC_MESSAGES/libiconv.mo +0 -0
  62. package/dist/prebuilt/Emscripten-x86_64/share/locale/pt_BR/LC_MESSAGES/libiconv.mo +0 -0
  63. package/dist/prebuilt/Emscripten-x86_64/share/locale/rm/LC_MESSAGES/libiconv.mo +0 -0
  64. package/dist/prebuilt/Emscripten-x86_64/share/locale/ro/LC_MESSAGES/libiconv.mo +0 -0
  65. package/dist/prebuilt/Emscripten-x86_64/share/locale/ru/LC_MESSAGES/libiconv.mo +0 -0
  66. package/dist/prebuilt/Emscripten-x86_64/share/locale/sk/LC_MESSAGES/libiconv.mo +0 -0
  67. package/dist/prebuilt/Emscripten-x86_64/share/locale/sl/LC_MESSAGES/libiconv.mo +0 -0
  68. package/dist/prebuilt/Emscripten-x86_64/share/locale/sq/LC_MESSAGES/libiconv.mo +0 -0
  69. package/dist/prebuilt/Emscripten-x86_64/share/locale/sr/LC_MESSAGES/libiconv.mo +0 -0
  70. package/dist/prebuilt/Emscripten-x86_64/share/locale/sv/LC_MESSAGES/libiconv.mo +0 -0
  71. package/dist/prebuilt/Emscripten-x86_64/share/locale/tr/LC_MESSAGES/libiconv.mo +0 -0
  72. package/dist/prebuilt/Emscripten-x86_64/share/locale/uk/LC_MESSAGES/libiconv.mo +0 -0
  73. package/dist/prebuilt/Emscripten-x86_64/share/locale/vi/LC_MESSAGES/libiconv.mo +0 -0
  74. package/dist/prebuilt/Emscripten-x86_64/share/locale/wa/LC_MESSAGES/libiconv.mo +0 -0
  75. package/dist/prebuilt/Emscripten-x86_64/share/locale/zh_CN/LC_MESSAGES/libiconv.mo +0 -0
  76. package/dist/prebuilt/Emscripten-x86_64/share/locale/zh_TW/LC_MESSAGES/libiconv.mo +0 -0
  77. package/dist/prebuilt/Emscripten-x86_64/share/man/man1/iconv.1 +108 -0
  78. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv.3 +92 -0
  79. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_close.3 +31 -0
  80. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_open.3 +254 -0
  81. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_open_into.3 +47 -0
  82. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconvctl.3 +67 -0
  83. package/dist/prebuilt/charset.xcframework/Info.plist +50 -0
  84. package/dist/prebuilt/charset.xcframework/ios-arm64_arm64e/Headers/iconv.h +241 -0
  85. package/dist/prebuilt/charset.xcframework/ios-arm64_arm64e/Headers/libcharset.h +45 -0
  86. package/dist/prebuilt/charset.xcframework/ios-arm64_arm64e/Headers/localcharset.h +137 -0
  87. package/dist/prebuilt/charset.xcframework/ios-arm64_arm64e/libcharset.a +0 -0
  88. package/dist/prebuilt/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/iconv.h +241 -0
  89. package/dist/prebuilt/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/libcharset.h +45 -0
  90. package/dist/prebuilt/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/localcharset.h +137 -0
  91. package/dist/prebuilt/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/libcharset.a +0 -0
  92. package/dist/prebuilt/iOS-iphoneos/include/iconv.h +241 -0
  93. package/dist/prebuilt/iOS-iphoneos/include/libcharset.h +45 -0
  94. package/dist/prebuilt/iOS-iphoneos/include/localcharset.h +137 -0
  95. package/dist/prebuilt/iOS-iphoneos/lib/libcharset.a +0 -0
  96. package/dist/prebuilt/iOS-iphoneos/lib/libcharset.la +41 -0
  97. package/dist/prebuilt/iOS-iphoneos/lib/libiconv.a +0 -0
  98. package/dist/prebuilt/iOS-iphoneos/lib/libiconv.la +41 -0
  99. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv.1.html +205 -0
  100. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv.3.html +206 -0
  101. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_close.3.html +89 -0
  102. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_open.3.html +345 -0
  103. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_open_into.3.html +132 -0
  104. package/dist/prebuilt/iOS-iphoneos/share/doc/iconvctl.3.html +170 -0
  105. package/dist/prebuilt/iOS-iphoneos/share/man/man1/iconv.1 +108 -0
  106. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv.3 +92 -0
  107. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_close.3 +31 -0
  108. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_open.3 +254 -0
  109. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_open_into.3 +47 -0
  110. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconvctl.3 +67 -0
  111. package/dist/prebuilt/iOS-iphonesimulator/include/iconv.h +241 -0
  112. package/dist/prebuilt/iOS-iphonesimulator/include/libcharset.h +45 -0
  113. package/dist/prebuilt/iOS-iphonesimulator/include/localcharset.h +137 -0
  114. package/dist/prebuilt/iOS-iphonesimulator/lib/libcharset.a +0 -0
  115. package/dist/prebuilt/iOS-iphonesimulator/lib/libcharset.la +41 -0
  116. package/dist/prebuilt/iOS-iphonesimulator/lib/libiconv.a +0 -0
  117. package/dist/prebuilt/iOS-iphonesimulator/lib/libiconv.la +41 -0
  118. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv.1.html +205 -0
  119. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv.3.html +206 -0
  120. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_close.3.html +89 -0
  121. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_open.3.html +345 -0
  122. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_open_into.3.html +132 -0
  123. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconvctl.3.html +170 -0
  124. package/dist/prebuilt/iOS-iphonesimulator/share/man/man1/iconv.1 +108 -0
  125. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv.3 +92 -0
  126. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_close.3 +31 -0
  127. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_open.3 +254 -0
  128. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_open_into.3 +47 -0
  129. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconvctl.3 +67 -0
  130. package/dist/prebuilt/iconv.xcframework/Info.plist +50 -0
  131. package/dist/prebuilt/iconv.xcframework/ios-arm64_arm64e/Headers/iconv.h +241 -0
  132. package/dist/prebuilt/iconv.xcframework/ios-arm64_arm64e/Headers/libcharset.h +45 -0
  133. package/dist/prebuilt/iconv.xcframework/ios-arm64_arm64e/Headers/localcharset.h +137 -0
  134. package/dist/prebuilt/iconv.xcframework/ios-arm64_arm64e/libiconv.a +0 -0
  135. package/dist/prebuilt/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/iconv.h +241 -0
  136. package/dist/prebuilt/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/libcharset.h +45 -0
  137. package/dist/prebuilt/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/localcharset.h +137 -0
  138. package/dist/prebuilt/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/libiconv.a +0 -0
  139. package/package.json +28 -0
@@ -0,0 +1,205 @@
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</title>
16
+
17
+ </head>
18
+ <body>
19
+
20
+ <h1 align="center">ICONV</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="#EXAMPLES">EXAMPLES</a><br>
26
+ <a href="#CONFORMING TO">CONFORMING TO</a><br>
27
+ <a href="#SEE ALSO">SEE ALSO</a><br>
28
+
29
+ <hr>
30
+
31
+
32
+ <h2>NAME
33
+ <a name="NAME"></a>
34
+ </h2>
35
+
36
+
37
+ <p style="margin-left:11%; margin-top: 1em">iconv &minus;
38
+ character set conversion</p>
39
+
40
+ <h2>SYNOPSIS
41
+ <a name="SYNOPSIS"></a>
42
+ </h2>
43
+
44
+
45
+ <p style="margin-left:11%; margin-top: 1em">iconv
46
+ [<i>OPTION</i>...] [<b>&minus;f</b> <i>encoding</i>]
47
+ [<b>&minus;t</b> <i>encoding</i>] [<i>inputfile</i> ...]
48
+ <br>
49
+ iconv <b>&minus;l</b></p>
50
+
51
+ <h2>DESCRIPTION
52
+ <a name="DESCRIPTION"></a>
53
+ </h2>
54
+
55
+
56
+ <p style="margin-left:11%; margin-top: 1em">The
57
+ <b>iconv</b> program converts text from one encoding to
58
+ another encoding. More precisely, it converts <b>from</b>
59
+ the encoding given for the <b>&minus;f</b> option <b>to</b>
60
+ the encoding given for the <b>&minus;t</b> option. Either of
61
+ these encodings defaults to the encoding of the current
62
+ locale. All the <i>inputfile</i>s are read and converted in
63
+ turn; if no <i>inputfile</i> is given, the standard input is
64
+ used. The converted text is printed to standard output.</p>
65
+
66
+ <p style="margin-left:11%; margin-top: 1em">The encodings
67
+ permitted are system dependent. For the libiconv
68
+ implementation, they are listed in the iconv_open(3) manual
69
+ page.</p>
70
+
71
+ <p style="margin-left:11%; margin-top: 1em">Options
72
+ controlling the input and output format: <b><br>
73
+ &minus;f</b> <i>encoding</i>,
74
+ <b>&minus;&minus;from&minus;code=</b><i>encoding</i></p>
75
+
76
+ <p style="margin-left:22%;">Specifies the encoding of the
77
+ input.</p>
78
+
79
+ <p style="margin-left:11%;"><b>&minus;t</b>
80
+ <i>encoding</i>,
81
+ <b>&minus;&minus;to&minus;code=</b><i>encoding</i></p>
82
+
83
+ <p style="margin-left:22%;">Specifies the encoding of the
84
+ output.</p>
85
+
86
+ <p style="margin-left:11%; margin-top: 1em">Options
87
+ controlling conversion problems:</p>
88
+
89
+ <table width="100%" border="0" rules="none" frame="void"
90
+ cellspacing="0" cellpadding="0">
91
+ <tr valign="top" align="left">
92
+ <td width="11%"></td>
93
+ <td width="3%">
94
+
95
+
96
+ <p><b>&minus;c</b></p></td>
97
+ <td width="8%"></td>
98
+ <td width="78%">
99
+
100
+
101
+ <p>When this option is given, characters that cannot be
102
+ converted are silently discarded, instead of leading to a
103
+ conversion error.</p></td></tr>
104
+ </table>
105
+
106
+
107
+ <p style="margin-left:11%;"><b>&minus;&minus;unicode&minus;subst=</b><i>formatstring</i></p>
108
+
109
+ <p style="margin-left:22%;">When this option is given,
110
+ Unicode characters that cannot be represented in the target
111
+ encoding are replaced with a placeholder string that is
112
+ constructed from the given <i>formatstring</i>, applied to
113
+ the Unicode code point. The <i>formatstring</i> must be a
114
+ format string in the same format as for the <i>printf</i>
115
+ command or the <i>printf()</i> function, taking either no
116
+ argument or exactly one unsigned integer argument.</p>
117
+
118
+
119
+ <p style="margin-left:11%;"><b>&minus;&minus;byte&minus;subst=</b><i>formatstring</i></p>
120
+
121
+ <p style="margin-left:22%;">When this option is given,
122
+ bytes in the input that are not valid in the source encoding
123
+ are replaced with a placeholder string that is constructed
124
+ from the given <i>formatstring</i>, applied to the
125
+ byte&rsquo;s value. The <i>formatstring</i> must be a format
126
+ string in the same format as for the <i>printf</i> command
127
+ or the <i>printf()</i> function, taking either no argument
128
+ or exactly one unsigned integer argument.</p>
129
+
130
+
131
+ <p style="margin-left:11%;"><b>&minus;&minus;widechar&minus;subst=</b><i>formatstring</i></p>
132
+
133
+ <p style="margin-left:22%;">When this option is given, wide
134
+ characters in the input that are not valid in the source
135
+ encoding are replaced with a placeholder string that is
136
+ constructed from the given <i>formatstring</i>, applied to
137
+ the byte&rsquo;s value. The <i>formatstring</i> must be a
138
+ format string in the same format as for the <i>printf</i>
139
+ command or the <i>printf()</i> function, taking either no
140
+ argument or exactly one unsigned integer argument.</p>
141
+
142
+ <p style="margin-left:11%; margin-top: 1em">Options
143
+ controlling error output: <b><br>
144
+ &minus;s</b>, <b>&minus;&minus;silent</b></p>
145
+
146
+ <p style="margin-left:22%;">When this option is given,
147
+ error messages about invalid or unconvertible characters are
148
+ omitted, but the actual converted text is unaffected.</p>
149
+
150
+ <p style="margin-left:11%; margin-top: 1em">The <b>iconv
151
+ &minus;l</b> or <b>iconv &minus;&minus;list</b> command
152
+ lists the names of the supported encodings, in a system
153
+ dependent format. For the libiconv implementation, the names
154
+ are printed in upper case, separated by whitespace, and
155
+ alias names of an encoding are listed on the same line as
156
+ the encoding itself.</p>
157
+
158
+ <h2>EXAMPLES
159
+ <a name="EXAMPLES"></a>
160
+ </h2>
161
+
162
+
163
+ <p style="margin-left:11%; margin-top: 1em"><b>iconv
164
+ &minus;f ISO&minus;8859&minus;1 &minus;t UTF&minus;8</b></p>
165
+
166
+ <p style="margin-left:22%;">converts input from the old
167
+ West-European encoding ISO&minus;8859&minus;1 to
168
+ Unicode.</p>
169
+
170
+ <p style="margin-left:11%; margin-top: 1em"><b>iconv
171
+ &minus;f KOI8&minus;R
172
+ &minus;&minus;byte&minus;subst=&quot;&lt;0x%x&gt;&quot; <br>
173
+
174
+ &minus;&minus;unicode&minus;subst=&quot;&lt;U+%04X&gt;&quot;</b></p>
175
+
176
+ <p style="margin-left:22%;">converts input from the old
177
+ Russian encoding KOI8&minus;R to the locale encoding,
178
+ substituting an angle bracket notation with hexadecimal
179
+ numbers for invalid bytes and for valid but unconvertible
180
+ characters.</p>
181
+
182
+ <p style="margin-left:11%;"><b>iconv
183
+ &minus;&minus;list</b></p>
184
+
185
+ <p style="margin-left:22%;">lists the supported
186
+ encodings.</p>
187
+
188
+ <h2>CONFORMING TO
189
+ <a name="CONFORMING TO"></a>
190
+ </h2>
191
+
192
+
193
+ <p style="margin-left:11%; margin-top: 1em">POSIX:2001</p>
194
+
195
+ <h2>SEE ALSO
196
+ <a name="SEE ALSO"></a>
197
+ </h2>
198
+
199
+
200
+
201
+ <p style="margin-left:11%; margin-top: 1em"><b>iconv_open</b>(3),
202
+ <b>locale</b>(7)</p>
203
+ <hr>
204
+ </body>
205
+ </html>
@@ -0,0 +1,206 @@
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</title>
16
+
17
+ </head>
18
+ <body>
19
+
20
+ <h1 align="center">ICONV</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 &minus;
39
+ perform 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>size_t iconv
50
+ (iconv_t</b> <i>cd</i><b>, <br>
51
+ const char* *</b> <i>inbuf</i><b>, size_t *</b>
52
+ <i>inbytesleft</i><b>, <br>
53
+ char* *</b> <i>outbuf</i><b>, size_t *</b>
54
+ <i>outbytesleft</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 argument
62
+ <i>cd</i> must be a conversion descriptor created using the
63
+ function <b>iconv_open</b>.</p>
64
+
65
+ <p style="margin-left:11%; margin-top: 1em">The main case
66
+ is when <i>inbuf</i> is not NULL and <i>*inbuf</i> is not
67
+ NULL. In this case, the <b>iconv</b> function converts the
68
+ multibyte sequence starting at <i>*inbuf</i> to a multibyte
69
+ sequence starting at <i>*outbuf</i>. At most
70
+ <i>*inbytesleft</i> bytes, starting at <i>*inbuf</i>, will
71
+ be read. At most <i>*outbytesleft</i> bytes, starting at
72
+ <i>*outbuf</i>, will be written.</p>
73
+
74
+ <p style="margin-left:11%; margin-top: 1em">The
75
+ <b>iconv</b> function converts one multibyte character at a
76
+ time, and for each character conversion it increments
77
+ <i>*inbuf</i> and decrements <i>*inbytesleft</i> by the
78
+ number of converted input bytes, it increments
79
+ <i>*outbuf</i> and decrements <i>*outbytesleft</i> by the
80
+ number of converted output bytes, and it updates the
81
+ conversion state contained in <i>cd</i>. If the character
82
+ encoding of the input is stateful, the <b>iconv</b> function
83
+ can also convert a sequence of input bytes to an update of
84
+ the conversion state without producing any output bytes;
85
+ such input is called a <i>shift sequence</i>. The conversion
86
+ can stop for four reasons:</p>
87
+
88
+ <p style="margin-left:11%; margin-top: 1em">1. An invalid
89
+ multibyte sequence is encountered in the input. In this case
90
+ it sets <b>errno</b> to <b>EILSEQ</b> and returns
91
+ (size_t)(&minus;1). <i>*inbuf</i> is left pointing to the
92
+ beginning of the invalid multibyte sequence.</p>
93
+
94
+ <p style="margin-left:11%; margin-top: 1em">2. The input
95
+ byte sequence has been entirely converted, i.e.
96
+ <i>*inbytesleft</i> has gone down to 0. In this case
97
+ <b>iconv</b> returns the number of non-reversible
98
+ conversions performed during this call.</p>
99
+
100
+ <p style="margin-left:11%; margin-top: 1em">3. An
101
+ incomplete multibyte sequence is encountered in the input,
102
+ and the input byte sequence terminates after it. In this
103
+ case it sets <b>errno</b> to <b>EINVAL</b> and returns
104
+ (size_t)(&minus;1). <i>*inbuf</i> is left pointing to the
105
+ beginning of the incomplete multibyte sequence.</p>
106
+
107
+ <p style="margin-left:11%; margin-top: 1em">4. The output
108
+ buffer has no more room for the next converted character. In
109
+ this case it sets <b>errno</b> to <b>E2BIG</b> and returns
110
+ (size_t)(&minus;1).</p>
111
+
112
+ <p style="margin-left:11%; margin-top: 1em">A different
113
+ case is when <i>inbuf</i> is NULL or <i>*inbuf</i> is NULL,
114
+ but <i>outbuf</i> is not NULL and <i>*outbuf</i> is not
115
+ NULL. In this case, the <b>iconv</b> function attempts to
116
+ set <i>cd</i>&rsquo;s conversion state to the initial state
117
+ and store a corresponding shift sequence at <i>*outbuf</i>.
118
+ At most <i>*outbytesleft</i> bytes, starting at
119
+ <i>*outbuf</i>, will be written. If the output buffer has no
120
+ more room for this reset sequence, it sets <b>errno</b> to
121
+ <b>E2BIG</b> and returns (size_t)(&minus;1). Otherwise it
122
+ increments <i>*outbuf</i> and decrements
123
+ <i>*outbytesleft</i> by the number of bytes written.</p>
124
+
125
+ <p style="margin-left:11%; margin-top: 1em">A third case is
126
+ when <i>inbuf</i> is NULL or <i>*inbuf</i> is NULL, and
127
+ <i>outbuf</i> is NULL or <i>*outbuf</i> is NULL. In this
128
+ case, the <b>iconv</b> function sets <i>cd</i>&rsquo;s
129
+ conversion state to the initial state.</p>
130
+
131
+ <h2>RETURN VALUE
132
+ <a name="RETURN VALUE"></a>
133
+ </h2>
134
+
135
+
136
+ <p style="margin-left:11%; margin-top: 1em">The
137
+ <b>iconv</b> function returns the number of characters
138
+ converted in a non-reversible way during this call;
139
+ reversible conversions are not counted. In case of error, it
140
+ sets <b>errno</b> and returns (size_t)(&minus;1).</p>
141
+
142
+ <h2>ERRORS
143
+ <a name="ERRORS"></a>
144
+ </h2>
145
+
146
+
147
+ <p style="margin-left:11%; margin-top: 1em">The following
148
+ errors can occur, among others:</p>
149
+
150
+ <table width="100%" border="0" rules="none" frame="void"
151
+ cellspacing="0" cellpadding="0">
152
+ <tr valign="top" align="left">
153
+ <td width="11%"></td>
154
+ <td width="9%">
155
+
156
+
157
+ <p><b>E2BIG</b></p></td>
158
+ <td width="2%"></td>
159
+ <td width="78%">
160
+
161
+
162
+ <p>There is not sufficient room at <i>*outbuf</i>.</p></td></tr>
163
+ <tr valign="top" align="left">
164
+ <td width="11%"></td>
165
+ <td width="9%">
166
+
167
+
168
+ <p><b>EILSEQ</b></p></td>
169
+ <td width="2%"></td>
170
+ <td width="78%">
171
+
172
+
173
+ <p>An invalid multibyte sequence has been encountered in
174
+ the input.</p></td></tr>
175
+ <tr valign="top" align="left">
176
+ <td width="11%"></td>
177
+ <td width="9%">
178
+
179
+
180
+ <p><b>EINVAL</b></p></td>
181
+ <td width="2%"></td>
182
+ <td width="78%">
183
+
184
+
185
+ <p>An incomplete multibyte sequence has been encountered in
186
+ the input.</p></td></tr>
187
+ </table>
188
+
189
+ <h2>CONFORMING TO
190
+ <a name="CONFORMING TO"></a>
191
+ </h2>
192
+
193
+
194
+ <p style="margin-left:11%; margin-top: 1em">POSIX:2001</p>
195
+
196
+ <h2>SEE ALSO
197
+ <a name="SEE ALSO"></a>
198
+ </h2>
199
+
200
+
201
+
202
+ <p style="margin-left:11%; margin-top: 1em"><b>iconv_open</b>(3),
203
+ <b>iconvctl</b>(3) <b>iconv_close</b>(3)</p>
204
+ <hr>
205
+ </body>
206
+ </html>
@@ -0,0 +1,89 @@
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_CLOSE</title>
16
+
17
+ </head>
18
+ <body>
19
+
20
+ <h1 align="center">ICONV_CLOSE</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="#CONFORMING TO">CONFORMING TO</a><br>
27
+ <a href="#SEE ALSO">SEE ALSO</a><br>
28
+
29
+ <hr>
30
+
31
+
32
+ <h2>NAME
33
+ <a name="NAME"></a>
34
+ </h2>
35
+
36
+
37
+ <p style="margin-left:11%; margin-top: 1em">iconv_close
38
+ &minus; deallocate descriptor for character set
39
+ 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>int
50
+ iconv_close (iconv_t</b> <i>cd</i><b>);</b></p>
51
+
52
+ <h2>DESCRIPTION
53
+ <a name="DESCRIPTION"></a>
54
+ </h2>
55
+
56
+
57
+ <p style="margin-left:11%; margin-top: 1em">The
58
+ <b>iconv_close</b> function deallocates a conversion
59
+ descriptor <i>cd</i> previously allocated using
60
+ <b>iconv_open</b>.</p>
61
+
62
+ <h2>RETURN VALUE
63
+ <a name="RETURN VALUE"></a>
64
+ </h2>
65
+
66
+
67
+ <p style="margin-left:11%; margin-top: 1em">When
68
+ successful, the <b>iconv_close</b> function returns 0. In
69
+ case of error, it sets <b>errno</b> and returns
70
+ &minus;1.</p>
71
+
72
+ <h2>CONFORMING TO
73
+ <a name="CONFORMING TO"></a>
74
+ </h2>
75
+
76
+
77
+ <p style="margin-left:11%; margin-top: 1em">POSIX:2001</p>
78
+
79
+ <h2>SEE ALSO
80
+ <a name="SEE ALSO"></a>
81
+ </h2>
82
+
83
+
84
+
85
+ <p style="margin-left:11%; margin-top: 1em"><b>iconv_open</b>(3)
86
+ <b>iconv</b>(3)</p>
87
+ <hr>
88
+ </body>
89
+ </html>