/external/expat/lib/ |
D | xmltok.c | 323 const char *fromLim = *fromLimRef; in _INTERNAL_trim_to_complete_utf8_characters() local 325 for (; fromLim > from; fromLim--, walked++) { in _INTERNAL_trim_to_complete_utf8_characters() 326 const unsigned char prev = (unsigned char)fromLim[-1]; in _INTERNAL_trim_to_complete_utf8_characters() 330 fromLim += 4 - 1; in _INTERNAL_trim_to_complete_utf8_characters() 338 fromLim += 3 - 1; in _INTERNAL_trim_to_complete_utf8_characters() 346 fromLim += 2 - 1; in _INTERNAL_trim_to_complete_utf8_characters() 356 *fromLimRef = fromLim; in _INTERNAL_trim_to_complete_utf8_characters() 360 utf8_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in utf8_toUtf8() argument 366 const ptrdiff_t bytesAvailable = fromLim - *fromP; in utf8_toUtf8() 370 fromLim = *fromP + bytesStorable; in utf8_toUtf8() [all …]
|
D | xmltok.h | 186 const char *fromLim, char **toP, 190 const char *fromLim, 271 #define XmlUtf8Convert(enc, fromP, fromLim, toP, toLim) \ argument 272 (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) 274 #define XmlUtf16Convert(enc, fromP, fromLim, toP, toLim) \ argument 275 (((enc)->utf16Convert)(enc, fromP, fromLim, toP, toLim))
|
/external/python/cpython2/Modules/expat/ |
D | xmltok.c | 367 const char * fromLim = *fromLimRef; in _INTERNAL_trim_to_complete_utf8_characters() local 369 for (; fromLim > from; fromLim--, walked++) { in _INTERNAL_trim_to_complete_utf8_characters() 370 const unsigned char prev = (unsigned char)fromLim[-1]; in _INTERNAL_trim_to_complete_utf8_characters() 373 fromLim += 4 - 1; in _INTERNAL_trim_to_complete_utf8_characters() 380 fromLim += 3 - 1; in _INTERNAL_trim_to_complete_utf8_characters() 387 fromLim += 2 - 1; in _INTERNAL_trim_to_complete_utf8_characters() 396 *fromLimRef = fromLim; in _INTERNAL_trim_to_complete_utf8_characters() 401 const char **fromP, const char *fromLim, in utf8_toUtf8() argument 408 const ptrdiff_t bytesAvailable = fromLim - *fromP; in utf8_toUtf8() 411 fromLim = *fromP + bytesStorable; in utf8_toUtf8() [all …]
|
D | xmltok.h | 194 const char *fromLim, 199 const char *fromLim, 284 #define XmlUtf8Convert(enc, fromP, fromLim, toP, toLim) \ argument 285 (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) 287 #define XmlUtf16Convert(enc, fromP, fromLim, toP, toLim) \ argument 288 (((enc)->utf16Convert)(enc, fromP, fromLim, toP, toLim))
|
/external/python/cpython3/Modules/expat/ |
D | xmltok.c | 323 const char *fromLim = *fromLimRef; in _INTERNAL_trim_to_complete_utf8_characters() local 325 for (; fromLim > from; fromLim--, walked++) { in _INTERNAL_trim_to_complete_utf8_characters() 326 const unsigned char prev = (unsigned char)fromLim[-1]; in _INTERNAL_trim_to_complete_utf8_characters() 330 fromLim += 4 - 1; in _INTERNAL_trim_to_complete_utf8_characters() 338 fromLim += 3 - 1; in _INTERNAL_trim_to_complete_utf8_characters() 346 fromLim += 2 - 1; in _INTERNAL_trim_to_complete_utf8_characters() 356 *fromLimRef = fromLim; in _INTERNAL_trim_to_complete_utf8_characters() 360 utf8_toUtf8(const ENCODING *enc, const char **fromP, const char *fromLim, in utf8_toUtf8() argument 366 const ptrdiff_t bytesAvailable = fromLim - *fromP; in utf8_toUtf8() 370 fromLim = *fromP + bytesStorable; in utf8_toUtf8() [all …]
|
D | xmltok.h | 186 const char *fromLim, char **toP, 190 const char *fromLim, 271 #define XmlUtf8Convert(enc, fromP, fromLim, toP, toLim) \ argument 272 (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) 274 #define XmlUtf16Convert(enc, fromP, fromLim, toP, toLim) \ argument 275 (((enc)->utf16Convert)(enc, fromP, fromLim, toP, toLim))
|
/external/expat/tests/ |
D | runtests.c | 799 const char *fromLim = cases[i].input + strlen(cases[i].input); in START_TEST() local 800 const char *const fromLimInitially = fromLim; in START_TEST() 803 _INTERNAL_trim_to_complete_utf8_characters(cases[i].input, &fromLim); in START_TEST() 805 actualMovementInChars = (fromLim - fromLimInitially); in START_TEST()
|