@cpp.js/package-iconv 1.0.0 → 2.0.0-beta.2

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 (156) hide show
  1. package/cppjs.config.js +12 -16
  2. package/package.json +9 -11
  3. package/charset.xcframework/Info.plist +0 -50
  4. package/charset.xcframework/ios-arm64_arm64e/Headers/iconv.h +0 -243
  5. package/charset.xcframework/ios-arm64_arm64e/Headers/libcharset.h +0 -45
  6. package/charset.xcframework/ios-arm64_arm64e/Headers/localcharset.h +0 -137
  7. package/charset.xcframework/ios-arm64_arm64e/libcharset.a +0 -0
  8. package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/iconv.h +0 -243
  9. package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/libcharset.h +0 -45
  10. package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/localcharset.h +0 -137
  11. package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/libcharset.a +0 -0
  12. package/dist/prebuilt/Android-arm64-v8a/include/iconv.h +0 -243
  13. package/dist/prebuilt/Android-arm64-v8a/include/libcharset.h +0 -45
  14. package/dist/prebuilt/Android-arm64-v8a/include/localcharset.h +0 -137
  15. package/dist/prebuilt/Android-arm64-v8a/lib/libcharset.la +0 -41
  16. package/dist/prebuilt/Android-arm64-v8a/lib/libcharset.so +0 -0
  17. package/dist/prebuilt/Android-arm64-v8a/lib/libiconv.la +0 -41
  18. package/dist/prebuilt/Android-arm64-v8a/lib/libiconv.so +0 -0
  19. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv.1.html +0 -217
  20. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv.3.html +0 -255
  21. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_close.3.html +0 -89
  22. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_open.3.html +0 -352
  23. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_open_into.3.html +0 -132
  24. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconvctl.3.html +0 -244
  25. package/dist/prebuilt/Android-arm64-v8a/share/man/man1/iconv.1 +0 -112
  26. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv.3 +0 -129
  27. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_close.3 +0 -31
  28. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_open.3 +0 -260
  29. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_open_into.3 +0 -47
  30. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconvctl.3 +0 -112
  31. package/dist/prebuilt/Android-x86_64/include/iconv.h +0 -243
  32. package/dist/prebuilt/Android-x86_64/include/libcharset.h +0 -45
  33. package/dist/prebuilt/Android-x86_64/include/localcharset.h +0 -137
  34. package/dist/prebuilt/Android-x86_64/lib/libcharset.la +0 -41
  35. package/dist/prebuilt/Android-x86_64/lib/libcharset.so +0 -0
  36. package/dist/prebuilt/Android-x86_64/lib/libiconv.la +0 -41
  37. package/dist/prebuilt/Android-x86_64/lib/libiconv.so +0 -0
  38. package/dist/prebuilt/Android-x86_64/share/doc/iconv.1.html +0 -217
  39. package/dist/prebuilt/Android-x86_64/share/doc/iconv.3.html +0 -255
  40. package/dist/prebuilt/Android-x86_64/share/doc/iconv_close.3.html +0 -89
  41. package/dist/prebuilt/Android-x86_64/share/doc/iconv_open.3.html +0 -352
  42. package/dist/prebuilt/Android-x86_64/share/doc/iconv_open_into.3.html +0 -132
  43. package/dist/prebuilt/Android-x86_64/share/doc/iconvctl.3.html +0 -244
  44. package/dist/prebuilt/Android-x86_64/share/man/man1/iconv.1 +0 -112
  45. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv.3 +0 -129
  46. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_close.3 +0 -31
  47. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_open.3 +0 -260
  48. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_open_into.3 +0 -47
  49. package/dist/prebuilt/Android-x86_64/share/man/man3/iconvctl.3 +0 -112
  50. package/dist/prebuilt/CMakeLists.txt +0 -44
  51. package/dist/prebuilt/Emscripten-x86_64/include/iconv.h +0 -243
  52. package/dist/prebuilt/Emscripten-x86_64/include/libcharset.h +0 -45
  53. package/dist/prebuilt/Emscripten-x86_64/include/localcharset.h +0 -137
  54. package/dist/prebuilt/Emscripten-x86_64/lib/libcharset.a +0 -0
  55. package/dist/prebuilt/Emscripten-x86_64/lib/libcharset.la +0 -41
  56. package/dist/prebuilt/Emscripten-x86_64/lib/libiconv.a +0 -0
  57. package/dist/prebuilt/Emscripten-x86_64/lib/libiconv.la +0 -41
  58. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv.1.html +0 -217
  59. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv.3.html +0 -255
  60. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_close.3.html +0 -89
  61. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_open.3.html +0 -352
  62. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_open_into.3.html +0 -132
  63. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconvctl.3.html +0 -244
  64. package/dist/prebuilt/Emscripten-x86_64/share/locale/af/LC_MESSAGES/libiconv.mo +0 -0
  65. package/dist/prebuilt/Emscripten-x86_64/share/locale/be/LC_MESSAGES/libiconv.mo +0 -0
  66. package/dist/prebuilt/Emscripten-x86_64/share/locale/bg/LC_MESSAGES/libiconv.mo +0 -0
  67. package/dist/prebuilt/Emscripten-x86_64/share/locale/ca/LC_MESSAGES/libiconv.mo +0 -0
  68. package/dist/prebuilt/Emscripten-x86_64/share/locale/cs/LC_MESSAGES/libiconv.mo +0 -0
  69. package/dist/prebuilt/Emscripten-x86_64/share/locale/da/LC_MESSAGES/libiconv.mo +0 -0
  70. package/dist/prebuilt/Emscripten-x86_64/share/locale/de/LC_MESSAGES/libiconv.mo +0 -0
  71. package/dist/prebuilt/Emscripten-x86_64/share/locale/el/LC_MESSAGES/libiconv.mo +0 -0
  72. package/dist/prebuilt/Emscripten-x86_64/share/locale/eo/LC_MESSAGES/libiconv.mo +0 -0
  73. package/dist/prebuilt/Emscripten-x86_64/share/locale/es/LC_MESSAGES/libiconv.mo +0 -0
  74. package/dist/prebuilt/Emscripten-x86_64/share/locale/et/LC_MESSAGES/libiconv.mo +0 -0
  75. package/dist/prebuilt/Emscripten-x86_64/share/locale/fi/LC_MESSAGES/libiconv.mo +0 -0
  76. package/dist/prebuilt/Emscripten-x86_64/share/locale/fr/LC_MESSAGES/libiconv.mo +0 -0
  77. package/dist/prebuilt/Emscripten-x86_64/share/locale/ga/LC_MESSAGES/libiconv.mo +0 -0
  78. package/dist/prebuilt/Emscripten-x86_64/share/locale/gl/LC_MESSAGES/libiconv.mo +0 -0
  79. package/dist/prebuilt/Emscripten-x86_64/share/locale/hr/LC_MESSAGES/libiconv.mo +0 -0
  80. package/dist/prebuilt/Emscripten-x86_64/share/locale/hu/LC_MESSAGES/libiconv.mo +0 -0
  81. package/dist/prebuilt/Emscripten-x86_64/share/locale/id/LC_MESSAGES/libiconv.mo +0 -0
  82. package/dist/prebuilt/Emscripten-x86_64/share/locale/it/LC_MESSAGES/libiconv.mo +0 -0
  83. package/dist/prebuilt/Emscripten-x86_64/share/locale/ja/LC_MESSAGES/libiconv.mo +0 -0
  84. package/dist/prebuilt/Emscripten-x86_64/share/locale/ka/LC_MESSAGES/libiconv.mo +0 -0
  85. package/dist/prebuilt/Emscripten-x86_64/share/locale/ko/LC_MESSAGES/libiconv.mo +0 -0
  86. package/dist/prebuilt/Emscripten-x86_64/share/locale/lt/LC_MESSAGES/libiconv.mo +0 -0
  87. package/dist/prebuilt/Emscripten-x86_64/share/locale/nl/LC_MESSAGES/libiconv.mo +0 -0
  88. package/dist/prebuilt/Emscripten-x86_64/share/locale/pl/LC_MESSAGES/libiconv.mo +0 -0
  89. package/dist/prebuilt/Emscripten-x86_64/share/locale/pt_BR/LC_MESSAGES/libiconv.mo +0 -0
  90. package/dist/prebuilt/Emscripten-x86_64/share/locale/rm/LC_MESSAGES/libiconv.mo +0 -0
  91. package/dist/prebuilt/Emscripten-x86_64/share/locale/ro/LC_MESSAGES/libiconv.mo +0 -0
  92. package/dist/prebuilt/Emscripten-x86_64/share/locale/ru/LC_MESSAGES/libiconv.mo +0 -0
  93. package/dist/prebuilt/Emscripten-x86_64/share/locale/sk/LC_MESSAGES/libiconv.mo +0 -0
  94. package/dist/prebuilt/Emscripten-x86_64/share/locale/sl/LC_MESSAGES/libiconv.mo +0 -0
  95. package/dist/prebuilt/Emscripten-x86_64/share/locale/sq/LC_MESSAGES/libiconv.mo +0 -0
  96. package/dist/prebuilt/Emscripten-x86_64/share/locale/sr/LC_MESSAGES/libiconv.mo +0 -0
  97. package/dist/prebuilt/Emscripten-x86_64/share/locale/sv/LC_MESSAGES/libiconv.mo +0 -0
  98. package/dist/prebuilt/Emscripten-x86_64/share/locale/tr/LC_MESSAGES/libiconv.mo +0 -0
  99. package/dist/prebuilt/Emscripten-x86_64/share/locale/uk/LC_MESSAGES/libiconv.mo +0 -0
  100. package/dist/prebuilt/Emscripten-x86_64/share/locale/vi/LC_MESSAGES/libiconv.mo +0 -0
  101. package/dist/prebuilt/Emscripten-x86_64/share/locale/wa/LC_MESSAGES/libiconv.mo +0 -0
  102. package/dist/prebuilt/Emscripten-x86_64/share/locale/zh_CN/LC_MESSAGES/libiconv.mo +0 -0
  103. package/dist/prebuilt/Emscripten-x86_64/share/locale/zh_TW/LC_MESSAGES/libiconv.mo +0 -0
  104. package/dist/prebuilt/Emscripten-x86_64/share/man/man1/iconv.1 +0 -112
  105. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv.3 +0 -129
  106. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_close.3 +0 -31
  107. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_open.3 +0 -260
  108. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_open_into.3 +0 -47
  109. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconvctl.3 +0 -112
  110. package/dist/prebuilt/iOS-iphoneos/include/iconv.h +0 -243
  111. package/dist/prebuilt/iOS-iphoneos/include/libcharset.h +0 -45
  112. package/dist/prebuilt/iOS-iphoneos/include/localcharset.h +0 -137
  113. package/dist/prebuilt/iOS-iphoneos/lib/libcharset.a +0 -0
  114. package/dist/prebuilt/iOS-iphoneos/lib/libcharset.la +0 -41
  115. package/dist/prebuilt/iOS-iphoneos/lib/libiconv.a +0 -0
  116. package/dist/prebuilt/iOS-iphoneos/lib/libiconv.la +0 -41
  117. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv.1.html +0 -217
  118. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv.3.html +0 -255
  119. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_close.3.html +0 -89
  120. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_open.3.html +0 -352
  121. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_open_into.3.html +0 -132
  122. package/dist/prebuilt/iOS-iphoneos/share/doc/iconvctl.3.html +0 -244
  123. package/dist/prebuilt/iOS-iphoneos/share/man/man1/iconv.1 +0 -112
  124. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv.3 +0 -129
  125. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_close.3 +0 -31
  126. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_open.3 +0 -260
  127. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_open_into.3 +0 -47
  128. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconvctl.3 +0 -112
  129. package/dist/prebuilt/iOS-iphonesimulator/include/iconv.h +0 -243
  130. package/dist/prebuilt/iOS-iphonesimulator/include/libcharset.h +0 -45
  131. package/dist/prebuilt/iOS-iphonesimulator/include/localcharset.h +0 -137
  132. package/dist/prebuilt/iOS-iphonesimulator/lib/libcharset.a +0 -0
  133. package/dist/prebuilt/iOS-iphonesimulator/lib/libcharset.la +0 -41
  134. package/dist/prebuilt/iOS-iphonesimulator/lib/libiconv.a +0 -0
  135. package/dist/prebuilt/iOS-iphonesimulator/lib/libiconv.la +0 -41
  136. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv.1.html +0 -217
  137. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv.3.html +0 -255
  138. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_close.3.html +0 -89
  139. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_open.3.html +0 -352
  140. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_open_into.3.html +0 -132
  141. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconvctl.3.html +0 -244
  142. package/dist/prebuilt/iOS-iphonesimulator/share/man/man1/iconv.1 +0 -112
  143. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv.3 +0 -129
  144. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_close.3 +0 -31
  145. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_open.3 +0 -260
  146. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_open_into.3 +0 -47
  147. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconvctl.3 +0 -112
  148. package/iconv.xcframework/Info.plist +0 -50
  149. package/iconv.xcframework/ios-arm64_arm64e/Headers/iconv.h +0 -243
  150. package/iconv.xcframework/ios-arm64_arm64e/Headers/libcharset.h +0 -45
  151. package/iconv.xcframework/ios-arm64_arm64e/Headers/localcharset.h +0 -137
  152. package/iconv.xcframework/ios-arm64_arm64e/libiconv.a +0 -0
  153. package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/iconv.h +0 -243
  154. package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/libcharset.h +0 -45
  155. package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/localcharset.h +0 -137
  156. package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/libiconv.a +0 -0
@@ -1,129 +0,0 @@
1
- .\" Copyright (c) Free Software Foundation, Inc.
2
- .\"
3
- .\" This is free documentation; you can redistribute it and/or
4
- .\" modify it under the terms of the GNU General Public License as
5
- .\" published by the Free Software Foundation; either version 3 of
6
- .\" the License, or (at your option) any later version.
7
- .\"
8
- .\" References consulted:
9
- .\" GNU glibc-2 source code and manual
10
- .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
11
- .\"
12
- .TH ICONV 3 "December 15, 2024" "GNU"
13
- .SH NAME
14
- iconv \- perform character set conversion
15
- .SH SYNOPSIS
16
- .nf
17
- .B #include <iconv.h>
18
- .sp
19
- .BI "size_t iconv (iconv_t " cd ,
20
- .BI " const char* * " inbuf ", size_t * "inbytesleft ,
21
- .BI " char* * " outbuf ", size_t * "outbytesleft );
22
- .fi
23
- .SH DESCRIPTION
24
- The argument \fIcd\fP must be a conversion descriptor created using the
25
- function \fBiconv_open\fP.
26
- .PP
27
- The main case is when \fIinbuf\fP is not NULL and \fI*inbuf\fP is not NULL.
28
- In this case, the \fBiconv\fP function converts the multibyte sequence
29
- starting at \fI*inbuf\fP to a multibyte sequence starting at \fI*outbuf\fP.
30
- At most \fI*inbytesleft\fP bytes, starting at \fI*inbuf\fP, will be read.
31
- At most \fI*outbytesleft\fP bytes, starting at \fI*outbuf\fP, will be written.
32
- .PP
33
- The \fBiconv\fP function converts one multibyte character at a time, and for
34
- each character conversion it increments \fI*inbuf\fP and decrements
35
- \fI*inbytesleft\fP by the number of converted input bytes, it increments
36
- \fI*outbuf\fP and decrements \fI*outbytesleft\fP by the number of converted
37
- output bytes, and it updates the conversion state contained in \fIcd\fP.
38
- If the character encoding of the input is stateful, the \fBiconv\fP function
39
- can also convert a sequence of input bytes to an update of the conversion state
40
- without producing any output bytes; such input is called a \fIshift sequence\fP.
41
- The conversion can stop for five reasons:
42
- .PP
43
- 1. An invalid multibyte sequence is encountered in the input. In this case
44
- it sets \fBerrno\fP to \fBEILSEQ\fP and returns (size_t)(\-1). \fI*inbuf\fP
45
- is left pointing to the beginning of the invalid multibyte sequence.
46
- .PP
47
- 2. A multibyte sequence is encountered that is valid but that cannot be
48
- translated to the character encoding of the output.
49
- This condition depends on the implementation and on the conversion
50
- descriptor.
51
- In the GNU C library and GNU libiconv, if \fIcd\fP was created without the
52
- suffix \fB//TRANSLIT\fP or \fB//IGNORE\fP or \fB//NON_IDENTICAL_DISCARD\fP,
53
- the conversion is strict: lossy conversions produce this condition.
54
- If the suffix \fB//TRANSLIT\fP was specified, transliteration can avoid this
55
- condition in some cases.
56
- In the musl C library, this condition cannot occur because a conversion to
57
- \fB\[aq]*\[aq]\fP is used as a fallback.
58
- In the FreeBSD, NetBSD, and Solaris implementations of \fBiconv\fP, this
59
- condition cannot occur either, because a conversion to \fB\[aq]?\[aq]\fP is
60
- used as a fallback.
61
- When this condition is met, the \fBiconv\fP function sets \fBerrno\fP to
62
- \fBEILSEQ\fP and returns (size_t)(\-1).
63
- \fI*inbuf\fP is left pointing to the beginning of the unconvertible multibyte
64
- sequence.
65
- .PP
66
- 3. The input byte sequence has been entirely converted, i.e. \fI*inbytesleft\fP
67
- has gone down to 0. In this case \fBiconv\fP returns the number of
68
- non-reversible conversions performed during this call.
69
- .PP
70
- 4. An incomplete multibyte sequence is encountered in the input, and the
71
- input byte sequence terminates after it. In this case it sets \fBerrno\fP to
72
- \fBEINVAL\fP and returns (size_t)(\-1). \fI*inbuf\fP is left pointing to the
73
- beginning of the incomplete multibyte sequence.
74
- .PP
75
- 5. The output buffer has no more room for the next converted character. In
76
- this case it sets \fBerrno\fP to \fBE2BIG\fP and returns (size_t)(\-1).
77
- .PP
78
- A different case is when \fIinbuf\fP is NULL or \fI*inbuf\fP is NULL, but
79
- \fIoutbuf\fP is not NULL and \fI*outbuf\fP is not NULL. In this case, the
80
- \fBiconv\fP function attempts to set \fIcd\fP's conversion state to the
81
- initial state and store a corresponding shift sequence at \fI*outbuf\fP.
82
- At most \fI*outbytesleft\fP bytes, starting at \fI*outbuf\fP, will be written.
83
- If the output buffer has no more room for this reset sequence, it sets
84
- \fBerrno\fP to \fBE2BIG\fP and returns (size_t)(\-1). Otherwise it increments
85
- \fI*outbuf\fP and decrements \fI*outbytesleft\fP by the number of bytes
86
- written.
87
- .PP
88
- A third case is when \fIinbuf\fP is NULL or \fI*inbuf\fP is NULL, and
89
- \fIoutbuf\fP is NULL or \fI*outbuf\fP is NULL. In this case, the \fBiconv\fP
90
- function sets \fIcd\fP's conversion state to the initial state.
91
- .SH "RETURN VALUE"
92
- The \fBiconv\fP function returns the number of characters converted in a
93
- non-reversible way during this call; reversible conversions are not counted.
94
- In case of error, it sets \fBerrno\fP and returns (size_t)(\-1).
95
- .SH ERRORS
96
- The following errors can occur, among others:
97
- .TP
98
- .B E2BIG
99
- There is not sufficient room at \fI*outbuf\fP.
100
- .TP
101
- .B EILSEQ
102
- An invalid multibyte sequence has been encountered in the input.
103
- .TP
104
- .B EINVAL
105
- An incomplete multibyte sequence has been encountered in the input.
106
- .SH "CONFORMING TO"
107
- POSIX:2024
108
- .SH NOTES
109
- In each series of calls to the \fBiconv\fP function,
110
- the last should be one with \fIinbuf\fP or \fI*inbuf\fP equal to NULL,
111
- in order to complete the conversion of any partially converted input.
112
-
113
- Although \fIinbuf\fP and \fIoutbuf\fP are typed as
114
- \fBconst char **\fP and \fBchar **\fP, respectively,
115
- this does not mean that the objects they point can be interpreted
116
- as C strings or as arrays of characters:
117
- the interpretation of character byte sequences is
118
- handled internally by the conversion functions.
119
- In some encodings, a zero byte may be a valid part of a multibyte character.
120
-
121
- The caller of the \fBiconv\fP function
122
- must ensure that the pointers passed to the function are suitable
123
- for accessing characters in the appropriate character set.
124
- For the encodings \fBUCS-2-INTERNAL\fP, \fBUCS-4-INTERNAL\fP, and \fBwchar_t\fP,
125
- this includes ensuring correct alignment.
126
- .SH "SEE ALSO"
127
- .BR iconv_open (3),
128
- .BR iconvctl (3),
129
- .BR iconv_close (3)
@@ -1,31 +0,0 @@
1
- .\" Copyright (c) Free Software Foundation, Inc.
2
- .\"
3
- .\" This is free documentation; you can redistribute it and/or
4
- .\" modify it under the terms of the GNU General Public License as
5
- .\" published by the Free Software Foundation; either version 3 of
6
- .\" the License, or (at your option) any later version.
7
- .\"
8
- .\" References consulted:
9
- .\" GNU glibc-2 source code and manual
10
- .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
11
- .\"
12
- .TH ICONV_CLOSE 3 "December 15, 2024" "GNU"
13
- .SH NAME
14
- iconv_close \- deallocate descriptor for character set conversion
15
- .SH SYNOPSIS
16
- .nf
17
- .B #include <iconv.h>
18
- .sp
19
- .BI "int iconv_close (iconv_t " cd );
20
- .fi
21
- .SH DESCRIPTION
22
- The \fBiconv_close\fP function deallocates a conversion descriptor \fIcd\fP
23
- previously allocated using \fBiconv_open\fP.
24
- .SH "RETURN VALUE"
25
- When successful, the \fBiconv_close\fP function returns 0. In case of error,
26
- it sets \fBerrno\fP and returns \-1.
27
- .SH "CONFORMING TO"
28
- POSIX:2024
29
- .SH "SEE ALSO"
30
- .BR iconv_open (3)
31
- .BR iconv (3)
@@ -1,260 +0,0 @@
1
- .\" Copyright (c) Free Software Foundation, Inc.
2
- .\"
3
- .\" This is free documentation; you can redistribute it and/or
4
- .\" modify it under the terms of the GNU General Public License as
5
- .\" published by the Free Software Foundation; either version 3 of
6
- .\" the License, or (at your option) any later version.
7
- .\"
8
- .\" References consulted:
9
- .\" GNU glibc-2 source code and manual
10
- .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
11
- .\"
12
- .TH ICONV_OPEN 3 "December 15, 2024" "GNU"
13
- .SH NAME
14
- iconv_open \- allocate descriptor for character set conversion
15
- .SH SYNOPSIS
16
- .nf
17
- .B #include <iconv.h>
18
- .sp
19
- .BI "iconv_t iconv_open (const char* " tocode ", const char* " fromcode );
20
- .fi
21
- .SH DESCRIPTION
22
- The \fBiconv_open\fP function allocates a conversion descriptor suitable
23
- for converting byte sequences from character encoding \fIfromcode\fP to
24
- character encoding \fItocode\fP.
25
- .PP
26
- The values permitted for \fIfromcode\fP and \fItocode\fP and the supported
27
- combinations are system dependent. For the libiconv library, the following
28
- encodings are supported, in all combinations.
29
- .TP
30
- European languages
31
- .nf
32
- .fi
33
- ASCII, ISO\-8859\-{1,2,3,4,5,7,9,10,13,14,15,16},
34
- KOI8\-R, KOI8\-U, KOI8\-RU,
35
- CP{1250,1251,1252,1253,1254,1257}, CP{850,866,1131},
36
- Mac{Roman,CentralEurope,Iceland,Croatian,Romania},
37
- Mac{Cyrillic,Ukraine,Greek,Turkish},
38
- Macintosh
39
- .TP
40
- Semitic languages
41
- .nf
42
- .fi
43
- ISO\-8859\-{6,8}, CP{1255,1256}, CP862, Mac{Hebrew,Arabic}
44
- .TP
45
- Japanese
46
- .nf
47
- .fi
48
- EUC\-JP, SHIFT_JIS, CP932, ISO\-2022\-JP, ISO\-2022\-JP\-2, ISO\-2022\-JP\-1,
49
- ISO-2022\-JP\-MS
50
- .TP
51
- Chinese
52
- .nf
53
- .fi
54
- EUC\-CN, HZ, GBK, CP936, GB18030, GB18030:2022, EUC\-TW, BIG5, CP950,
55
- BIG5\-HKSCS, BIG5\-HKSCS:2004, BIG5\-HKSCS:2001, BIG5\-HKSCS:1999,
56
- ISO\-2022\-CN, ISO\-2022\-CN\-EXT
57
- .TP
58
- Korean
59
- .nf
60
- .fi
61
- EUC\-KR, CP949, ISO\-2022\-KR, JOHAB
62
- .TP
63
- Armenian
64
- .nf
65
- .fi
66
- ARMSCII\-8
67
- .TP
68
- Georgian
69
- .nf
70
- .fi
71
- Georgian\-Academy, Georgian\-PS
72
- .TP
73
- Tajik
74
- .nf
75
- .fi
76
- KOI8\-T
77
- .TP
78
- Kazakh
79
- .nf
80
- .fi
81
- PT154, RK1048
82
- .TP
83
- Thai
84
- .nf
85
- .fi
86
- TIS\-620, CP874, MacThai
87
- .TP
88
- Laotian
89
- .nf
90
- .fi
91
- MuleLao\-1, CP1133
92
- .TP
93
- Vietnamese
94
- .nf
95
- .fi
96
- VISCII, TCVN, CP1258
97
- .TP
98
- Platform specifics
99
- .nf
100
- .fi
101
- HP\-ROMAN8, NEXTSTEP
102
- .TP
103
- Full Unicode
104
- .nf
105
- .fi
106
- UTF\-8
107
- .nf
108
- .fi
109
- UCS\-2, UCS\-2BE, UCS\-2LE
110
- .nf
111
- .fi
112
- UCS\-4, UCS\-4BE, UCS\-4LE
113
- .nf
114
- .fi
115
- UTF\-16, UTF\-16BE, UTF\-16LE
116
- .nf
117
- .fi
118
- UTF\-32, UTF\-32BE, UTF\-32LE
119
- .nf
120
- .fi
121
- UTF\-7
122
- .nf
123
- .fi
124
- C99, JAVA
125
- .TP
126
- Full Unicode, in terms of \fBuint16_t\fP or \fBuint32_t\fP
127
- (with machine dependent endianness and alignment)
128
- .nf
129
- .fi
130
- UCS\-2\-INTERNAL, UCS\-4\-INTERNAL
131
- .TP
132
- Locale dependent, in terms of \fBchar\fP or \fBwchar_t\fP
133
- (with machine dependent endianness and alignment, and with semantics
134
- depending on the OS and the current LC_CTYPE locale facet)
135
- .nf
136
- .fi
137
- char, wchar_t
138
- .PP
139
- When configured with the option \fB\-\-enable\-extra\-encodings\fP, it also
140
- provides support for a few extra encodings:
141
- .TP
142
- European languages
143
- .nf
144
- CP{437,737,775,852,853,855,857,858,860,861,863,865,869,1125}
145
- .fi
146
- .TP
147
- Semitic languages
148
- .nf
149
- .fi
150
- CP864
151
- .TP
152
- Japanese
153
- .nf
154
- .fi
155
- EUC\-JISX0213, Shift_JISX0213, ISO\-2022\-JP\-3
156
- .TP
157
- Chinese
158
- .nf
159
- .fi
160
- BIG5\-2003 (experimental)
161
- .TP
162
- Turkmen
163
- .nf
164
- .fi
165
- TDS565
166
- .TP
167
- Platform specifics
168
- .nf
169
- .fi
170
- ATARIST, RISCOS\-LATIN1
171
- .PP
172
- .TP
173
- EBCDIC compatible (not ASCII compatible, very rarely used)
174
- .nf
175
- .fi
176
- European languages:
177
- .nf
178
- .fi
179
- IBM-{037,273,277,278,280,282,284,285,297,423,500,870,871,875,880},
180
- IBM-{905,924,1025,1026,1047,1112,1122,1123,1140,1141,1142,1143},
181
- IBM-{1144,1145,1146,1147,1148,1149,1153,1154,1155,1156,1157,1158},
182
- IBM-{1165,1166,4971}
183
- .nf
184
- .fi
185
- Semitic languages:
186
- .nf
187
- .fi
188
- IBM-{424,425,12712,16804}
189
- .nf
190
- .fi
191
- Persian:
192
- .nf
193
- .fi
194
- IBM-1097
195
- .nf
196
- .fi
197
- Thai:
198
- .nf
199
- .fi
200
- IBM-{838,1160}
201
- .nf
202
- .fi
203
- Laotian:
204
- .nf
205
- .fi
206
- IBM-1132
207
- .nf
208
- .fi
209
- Vietnamese:
210
- .nf
211
- .fi
212
- IBM-{1130,1164}
213
- .nf
214
- .fi
215
- Indic languages:
216
- .nf
217
- .fi
218
- IBM-1137
219
- .PP
220
- The empty encoding name "" is equivalent to "char": it denotes the
221
- locale dependent character encoding.
222
- .PP
223
- When the string "//TRANSLIT" is appended to \fItocode\fP, transliteration
224
- is activated. This means that when a character cannot be represented in the
225
- target character set, it can be approximated through one or several characters
226
- that look similar to the original character.
227
- .PP
228
- When the string "//IGNORE" is appended to \fItocode\fP,
229
- invalid multibyte sequences in the input and
230
- characters that cannot be represented in the target character set
231
- will be silently discarded.
232
- .PP
233
- When the string "//NON_IDENTICAL_DISCARD" is appended to \fItocode\fP,
234
- characters that cannot be represented in the target character set
235
- will be silently discarded.
236
- .PP
237
- The resulting conversion descriptor can be used with \fBiconv\fP any number
238
- of times. It remains valid until deallocated using \fBiconv_close\fP.
239
- .PP
240
- A conversion descriptor contains a conversion state. After creation using
241
- \fBiconv_open\fP, the state is in the initial state. Using \fBiconv\fP
242
- modifies the descriptor's conversion state. (This implies that a conversion
243
- descriptor can not be used in multiple threads simultaneously.) To bring the
244
- state back to the initial state, use \fBiconv\fP with NULL as \fIinbuf\fP
245
- argument.
246
- .SH "RETURN VALUE"
247
- The \fBiconv_open\fP function returns a freshly allocated conversion
248
- descriptor. In case of error, it sets \fBerrno\fP and returns (iconv_t)(\-1).
249
- .SH ERRORS
250
- The following error can occur, among others:
251
- .TP
252
- .B EINVAL
253
- The conversion from \fIfromcode\fP to \fItocode\fP is not supported by the
254
- implementation.
255
- .SH "CONFORMING TO"
256
- POSIX:2024
257
- .SH "SEE ALSO"
258
- .BR iconv (3)
259
- .BR iconvctl (3)
260
- .BR iconv_close (3)
@@ -1,47 +0,0 @@
1
- .\" Copyright (c) Free Software Foundation, Inc.
2
- .\"
3
- .\" This is free documentation; you can redistribute it and/or
4
- .\" modify it under the terms of the GNU General Public License as
5
- .\" published by the Free Software Foundation; either version 3 of
6
- .\" the License, or (at your option) any later version.
7
- .\"
8
- .\" References consulted:
9
- .\" iconv.h
10
- .\"
11
- .TH ICONV_OPEN_INTO 3 "September 21, 2008" "GNU"
12
- .SH NAME
13
- iconv_open_into \- initialize descriptor for character set conversion
14
- .SH SYNOPSIS
15
- .nf
16
- .B #include <iconv.h>
17
- .sp
18
- .BI "int iconv_open_into (const char* " tocode ", const char* " fromcode ","
19
- .BI " iconv_allocation_t* " resultp );
20
- .fi
21
- .SH DESCRIPTION
22
- The \fBiconv_open_into\fP function initializes a conversion descriptor suitable
23
- for converting byte sequences from character encoding \fIfromcode\fP to
24
- character encoding \fItocode\fP. The conversion descriptor is stored in the
25
- memory pointed to by \fIresultp\fP.
26
- .PP
27
- The values permitted for \fIfromcode\fP and \fItocode\fP are the same as for
28
- the function \fBiconv_open\fP.
29
- .PP
30
- After a successful return from this function, \fIresultp\fP can be be used
31
- as an \fBiconv_t\fP object with the \fBiconv\fP function.
32
- .SH "RETURN VALUE"
33
- The \fBiconv_open_into\fP function fills \fB*\fP\fIresultp\fP and returns 0 if
34
- it succeeds. In case of error, it sets \fBerrno\fP and returns \-1.
35
- .SH ERRORS
36
- The following error can occur, among others:
37
- .TP
38
- .B EINVAL
39
- The conversion from \fIfromcode\fP to \fItocode\fP is not supported by the
40
- implementation.
41
- .SH "CONFORMING TO"
42
- This function is implemented only in GNU libiconv and not in other \fBiconv\fP
43
- implementations. It is not backed by a standard. You can test for its presence
44
- through \fB(_LIBICONV_VERSION >= 0x010D)\fP.
45
- .SH "SEE ALSO"
46
- .BR iconv_open (3)
47
- .BR iconv (3)
@@ -1,112 +0,0 @@
1
- .\" Copyright (c) Perry Rapp
2
- .\" Copyright (c) Free Software Foundation, Inc.
3
- .\"
4
- .\" This is free documentation; you can redistribute it and/or
5
- .\" modify it under the terms of the GNU General Public License as
6
- .\" published by the Free Software Foundation; either version 3 of
7
- .\" the License, or (at your option) any later version.
8
- .\"
9
- .\" References consulted:
10
- .\" iconv.h
11
- .\"
12
- .TH ICONVCTL 3 "December 15, 2024" "GNU"
13
- .SH NAME
14
- iconvctl \- control iconv behavior
15
- .SH SYNOPSIS
16
- .nf
17
- .B #include <iconv.h>
18
- .sp
19
- .BI "int iconvctl (iconv_t " cd " , int " request ", void * " argument );
20
- .fi
21
- .SH DESCRIPTION
22
- The argument \fIcd\fP must be a conversion descriptor created using the
23
- function \fBiconv_open\fP.
24
- .PP
25
- \fBiconvctl\fP queries or adjusts the behavior of the \fBiconv\fP function,
26
- when invoked with the specified conversion descriptor, depending on the
27
- request value.
28
- .SH "REQUEST VALUES"
29
- The following are permissible values for the \fIrequest\fP parameter.
30
- .TP
31
- .B ICONV_TRIVIALP
32
- \fIargument\fP should be an \fBint *\fP which will receive 1 if the
33
- conversion is trivial, or 0 otherwise.
34
- .TP
35
- .B ICONV_GET_TRANSLITERATE
36
- \fIargument\fP should be an \fBint *\fP which will receive 1 if
37
- transliteration is enabled in the conversion, or 0 otherwise.
38
- .TP
39
- .B ICONV_SET_TRANSLITERATE
40
- \fIargument\fP should be a \fBconst int *\fP, pointing to an \fBint\fP value.
41
- A non-zero value is used to enable transliteration in the conversion. A zero
42
- value disables it.
43
- .TP
44
- .B ICONV_GET_DISCARD_INVALID
45
- \fIargument\fP should be an \fBint *\fP which will receive 1 if "discard
46
- invalid multibyte sequence from the input and continue"
47
- is enabled in the conversion, or 0 otherwise.
48
- .TP
49
- .B ICONV_SET_DISCARD_INVALID
50
- \fIargument\fP should be a \fBconst int *\fP, pointing to an \fBint\fP value.
51
- A non-zero value is used to enable "discard
52
- invalid multibyte sequence from the input and continue"
53
- in the conversion. A zero value disables it.
54
- .TP
55
- .B ICONV_GET_DISCARD_NON_IDENTICAL
56
- \fIargument\fP should be an \fBint *\fP which will receive 1 if "discard
57
- character that cannot be represented in the target character set and continue"
58
- is enabled in the conversion, or 0 otherwise.
59
- .TP
60
- .B ICONV_SET_DISCARD_NON_IDENTICAL
61
- \fIargument\fP should be a \fBconst int *\fP, pointing to an \fBint\fP value.
62
- A non-zero value is used to enable "discard
63
- character that cannot be represented in the target character set and continue"
64
- in the conversion. A zero value disables it.
65
- .TP
66
- .B ICONV_GET_DISCARD_ILSEQ
67
- \fIargument\fP should be an \fBint *\fP which will receive 1 if both "discard"
68
- behaviours are enabled in the conversion, or 0 otherwise.
69
- .TP
70
- .B ICONV_SET_DISCARD_ILSEQ
71
- \fIargument\fP should be a \fBconst int *\fP, pointing to an \fBint\fP value.
72
- A non-zero value is used to enable both "discard" behaviours in the conversion.
73
- A zero value disables them.
74
- .TP
75
- .B ICONV_GET_FROM_SURFACE
76
- \fIargument\fP should be an \fBunsigned int *\fP which will receive the
77
- from-side (input side) surface of the conversion.
78
- .TP
79
- .B ICONV_SET_FROM_SURFACE
80
- \fIargument\fP should be a \fBconst unsigned int *\fP, pointing to an
81
- \fBunsigned int\fP value. This value is installed as the from-side
82
- (input side) surface of the conversion. The value is a bit mask. Zero
83
- denotes no surface. The value \fBICONV_SURFACE_EBCDIC_ZOS_UNIX\fP has
84
- an effect on EBCDIC encodings: The EBCDIC newline 0x15 will get mapped
85
- to LF instead of NEL.
86
- .TP
87
- .B ICONV_GET_TO_SURFACE
88
- \fIargument\fP should be an \fBunsigned int *\fP which will receive the
89
- to-side (output side) surface of the conversion.
90
- .TP
91
- .B ICONV_SET_TO_SURFACE
92
- \fIargument\fP should be a \fBconst unsigned int *\fP, pointing to an
93
- \fBunsigned int\fP value. This value is installed as the to-side
94
- (output side) surface of the conversion. The value is a bit mask. Zero
95
- denotes no surface. The value \fBICONV_SURFACE_EBCDIC_ZOS_UNIX\fP has
96
- an effect on EBCDIC encodings: LF, instead of NEL, will get mapped to
97
- the EBCDIC newline 0x15.
98
- .SH "RETURN VALUE"
99
- The \fBiconvctl\fP function returns 0 if it succeeds. In case of error, it sets
100
- \fBerrno\fP and returns \-1.
101
- .SH ERRORS
102
- The following errors can occur, among others:
103
- .TP
104
- .B EINVAL
105
- The request is invalid.
106
- .SH "CONFORMING TO"
107
- This function is implemented only in GNU libiconv and not in other \fBiconv\fP
108
- implementations. It is not backed by a standard. You can test for its presence
109
- through \fB(_LIBICONV_VERSION >= 0x0108)\fP.
110
- .SH "SEE ALSO"
111
- .BR iconv_open (3)
112
- .BR iconv (3)