◆ TiXmlParsingData()
TiXmlParsingData::TiXmlParsingData |
( |
const char * |
start, |
|
|
int |
_tabsize, |
|
|
int |
row, |
|
|
int |
col |
|
) |
| |
|
inlineprivate |
182 {
183 assert( start );
188 }
const char * stamp
Definition: tinyxmlparser.cpp:191
int tabsize
Definition: tinyxmlparser.cpp:192
TiXmlCursor cursor
Definition: tinyxmlparser.cpp:190
int col
Definition: tinyxml.h:105
int row
Definition: tinyxml.h:104
◆ Cursor()
◆ Stamp()
197{
198 assert( now );
199
200
202 {
203 return;
204 }
205
206
211
213 {
214
215 const unsigned char* pU = (
const unsigned char*)
p;
216
217
218 switch (*pU) {
219 case 0:
220
221
222 return;
223
224 case '\r':
225
226 ++row;
227 col = 0;
228
230
231
234 }
235 break;
236
237 case '\n':
238
239 ++row;
240 col = 0;
241
242
244
245
246
247
250 }
251 break;
252
253 case '\t':
254
256
257
259 break;
260
263 {
264 if ( *(
p+1) && *(
p+2) )
265 {
266
267
270 else if ( *(pU+1)==0xbfU && *(pU+2)==0xbeU )
272 else if ( *(pU+1)==0xbfU && *(pU+2)==0xbfU )
274 else
276 }
277 }
278 else
279 {
281 ++col;
282 }
283 break;
284
285 default:
287 {
288
290 if ( step == 0 )
291 step = 1;
293
294
295 ++col;
296 }
297 else
298 {
300 ++col;
301 }
302 break;
303 }
304 }
311}
static const int utf8ByteTable[256]
Definition: tinyxml.h:253
p
Definition: testBGReduction_AllMethods.C:8
@ TIXML_ENCODING_UTF8
Definition: tinyxml.h:166
const unsigned char TIXML_UTF_LEAD_0
Definition: tinyxmlparser.cpp:62
const unsigned char TIXML_UTF_LEAD_1
Definition: tinyxmlparser.cpp:63
const unsigned char TIXML_UTF_LEAD_2
Definition: tinyxmlparser.cpp:64
◆ TiXmlDocument
◆ cursor
◆ stamp
const char* TiXmlParsingData::stamp |
|
private |
◆ tabsize
int TiXmlParsingData::tabsize |
|
private |
The documentation for this class was generated from the following file: