Home
last modified time | relevance | path

Searched refs:fromLim (Results 1 – 5 of 5) sorted by relevance

/external/expat/lib/
Dxmltok.c335 const char * fromLim = *fromLimRef; in align_limit_to_full_utf8_characters() local
337 for (; fromLim > from; fromLim--, walked++) { in align_limit_to_full_utf8_characters()
338 const unsigned char prev = (unsigned char)fromLim[-1]; in align_limit_to_full_utf8_characters()
341 fromLim += 4 - 1; in align_limit_to_full_utf8_characters()
348 fromLim += 3 - 1; in align_limit_to_full_utf8_characters()
355 fromLim += 2 - 1; in align_limit_to_full_utf8_characters()
364 *fromLimRef = fromLim; in align_limit_to_full_utf8_characters()
369 const char **fromP, const char *fromLim, in utf8_toUtf8() argument
375 if (fromLim - *fromP > toLim - *toP) { in utf8_toUtf8()
378 fromLim = *fromP + (toLim - *toP); in utf8_toUtf8()
[all …]
Dxmltok.h169 const char *fromLim,
174 const char *fromLim,
261 #define XmlUtf8Convert(enc, fromP, fromLim, toP, toLim) \ argument
262 (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
264 #define XmlUtf16Convert(enc, fromP, fromLim, toP, toLim) \ argument
265 (((enc)->utf16Convert)(enc, fromP, fromLim, toP, toLim))
/external/python/cpython2/Modules/expat/
Dxmltok.c323 const char **fromP, const char *fromLim, in utf8_toUtf8() argument
328 if (fromLim - *fromP > toLim - *toP) { in utf8_toUtf8()
330 for (fromLim = *fromP + (toLim - *toP); fromLim > *fromP; fromLim--) in utf8_toUtf8()
331 if (((unsigned char)fromLim[-1] & 0xc0) != 0x80) in utf8_toUtf8()
334 for (to = *toP, from = *fromP; from != fromLim; from++, to++) in utf8_toUtf8()
342 const char **fromP, const char *fromLim, in utf8_toUtf16() argument
347 while (from != fromLim && to != toLim) { in utf8_toUtf16()
430 const char **fromP, const char *fromLim, in latin1_toUtf8() argument
435 if (*fromP == fromLim) in latin1_toUtf8()
455 const char **fromP, const char *fromLim, in latin1_toUtf16() argument
[all …]
Dxmltok.h163 const char *fromLim,
168 const char *fromLim,
255 #define XmlUtf8Convert(enc, fromP, fromLim, toP, toLim) \ argument
256 (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
258 #define XmlUtf16Convert(enc, fromP, fromLim, toP, toLim) \ argument
259 (((enc)->utf16Convert)(enc, fromP, fromLim, toP, toLim))
/external/expat/tests/
Druntests.c410 const char * fromLim = cases[i].input + strlen(cases[i].input); in START_TEST() local
411 const char * const fromLimInitially = fromLim; in START_TEST()
414 align_limit_to_full_utf8_characters(cases[i].input, &fromLim); in START_TEST()
416 actualMovementInChars = (fromLim - fromLimInitially); in START_TEST()