]> git.lyx.org Git - lyx.git/blob - src/support/unicode.h
Merge the unicode branch into trunk.
[lyx.git] / src / support / unicode.h
1 /**
2  * \file unicode.h
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS.
9  *
10  * A collection of unicode conversion functions, using iconv.
11  */
12
13 #ifndef LYX_SUPPORT_UNICODE_H
14 #define LYX_SUPPORT_UNICODE_H
15
16 #include <boost/cstdint.hpp>
17 #include <vector>
18
19 std::vector<boost::uint32_t>
20 utf8_to_ucs4(std::vector<char> const & utf8str);
21
22 std::vector<boost::uint32_t>
23 ucs2_to_ucs4(std::vector<unsigned short> const & ucs2str);
24
25 std::vector<unsigned short>
26 ucs4_to_ucs2(std::vector<boost::uint32_t> const & ucs4str);
27
28 std::vector<unsigned short>
29 ucs4_to_ucs2(boost::uint32_t const * s, size_t ls);
30
31 unsigned short
32 ucs4_to_ucs2(boost::uint32_t c);
33
34 std::vector<char>
35 ucs4_to_utf8(std::vector<boost::uint32_t> const & ucs4str);
36
37 std::vector<char>
38 ucs4_to_utf8(boost::uint32_t c);
39
40 #endif