acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
aaa_international2.h
1
#pragma once
2
4
5
//
6
//namespace str
7
//{
8
//
9
//
10
// namespace international
11
// {
12
//
13
14
// void CLASS_DECL_ACME unicode_to_utf8(string_array_base & stra, string_array_base & stra);
15
// void CLASS_DECL_ACME utf8_to_unicode(string_array_base & stra, string_array_base & stra);
16
17
18
bool
CLASS_DECL_ACME unicode_to_multibyte(::u32 uCodePage,
memory
& str, const ::scoped_wstring & scopedwstr);
19
20
21
bool
CLASS_DECL_ACME multibyte_to_multibyte(::u32 uCodePageDest,
memory
& str, ::u32 uCodePageSrc, const ::scoped_string & scopedstr);
22
23
//bool CLASS_DECL_ACME multibyte_to_multibyte(::u32 uCodePageDest, memory & str, ::u32 uCodePageSrc, const ::scoped_string & scopedstr, character_count nCount);
24
25
26
bool
CLASS_DECL_ACME multibyte_to_utf8(::u32 uCodePageSrc,
memory
& str, const ::scoped_string & scopedstr);
27
28
//bool CLASS_DECL_ACME multibyte_to_utf8(::u32 uCodePageSrc, memory & str, const ::scoped_string & scopedstr, character_count nCount);
29
30
31
// bool CLASS_DECL_ACME OEMToMultiByte(::u32 uCodePage, memory & str, const ::scoped_string & scopedstr);
32
33
// bool CLASS_DECL_ACME OEMToMultiByte(::u32 uCodePage, memory & str, const ::scoped_string & scopedstr, character_count nCount);
34
35
string
CLASS_DECL_ACME utf8_to_multibyte(::u32 uCodePage, const ::scoped_string & scopedstr);
36
bool
CLASS_DECL_ACME utf8_to_multibyte(::u32 uCodePage, ::string & str, const ::scoped_string & scopedstr);
37
38
//bool CLASS_DECL_ACME utf8_to_multibyte(::u32 uCodePage, memory & str, const ::scoped_string & scopedstr, character_count nCount);
39
40
41
// bool CLASS_DECL_ACME OemToUtf8(memory & str, const ::scoped_string & scopedstr);
42
43
// bool CLASS_DECL_ACME OemToUtf8(memory & str, const ::scoped_string & scopedstr, character_count nCount);
44
45
46
/* inline void unicode_to_utf8(string_array_base & stra, string_array_base & stra)
47
{
48
string str;
49
for(character_count i = 0; i < stra.get_size(); i++)
50
{
51
unicode_to_utf8(str, stra[i]);
52
stra.add(str);
53
}
54
}
55
56
inline void utf8_to_unicode(string_array_base & stra, string_array_base & stra)
57
{
58
string str;
59
for(character_count i = 0; i < stra.get_size(); i++)
60
{
61
utf8_to_unicode(str, stra[i]);
62
stra.add(str);
63
}
64
}*/
65
66
67
CLASS_DECL_ACME
bool
multibyte_to_utf8(::u32 uCodePageSrc,
memory
& str, const ::scoped_string & scopedstr);
68
69
70
//CLASS_DECL_ACME bool multibyte_to_utf8(::u32 uCodePageSrc, memory & str, const ::scoped_string & scopedstr, character_count nCount);
71
// {
72
//
73
//#ifdef WINDOWS
74
//
75
// return multibyte_to_multibyte(CP_UTF8, str, uCodePageSrc, pcsz, nCount);
76
//
77
//#else
78
//
79
// throw ::exception(todo, "multibyte");
80
//
81
//#endif
82
//
83
// }
84
85
86
//inline bool OemToUtf8(memory & str, const ::scoped_string & scopedstr)
87
88
//{
89
// return multibyte_to_multibyte(CP_UTF8, str, CP_OEMCP, pcsz);
90
91
//}
92
93
//inline bool OemToUtf8(memory & str, const ::scoped_string & scopedstr, character_count nCount)
94
95
//{
96
// return multibyte_to_multibyte(CP_UTF8, str, CP_OEMCP, pcsz, nCount);
97
98
//}
99
100
CLASS_DECL_ACME
bool
utf8_to_multibyte(::u32 uCodePage,
memory
& str, const ::scoped_string & scopedstr);
101
//
102
// {
103
// return multibyte_to_multibyte(CodePageUtf8, str, uCodePage, pcsz);
104
//
105
// }
106
107
//CLASS_DECL_ACME bool utf8_to_multibyte(::u32 uCodePage, memory & str, const ::scoped_string & scopedstr, character_count nCount);
108
//
109
// {
110
// return multibyte_to_multibyte(CodePageUtf8, str, uCodePage, pcsz, nCount);
111
//
112
// }
113
114
//
115
// } // namespace international
116
//
117
//
118
//} // namespace str
119
//
120
121
memory
Definition
memory.h:33
prototype
string
aaa_international2.h
Generated by
1.17.0