Debian Codegraph @

headers/codecvt

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_CODECVT_H
17 #define CPPREFERENCE_CODECVT_H
18
19 #if CPPREFERENCE_STDVER >= 2011
20
21 namespace std {
22
23 enum codecvt_mode {
24 consume_header = 4,
25 generate_header = 2,
26 little_endian = 1
27 };
28
29 template <
30 class Elem,
31 unsigned long Maxcode = 0x10ffff,
32 std::codecvt_mode Mode = (std::codecvt_mode)0
33 > class codecvt_utf8 : public std::codecvt<Elem, char, std::mbstate_t> {
34 public:
35 explicit codecvt_utf8(std::size_t refs = 0);
36 ~codecvt_utf8();
37 };
38
39 template<class Elem,
40 unsigned long Maxcode = 0x10ffff,
41 std::codecvt_mode Mode = (std::codecvt_mode)0 >
42 class codecvt_utf16 : public std::codecvt<Elem, char, std::mbstate_t> {
43 public:
44 explicit codecvt_utf16(std::size_t refs = 0);
45 ~codecvt_utf16();
46 };
47
48 template<class Elem,
49 unsigned long Maxcode = 0x10ffff,
50 std::codecvt_mode Mode = (std::codecvt_mode)0 >
51 class codecvt_utf8_utf16 : public std::codecvt<Elem, char, std::mbstate_t> {
52 public:
53 explicit codecvt_utf8_utf16(std::size_t refs = 0);
54 ~codecvt_utf8_utf16();
55 };
56
57 } // namespace std
58
59 #endif // CPPREFERENCE_STDVER >= 2011
60
61 #endif // CPPREFERENCE_CODECVT_H