acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_impl_prio.h
1#pragma once
2
3
4CLASS_DECL_ACME ::i64 strtoi(const ::scoped_string & scopedstr);
5CLASS_DECL_ACME ::i64 strtoi(const ::wide_character * psz);
6
7
8namespace file
9{
10
11
12 class str;
13
14
15} // namespace file
16
17
18#if defined(__APPLE)
19
20#define noexcept
21
22#endif
23
24
25template <typename T>
26inline T FormatArgument(T value) noexcept
27{
28
29 return value;
30
31}
32
33
34#ifdef WINDOWS
35inline ::u32 _gen_GetConversionACP()
36{
37
38 //return CP_UTF8;
39 return CodePageUtf8;
40
41}
42#endif
43
44
82
83
84inline const_char_pointer FormatArgument(const string & value) noexcept { return value.c_str(); }
85
86
87//template < typename TYPE_CHAR >
88//inline string_base < TYPE_CHAR > operator +(const string_base < TYPE_CHAR > & str1, const string_base < TYPE_CHAR > & str2)
89//{
90//
91// string_base < TYPE_CHAR > str;
92//
93// return string_concatenate(str, str1, str1.length(), str2, str2.length());
94//
95//}
96
97
98
99//template < prototype_atom ATOM >
100//inline ::string operator +(const ::scoped_string & scopedstr, const ATOM & atom) { return string(scopedstr) + string(atom); }
101//
102//
103//template < prototype_payload PAYLOAD >
104//inline ::string operator +(const ::scoped_string & scopedstr, const PAYLOAD & payload) { return string(scopedstr) + string(payload); }
105
106//
107//template < prototype_character CHARACTER, prototype_character CHARACTER2 >
108//inline ::string_base < CHARACTER2 > operator +(const CHARACTER * pszLeft, const ::string_base < CHARACTER2 > & strRight)
109//{
110//
111// ::wstring strLeft(scopedstrLeft);
112//
113// return strLeft + strRight;
114//
115//}
116
117
118
119
120//template < prototype_character CHARACTER, prototype_character CHARACTER2 >
121//inline ::string_base < CHARACTER2 > operator +(const CHARACTER chLeft, const ::string_base < CHARACTER2 > & strRight)
122//{
123//
124// ::string_base < CHARACTER2 > strLeft(&chLeft, 1);
125//
126// return strLeft + strRight;
127//
128//}
129
130
131//#include "__c_wd16_impl.h"
132
133
134
Definition fixed_alloc.h:125
Definition filesystem.h:16