acme
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages Concepts
_1.h
1#pragma once
2
3
4CLASS_DECL_ACME int trailingBytesForUTF8(::ansi_character ch);
5
6
7typedef int HRes;
8
9
10#include "character.h"
11
12
13
14
16{
17
18 const char * end_of_line;
19 const char * next_line;
20
21};
22
23
24
25
26
27#include "acme/prototype/string/x/x_charcategory.h"
28#include "acme/prototype/prototype/bit.h"
29#include "acme/prototype/collection/bit_array.h"
30
31
32template < typename TYPE >
33const auto __string_base(const TYPE & t)
34{
35
36 return t.to_string_base();
37
38}
39
40inline const ansi_string __string_base(const ::ansi_character * psz);
41inline const wd16_string __string_base(const ::wd16_character * psz);
42inline const wd32_string __string_base(const ::wd32_character * psz);
43
44
45
46#include "_unicode.h"
47
48
49#include "sz.h"
50
51
52//#include "acme/exception/throw.h"
53#include "static_string.h"
54
55#ifdef __cplusplus
56
57
58#include "stdstring.h"
59
60
61#include "static_string.h"
62
63#include "acme/prototype/prototype/atomic.h"
64
65#include "acme/prototype/prototype/interlocked_count.h"
66
67#include "acme/memory/memory_allocator.h"
68
69#include "acme/prototype/prototype/natural.h"
70
71
72
73#include "string_meta_data.h"
74
75#include "simple_string_base.h"
76
77#include "string_iterator.h"
78
79#include "string_base.h"
80
81#include "as_string.h"
82
83
84#include "acme/prototype/string/x/x_charcategory.h"
85#include "acme/prototype/prototype/bit.h"
86#include "acme/prototype/collection/bit_array.h"
87
88inline string consume_char(const ::ansi_character *& p)
89{
90 auto len = ::utf8_len(p);
91 string strChar(p, len);
92 p += len;
93 return strChar;
94}
95inline wd16_string consume_char(const ::wd16_character *& p)
96{
97 auto len = ::utf16_len(p);
98 wd16_string wd16strChar(p, len);
99 p += len;
100 return wd16strChar;
101}
102inline wd32_string consume_char(const ::wd32_character *& p)
103{
104 auto len = 1;
105 wd32_string wd32strChar(p, len);
106 p += len;
107 return wd32strChar;
108}
109
110
111inline ::ansi_character * next_char(const ::ansi_character *& p)
112{
113 auto len = ::utf8_len(p);
114 p += len;
115 return (::ansi_character *)p;
116}
117inline const ::wd16_character * next_char(const ::wd16_character *& p)
118{
119 auto len = ::utf16_len(p);
120 p += len;
121 return (::wd16_character *)p;
122}
123inline ::wd32_character * next_char(const ::wd32_character *& p)
124{
125 auto len = 1;
126 p += len;
127 return(::wd32_character *)p;
128}
129
130
131
132
133#include "string_inst.h"
134
135
136//#include "as_string.h"
137
138
139//#include "_trait.h"
140
141
142#include "string_wide_conversion.h"
143
144
145#include "to_integer.h"
146
147
148#endif
149
150
151
152#ifdef WINDOWS
153#define unincpy wcsncpy
154#else
155#define unincpy wide_count_copy
156#endif
157
158#include "ch.h"
159
160//#include "_compare.h"
161#include "from_string.h"
162#include "str.h"
163
164
165
166
167#include "stringtow.h"
168#include "from_integer.h"
169
170
171
172
173#include "ch_class.h"
174#include "international.h"
175
176#include "tokenizer.h"
177
178#include "whole_word.h"
179#include "hex.h"
180
181//#include "istring.h"
182
183#include "parse.h"
184
185
186
187
188
189
190#include "_conv.h"
191
192
193CLASS_DECL_ACME string string_formatf(const ::ansi_character * pszFormat, ...);
194
195
196
Definition _1.h:16