acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
international.h
1#pragma once
2
3
4//namespace str
5//{
6//
7//
8// namespace international
9// {
10//
11
12
13 //bool CLASS_DECL_ACME unicode_to_multibyte(::u32 uCodePage, char_pointer psz, character_count nCount, const ::wide_character * pcsz);
14
15 bool CLASS_DECL_ACME unicode_to_multibyte(::u32 uCodePage, char_pointer psz, character_count iBuffer, const ::scoped_wstring & scopedwstr);
16
17 character_count CLASS_DECL_ACME unicode_to_multibyte_count(::u32 uCodePage, const ::scoped_wstring & scopedwstr);
18
19 //character_count CLASS_DECL_ACME unicode_to_multibyte_count(::u32 uCodePage, const ::wide_character * pcsz, character_count iCount);
20
21 //bool CLASS_DECL_ACME unicode_to_multibyte(::u32 uCodePage, string & str, const ::wide_character * pcsz);
22
23 bool CLASS_DECL_ACME unicode_to_multibyte(::u32 uCodePage, string & str, const ::scoped_wstring & scopedwstr);
24
25 string CLASS_DECL_ACME unicode_to_multibyte(::u32 uCodePage, const ::scoped_wstring & scopedwstr);
26
27 bool CLASS_DECL_ACME multibyte_to_unicode(::u32 uCodePage, ::wide_character * pwsz, character_count iBuffer, const ::scoped_string & scopedstr);
28
29 //bool CLASS_DECL_ACME multibyte_to_unicode(::u32 uCodePage, ::wide_character * pwsz, character_count nCount, const_char_pointer lpcsz);
30
31 CLASS_DECL_ACME wstring multibyte_to_unicode(::u32 uCodePage, const ::scoped_string & scopedstr);
32
33 //CLASS_DECL_ACME wstring multibyte_to_unicode(::u32 uCodePage, const ::scoped_string & scopedstr);
34
35 character_count CLASS_DECL_ACME multibyte_to_unicode_count(::u32 uCodePage, const ::scoped_string & scopedstr);
36
37 //character_count CLASS_DECL_ACME multibyte_to_unicode_count(::u32 uCodePage, const ::scoped_string & scopedstr, character_count iCount);
38
39 CLASS_DECL_ACME wstring multibyte_to_unicode(::u32 uCodePage, const ::scoped_string & scopedstr);
40
41 string CLASS_DECL_ACME multibyte_to_multibyte(::u32 uCodePageDest, ::u32 uCodePageSrc, const ::scoped_string & scopedstr);
42 bool CLASS_DECL_ACME multibyte_to_multibyte(::u32 uCodePageDest, string & str, ::u32 uCodePageSrc, const ::scoped_string & scopedstr);
43
44 //bool CLASS_DECL_ACME multibyte_to_multibyte(::u32 uCodePageDest, string & str, ::u32 uCodePageSrc, const ::scoped_string & scopedstr, character_count nCount);
45
46 //bool CLASS_DECL_ACME multibyte_to_multibyte(::u32 uCodePageDest, char_pointer psz, character_count nCount, ::u32 uCodePageSrc, const_char_pointer lpcsz);
47
48 string CLASS_DECL_ACME multibyte_to_utf8(::u32 uCodePageSrc, const ::scoped_string & scopedstr);
49
50 bool CLASS_DECL_ACME multibyte_to_utf8(::u32 uCodePageSrc, string & str, const ::scoped_string & scopedstr);
51
52 //bool CLASS_DECL_ACME multibyte_to_utf8(::u32 uCodePageSrc, string & str, const ::scoped_string & scopedstr, character_count nCount);
53
54 character_count CLASS_DECL_ACME utf8_to_multibyte_count(::u32 uCodePage, const ::scoped_string & scopedstr);
55
56 string CLASS_DECL_ACME utf8_to_multibyte(::u32 uCodePage, const ::scoped_string & scopedstr);
57
58 bool CLASS_DECL_ACME utf8_to_multibyte(::u32 uCodePage, string & str, const ::scoped_string & scopedstr);
59
60 //bool CLASS_DECL_ACME utf8_to_multibyte(::u32 uCodePage, string & str, const ::scoped_string & scopedstr, character_count nCount);
61
62 //bool CLASS_DECL_ACME utf8_to_multibyte(::u32 uCodePageSrc, char_pointer psz, character_count nCount, const_char_pointer lpcsz);
63
64 //bool CLASS_DECL_ACME unicode_to_utf8(string & str, const ::wide_character * pcsz);
65
66 //bool CLASS_DECL_ACME unicode_to_utf8(string & str, const wchar_t * pcsz);
67
68 CLASS_DECL_ACME wstring utf8_to_unicode(const ::scoped_string & scopedstr);
69
70 //CLASS_DECL_ACME wstring utf8_to_unicode(const ::scoped_string & scopedstr, character_count iCount);
71
72 bool CLASS_DECL_ACME unicode_to_utf8(string & str, const ::scoped_wstring & scopedwstr);
73
74 string CLASS_DECL_ACME unicode_to_utf8(const ::scoped_wstring & scopedwstr);
75
76 //string CLASS_DECL_ACME unicode_to_utf8(const wchar_t * pcsz);
77
78 CLASS_DECL_ACME string unicode_to_multibyte(::u32 uCodePage, const ::scoped_wstring & scopedwstr);
79
80 CLASS_DECL_ACME bool unicode_to_utf8(string & str, const ::scoped_wstring & scopedwstr);
81
82 CLASS_DECL_ACME character_count utf8_to_unicode_count(const ::scoped_string & scopedstr);
83
84 //CLASS_DECL_ACME character_count utf8_to_unicode_count(const ::scoped_string & scopedstr);
85
86 CLASS_DECL_ACME bool multibyte_to_utf8(::u32 uCodePageSrc, string & str, const ::scoped_string & scopedstr);
87
88 //CLASS_DECL_ACME bool multibyte_to_utf8(::u32 uCodePageSrc, string & str, const ::scoped_string & scopedstr, character_count nCount);
89
90 CLASS_DECL_ACME wstring utf8_to_unicode(const ::scoped_string & scopedstr);
91
92 //CLASS_DECL_ACME bool utf8_to_unicode(::wide_character * pwsz, character_count iBuffer, const_char_pointer lpcsz, character_count iCount);
93
94 CLASS_DECL_ACME bool utf8_to_unicode(::wide_character * pwsz, character_count iBuffer, const ::scoped_string & scopedstr);
95
96 CLASS_DECL_ACME bool utf8_to_multibyte(::u32 uCodePage, string & str, const ::scoped_string & scopedstr);
97
98 //CLASS_DECL_ACME bool utf8_to_multibyte(::u32 uCodePage, string & str, const ::scoped_string & scopedstr, character_count nCount);
99
100 //CLASS_DECL_ACME bool utf8_to_multibyte(::u32 uCodePage, char_pointer psz, character_count nCount, const_char_pointer lpcsz);
101
102
103// } // namespace international
104//
105//
106//} // namespace str
107
108
109//inline wstring unicode(const ::scoped_string & scopedstr) { return utf8_to_unicode(scopedstr); }
110//inline string utf8(const ::wide_character * pwsz) { return unicode_to_utf8(pwsz); }
111
112
113#define unitext(text) (unicode_to_utf8(L##text))
114
115
Definition aaa_want_to_remove_str_wstring.h:94