1 Star 1 Fork 0

Gitee 极速下载 / cppp-reiconv

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/cppp-project/cppp-reiconv
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
LGPL-3.0

cppp-reiconv logo

cppp-reiconv

A character set conversion library based on GNU LIBICONV.

Instruction

This library provides some charset conversation function for The C++ Plus Project.

It provides support for the encodings:

  • European languages
    • ASCII, ISO-8859-{1,2,3,4,5,7,9,10,13,14,15,16},
    • KOI8-R, KOI8-U, KOI8-RU,
    • CP{1250,1251,1252,1253,1254,1257}, CP{850,866,1131},
    • Mac{Roman,CentralEurope,Iceland,Croatian,Romania},
    • Mac{Cyrillic,Ukraine,Greek,Turkish},
    • Macintosh
  • Semitic languages
    • ISO-8859-{6,8}, CP{1255,1256}, CP862, Mac{Hebrew,Arabic}
  • Japanese
    • EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP, ISO-2022-JP-2, ISO-2022-JP-1,
    • ISO-2022-JP-MS
  • Chinese
    • EUC-CN, HZ, GBK, CP936, GB18030, GB18030:2022, EUC-TW, BIG5, CP950,
    • BIG5-HKSCS, BIG5-HKSCS:2004, BIG5-HKSCS:2001, BIG5-HKSCS:1999,
    • ISO-2022-CN, ISO-2022-CN-EXT
  • Korean
    • EUC-KR, CP949, ISO-2022-KR, JOHAB
  • Armenian
    • ARMSCII-8
  • Georgian
    • Georgian-Academy, Georgian-PS
  • Tajik
    • KOI8-T
  • Kazakh
    • PT154, RK1048
  • Thai
    • ISO-8859-11, TIS-620, CP874, MacThai
  • Laotian
    • MuleLao-1, CP1133
  • Vietnamese
    • VISCII, TCVN, CP1258
  • Platform specifics
    • HP-ROMAN8, NEXTSTEP
  • Full Unicode
    • UTF-8
    • UCS-2, UCS-2BE, UCS-2LE
    • UCS-4, UCS-4BE, UCS-4LE
    • UTF-16, UTF-16BE, UTF-16LE
    • UTF-32, UTF-32BE, UTF-32LE
    • UTF-7
    • C99, JAVA
  • Full Unicode, in terms of 'uint16_t' or 'uint32_t'
    • (with machine dependent endianness and alignment)
    • UCS-2-INTERNAL, UCS-4-INTERNAL

When configured with the option -DENABLE_EXTRA, it also provides support for a few extra encodings:

  • European languages
    • CP{437,737,775,852,853,855,857,858,860,861,863,865,869,1125}
  • Semitic languages
    • CP864
  • Japanese
    • EUC-JISX0213, Shift_JISX0213, ISO-2022-JP-3
  • Chinese
    • BIG5-2003 (experimental)
  • Turkmen
    • TDS565
  • Platform specifics
    • ATARIST, RISCOS-LATIN1
  • EBCDIC compatible (not ASCII compatible, very rarely used)
    • European languages
      • IBM-{037,273,277,278,280,282,284,285,297,423,500,870,871,875,880},
      • IBM-{905,924,1025,1026,1047,1112,1122,1123,1140,1141,1142,1143},
      • IBM-{1144,1145,1146,1147,1148,1149,1153,1154,1155,1156,1157,1158},
      • IBM-{1165,1166,4971}
    • Semitic languages
      • IBM-{424,425,12712,16804}
    • Persian
      • IBM-1097
    • Thai
      • IBM-{838,1160}
    • Laotian
      • IBM-1132
    • Vietnamese
      • IBM-{1130,1164}
    • Indic languages
      • IBM-1137

It can convert from any of these encodings to any other, through Unicode conversion.

cppp-reiconv is for you if your application needs to support multiple character encodings, but that support lacks from your system.

Build and installation

We use CMake for build

  • Standard build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=[[PREFIX]]
cmake --build . --config=Release
cmake --install .
  • Full build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=[[PREFIX]] -DENABLE_EXTRA=ON
cmake --build . --config=Release
cmake --install .

When use full build, extra encodings will be enabled.

  • Build with test suite
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=[[PREFIX]] -DENABLE_EXTRA=ON -DENABLE_TEST=ON
cmake --build . --config=Release
cmake --install .

Install

This library installs:

  • a shared library 'libcppp-reiconv'.
  • a static library 'libcppp-reiconv.static'.
  • a header file '<cppp/reiconv.hpp>'.

To use it, simply #include <cppp/reiconv.hpp> and import the lib to use the functions.

Copyright

The cppp-reiconv is under LGPLv3, see file COPYING.

Download

https://github.com/cppp-project/cppp-reiconv/releases

Homepage

https://github.com/cppp-project/cppp-reiconv

Bug reports

GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.

About

cppp-reiconv 是一个基于 GNU Libiconv 重分发的编码转换库,优化了转换函数的使用方法,使用起来更加方便 expand collapse
C/C++ and 5 more languages
LGPL-3.0
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
C/C++
1
https://gitee.com/mirrors/cppp-reiconv.git
git@gitee.com:mirrors/cppp-reiconv.git
mirrors
cppp-reiconv
cppp-reiconv
main

Search