Lines Matching refs:reason
203 size_t *error_pos, const char **reason,
245 if (reason) {
246 *reason = "encoding error";
273 const char **reason, int surrogateescape)
300 if (reason) {
301 *reason = "decoding error";
320 const char **reason, int surrogateescape)
443 if (reason) {
444 *reason = "decoding error";
451 return decode_ascii(arg, wstr, wlen, reason, surrogateescape);
471 invalid byte sequence in the input string into *wlen. If reason is not NULL,
472 write the decoding error message into *reason.
478 const char **reason,
483 return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason,
486 return decode_current_locale(arg, wstr, wlen, reason, surrogateescape);
491 return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason,
495 return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason,
506 return decode_ascii(arg, wstr, wlen, reason, surrogateescape);
510 return decode_current_locale(arg, wstr, wlen, reason, surrogateescape);
551 size_t *error_pos, const char **reason,
631 if (reason) {
632 *reason = "encoding error";
639 const char **reason,
644 return _Py_EncodeUTF8Ex(text, str, error_pos, reason,
647 return encode_current_locale(text, str, error_pos, reason,
653 return _Py_EncodeUTF8Ex(text, str, error_pos, reason,
657 return _Py_EncodeUTF8Ex(text, str, error_pos, reason,
667 return encode_ascii(text, str, error_pos, reason,
672 return encode_current_locale(text, str, error_pos, reason,
723 size_t *error_pos, const char **reason,
726 return encode_locale_ex(text, str, error_pos, reason, 1,