3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
10 * A collection of unicode conversion functions, using iconv.
13 #ifndef LYX_SUPPORT_UNICODE_H
14 #define LYX_SUPPORT_UNICODE_H
16 #include <boost/cstdint.hpp>
19 std::vector<boost::uint32_t>
20 utf8_to_ucs4(std::vector<char> const & utf8str);
22 std::vector<boost::uint32_t>
23 ucs2_to_ucs4(std::vector<unsigned short> const & ucs2str);
25 std::vector<unsigned short>
26 ucs4_to_ucs2(std::vector<boost::uint32_t> const & ucs4str);
28 std::vector<unsigned short>
29 ucs4_to_ucs2(boost::uint32_t const * s, size_t ls);
32 ucs4_to_ucs2(boost::uint32_t c);
35 ucs4_to_utf8(std::vector<boost::uint32_t> const & ucs4str);
38 ucs4_to_utf8(boost::uint32_t c);