• Home
  • Raw
  • Download

Lines Matching refs:errors

83                     const char *errors);
95 const char *errors = NULL; in _codecs_encode() local
128 errors = PyUnicode_AsUTF8AndSize(args[2], &errors_length); in _codecs_encode()
129 if (errors == NULL) { in _codecs_encode()
132 if (strlen(errors) != (size_t)errors_length) { in _codecs_encode()
137 return_value = _codecs_encode_impl(module, obj, encoding, errors); in _codecs_encode()
160 const char *errors);
172 const char *errors = NULL; in _codecs_decode() local
205 errors = PyUnicode_AsUTF8AndSize(args[2], &errors_length); in _codecs_decode()
206 if (errors == NULL) { in _codecs_decode()
209 if (strlen(errors) != (size_t)errors_length) { in _codecs_decode()
214 return_value = _codecs_decode_impl(module, obj, encoding, errors); in _codecs_decode()
230 const char *errors);
237 const char *errors = NULL; in _codecs_escape_decode() local
263 errors = NULL; in _codecs_escape_decode()
267 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_escape_decode()
268 if (errors == NULL) { in _codecs_escape_decode()
271 if (strlen(errors) != (size_t)errors_length) { in _codecs_escape_decode()
281 return_value = _codecs_escape_decode_impl(module, &data, errors); in _codecs_escape_decode()
302 const char *errors);
309 const char *errors = NULL; in _codecs_escape_encode() local
323 errors = NULL; in _codecs_escape_encode()
327 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_escape_encode()
328 if (errors == NULL) { in _codecs_escape_encode()
331 if (strlen(errors) != (size_t)errors_length) { in _codecs_escape_encode()
341 return_value = _codecs_escape_encode_impl(module, data, errors); in _codecs_escape_encode()
357 const char *errors, int final);
364 const char *errors = NULL; in _codecs_utf_7_decode() local
381 errors = NULL; in _codecs_utf_7_decode()
385 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_7_decode()
386 if (errors == NULL) { in _codecs_utf_7_decode()
389 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_7_decode()
406 return_value = _codecs_utf_7_decode_impl(module, &data, errors, final); in _codecs_utf_7_decode()
427 const char *errors, int final);
434 const char *errors = NULL; in _codecs_utf_8_decode() local
451 errors = NULL; in _codecs_utf_8_decode()
455 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_8_decode()
456 if (errors == NULL) { in _codecs_utf_8_decode()
459 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_8_decode()
476 return_value = _codecs_utf_8_decode_impl(module, &data, errors, final); in _codecs_utf_8_decode()
497 const char *errors, int final);
504 const char *errors = NULL; in _codecs_utf_16_decode() local
521 errors = NULL; in _codecs_utf_16_decode()
525 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_16_decode()
526 if (errors == NULL) { in _codecs_utf_16_decode()
529 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_16_decode()
546 return_value = _codecs_utf_16_decode_impl(module, &data, errors, final); in _codecs_utf_16_decode()
567 const char *errors, int final);
574 const char *errors = NULL; in _codecs_utf_16_le_decode() local
591 errors = NULL; in _codecs_utf_16_le_decode()
595 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_16_le_decode()
596 if (errors == NULL) { in _codecs_utf_16_le_decode()
599 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_16_le_decode()
616 return_value = _codecs_utf_16_le_decode_impl(module, &data, errors, final); in _codecs_utf_16_le_decode()
637 const char *errors, int final);
644 const char *errors = NULL; in _codecs_utf_16_be_decode() local
661 errors = NULL; in _codecs_utf_16_be_decode()
665 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_16_be_decode()
666 if (errors == NULL) { in _codecs_utf_16_be_decode()
669 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_16_be_decode()
686 return_value = _codecs_utf_16_be_decode_impl(module, &data, errors, final); in _codecs_utf_16_be_decode()
708 const char *errors, int byteorder, int final);
715 const char *errors = NULL; in _codecs_utf_16_ex_decode() local
733 errors = NULL; in _codecs_utf_16_ex_decode()
737 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_16_ex_decode()
738 if (errors == NULL) { in _codecs_utf_16_ex_decode()
741 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_16_ex_decode()
765 return_value = _codecs_utf_16_ex_decode_impl(module, &data, errors, byteorder, final); in _codecs_utf_16_ex_decode()
786 const char *errors, int final);
793 const char *errors = NULL; in _codecs_utf_32_decode() local
810 errors = NULL; in _codecs_utf_32_decode()
814 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_32_decode()
815 if (errors == NULL) { in _codecs_utf_32_decode()
818 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_32_decode()
835 return_value = _codecs_utf_32_decode_impl(module, &data, errors, final); in _codecs_utf_32_decode()
856 const char *errors, int final);
863 const char *errors = NULL; in _codecs_utf_32_le_decode() local
880 errors = NULL; in _codecs_utf_32_le_decode()
884 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_32_le_decode()
885 if (errors == NULL) { in _codecs_utf_32_le_decode()
888 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_32_le_decode()
905 return_value = _codecs_utf_32_le_decode_impl(module, &data, errors, final); in _codecs_utf_32_le_decode()
926 const char *errors, int final);
933 const char *errors = NULL; in _codecs_utf_32_be_decode() local
950 errors = NULL; in _codecs_utf_32_be_decode()
954 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_32_be_decode()
955 if (errors == NULL) { in _codecs_utf_32_be_decode()
958 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_32_be_decode()
975 return_value = _codecs_utf_32_be_decode_impl(module, &data, errors, final); in _codecs_utf_32_be_decode()
997 const char *errors, int byteorder, int final);
1004 const char *errors = NULL; in _codecs_utf_32_ex_decode() local
1022 errors = NULL; in _codecs_utf_32_ex_decode()
1026 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_32_ex_decode()
1027 if (errors == NULL) { in _codecs_utf_32_ex_decode()
1030 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_32_ex_decode()
1054 return_value = _codecs_utf_32_ex_decode_impl(module, &data, errors, byteorder, final); in _codecs_utf_32_ex_decode()
1075 const char *errors, int final);
1082 const char *errors = NULL; in _codecs_unicode_escape_decode() local
1109 errors = NULL; in _codecs_unicode_escape_decode()
1113 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_unicode_escape_decode()
1114 if (errors == NULL) { in _codecs_unicode_escape_decode()
1117 if (strlen(errors) != (size_t)errors_length) { in _codecs_unicode_escape_decode()
1134 return_value = _codecs_unicode_escape_decode_impl(module, &data, errors, final); in _codecs_unicode_escape_decode()
1155 const char *errors, int final);
1162 const char *errors = NULL; in _codecs_raw_unicode_escape_decode() local
1189 errors = NULL; in _codecs_raw_unicode_escape_decode()
1193 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_raw_unicode_escape_decode()
1194 if (errors == NULL) { in _codecs_raw_unicode_escape_decode()
1197 if (strlen(errors) != (size_t)errors_length) { in _codecs_raw_unicode_escape_decode()
1214 return_value = _codecs_raw_unicode_escape_decode_impl(module, &data, errors, final); in _codecs_raw_unicode_escape_decode()
1235 const char *errors);
1242 const char *errors = NULL; in _codecs_latin_1_decode() local
1258 errors = NULL; in _codecs_latin_1_decode()
1262 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_latin_1_decode()
1263 if (errors == NULL) { in _codecs_latin_1_decode()
1266 if (strlen(errors) != (size_t)errors_length) { in _codecs_latin_1_decode()
1276 return_value = _codecs_latin_1_decode_impl(module, &data, errors); in _codecs_latin_1_decode()
1297 const char *errors);
1304 const char *errors = NULL; in _codecs_ascii_decode() local
1320 errors = NULL; in _codecs_ascii_decode()
1324 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_ascii_decode()
1325 if (errors == NULL) { in _codecs_ascii_decode()
1328 if (strlen(errors) != (size_t)errors_length) { in _codecs_ascii_decode()
1338 return_value = _codecs_ascii_decode_impl(module, &data, errors); in _codecs_ascii_decode()
1359 const char *errors, PyObject *mapping);
1366 const char *errors = NULL; in _codecs_charmap_decode() local
1383 errors = NULL; in _codecs_charmap_decode()
1387 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_charmap_decode()
1388 if (errors == NULL) { in _codecs_charmap_decode()
1391 if (strlen(errors) != (size_t)errors_length) { in _codecs_charmap_decode()
1405 return_value = _codecs_charmap_decode_impl(module, &data, errors, mapping); in _codecs_charmap_decode()
1428 const char *errors, int final);
1435 const char *errors = NULL; in _codecs_mbcs_decode() local
1452 errors = NULL; in _codecs_mbcs_decode()
1456 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_mbcs_decode()
1457 if (errors == NULL) { in _codecs_mbcs_decode()
1460 if (strlen(errors) != (size_t)errors_length) { in _codecs_mbcs_decode()
1477 return_value = _codecs_mbcs_decode_impl(module, &data, errors, final); in _codecs_mbcs_decode()
1502 const char *errors, int final);
1509 const char *errors = NULL; in _codecs_oem_decode() local
1526 errors = NULL; in _codecs_oem_decode()
1530 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_oem_decode()
1531 if (errors == NULL) { in _codecs_oem_decode()
1534 if (strlen(errors) != (size_t)errors_length) { in _codecs_oem_decode()
1551 return_value = _codecs_oem_decode_impl(module, &data, errors, final); in _codecs_oem_decode()
1576 Py_buffer *data, const char *errors, int final);
1584 const char *errors = NULL; in _codecs_code_page_decode() local
1605 errors = NULL; in _codecs_code_page_decode()
1609 errors = PyUnicode_AsUTF8AndSize(args[2], &errors_length); in _codecs_code_page_decode()
1610 if (errors == NULL) { in _codecs_code_page_decode()
1613 if (strlen(errors) != (size_t)errors_length) { in _codecs_code_page_decode()
1630 return_value = _codecs_code_page_decode_impl(module, codepage, &data, errors, final); in _codecs_code_page_decode()
1653 const char *errors);
1660 const char *errors = NULL; in _codecs_readbuffer_encode() local
1686 errors = NULL; in _codecs_readbuffer_encode()
1690 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_readbuffer_encode()
1691 if (errors == NULL) { in _codecs_readbuffer_encode()
1694 if (strlen(errors) != (size_t)errors_length) { in _codecs_readbuffer_encode()
1704 return_value = _codecs_readbuffer_encode_impl(module, &data, errors); in _codecs_readbuffer_encode()
1725 const char *errors);
1732 const char *errors = NULL; in _codecs_utf_7_encode() local
1749 errors = NULL; in _codecs_utf_7_encode()
1753 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_7_encode()
1754 if (errors == NULL) { in _codecs_utf_7_encode()
1757 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_7_encode()
1767 return_value = _codecs_utf_7_encode_impl(module, str, errors); in _codecs_utf_7_encode()
1783 const char *errors);
1790 const char *errors = NULL; in _codecs_utf_8_encode() local
1807 errors = NULL; in _codecs_utf_8_encode()
1811 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_8_encode()
1812 if (errors == NULL) { in _codecs_utf_8_encode()
1815 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_8_encode()
1825 return_value = _codecs_utf_8_encode_impl(module, str, errors); in _codecs_utf_8_encode()
1841 const char *errors, int byteorder);
1848 const char *errors = NULL; in _codecs_utf_16_encode() local
1866 errors = NULL; in _codecs_utf_16_encode()
1870 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_16_encode()
1871 if (errors == NULL) { in _codecs_utf_16_encode()
1874 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_16_encode()
1891 return_value = _codecs_utf_16_encode_impl(module, str, errors, byteorder); in _codecs_utf_16_encode()
1907 const char *errors);
1914 const char *errors = NULL; in _codecs_utf_16_le_encode() local
1931 errors = NULL; in _codecs_utf_16_le_encode()
1935 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_16_le_encode()
1936 if (errors == NULL) { in _codecs_utf_16_le_encode()
1939 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_16_le_encode()
1949 return_value = _codecs_utf_16_le_encode_impl(module, str, errors); in _codecs_utf_16_le_encode()
1965 const char *errors);
1972 const char *errors = NULL; in _codecs_utf_16_be_encode() local
1989 errors = NULL; in _codecs_utf_16_be_encode()
1993 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_16_be_encode()
1994 if (errors == NULL) { in _codecs_utf_16_be_encode()
1997 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_16_be_encode()
2007 return_value = _codecs_utf_16_be_encode_impl(module, str, errors); in _codecs_utf_16_be_encode()
2023 const char *errors, int byteorder);
2030 const char *errors = NULL; in _codecs_utf_32_encode() local
2048 errors = NULL; in _codecs_utf_32_encode()
2052 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_32_encode()
2053 if (errors == NULL) { in _codecs_utf_32_encode()
2056 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_32_encode()
2073 return_value = _codecs_utf_32_encode_impl(module, str, errors, byteorder); in _codecs_utf_32_encode()
2089 const char *errors);
2096 const char *errors = NULL; in _codecs_utf_32_le_encode() local
2113 errors = NULL; in _codecs_utf_32_le_encode()
2117 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_32_le_encode()
2118 if (errors == NULL) { in _codecs_utf_32_le_encode()
2121 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_32_le_encode()
2131 return_value = _codecs_utf_32_le_encode_impl(module, str, errors); in _codecs_utf_32_le_encode()
2147 const char *errors);
2154 const char *errors = NULL; in _codecs_utf_32_be_encode() local
2171 errors = NULL; in _codecs_utf_32_be_encode()
2175 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_utf_32_be_encode()
2176 if (errors == NULL) { in _codecs_utf_32_be_encode()
2179 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_32_be_encode()
2189 return_value = _codecs_utf_32_be_encode_impl(module, str, errors); in _codecs_utf_32_be_encode()
2205 const char *errors);
2212 const char *errors = NULL; in _codecs_unicode_escape_encode() local
2229 errors = NULL; in _codecs_unicode_escape_encode()
2233 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_unicode_escape_encode()
2234 if (errors == NULL) { in _codecs_unicode_escape_encode()
2237 if (strlen(errors) != (size_t)errors_length) { in _codecs_unicode_escape_encode()
2247 return_value = _codecs_unicode_escape_encode_impl(module, str, errors); in _codecs_unicode_escape_encode()
2263 const char *errors);
2270 const char *errors = NULL; in _codecs_raw_unicode_escape_encode() local
2287 errors = NULL; in _codecs_raw_unicode_escape_encode()
2291 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_raw_unicode_escape_encode()
2292 if (errors == NULL) { in _codecs_raw_unicode_escape_encode()
2295 if (strlen(errors) != (size_t)errors_length) { in _codecs_raw_unicode_escape_encode()
2305 return_value = _codecs_raw_unicode_escape_encode_impl(module, str, errors); in _codecs_raw_unicode_escape_encode()
2321 const char *errors);
2328 const char *errors = NULL; in _codecs_latin_1_encode() local
2345 errors = NULL; in _codecs_latin_1_encode()
2349 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_latin_1_encode()
2350 if (errors == NULL) { in _codecs_latin_1_encode()
2353 if (strlen(errors) != (size_t)errors_length) { in _codecs_latin_1_encode()
2363 return_value = _codecs_latin_1_encode_impl(module, str, errors); in _codecs_latin_1_encode()
2379 const char *errors);
2386 const char *errors = NULL; in _codecs_ascii_encode() local
2403 errors = NULL; in _codecs_ascii_encode()
2407 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_ascii_encode()
2408 if (errors == NULL) { in _codecs_ascii_encode()
2411 if (strlen(errors) != (size_t)errors_length) { in _codecs_ascii_encode()
2421 return_value = _codecs_ascii_encode_impl(module, str, errors); in _codecs_ascii_encode()
2437 const char *errors, PyObject *mapping);
2444 const char *errors = NULL; in _codecs_charmap_encode() local
2462 errors = NULL; in _codecs_charmap_encode()
2466 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_charmap_encode()
2467 if (errors == NULL) { in _codecs_charmap_encode()
2470 if (strlen(errors) != (size_t)errors_length) { in _codecs_charmap_encode()
2484 return_value = _codecs_charmap_encode_impl(module, str, errors, mapping); in _codecs_charmap_encode()
2532 _codecs_mbcs_encode_impl(PyObject *module, PyObject *str, const char *errors);
2539 const char *errors = NULL; in _codecs_mbcs_encode() local
2556 errors = NULL; in _codecs_mbcs_encode()
2560 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_mbcs_encode()
2561 if (errors == NULL) { in _codecs_mbcs_encode()
2564 if (strlen(errors) != (size_t)errors_length) { in _codecs_mbcs_encode()
2574 return_value = _codecs_mbcs_encode_impl(module, str, errors); in _codecs_mbcs_encode()
2593 _codecs_oem_encode_impl(PyObject *module, PyObject *str, const char *errors);
2600 const char *errors = NULL; in _codecs_oem_encode() local
2617 errors = NULL; in _codecs_oem_encode()
2621 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length); in _codecs_oem_encode()
2622 if (errors == NULL) { in _codecs_oem_encode()
2625 if (strlen(errors) != (size_t)errors_length) { in _codecs_oem_encode()
2635 return_value = _codecs_oem_encode_impl(module, str, errors); in _codecs_oem_encode()
2655 const char *errors);
2663 const char *errors = NULL; in _codecs_code_page_encode() local
2684 errors = NULL; in _codecs_code_page_encode()
2688 errors = PyUnicode_AsUTF8AndSize(args[2], &errors_length); in _codecs_code_page_encode()
2689 if (errors == NULL) { in _codecs_code_page_encode()
2692 if (strlen(errors) != (size_t)errors_length) { in _codecs_code_page_encode()
2702 return_value = _codecs_code_page_encode_impl(module, code_page, str, errors); in _codecs_code_page_encode()
2724 _codecs_register_error_impl(PyObject *module, const char *errors,
2731 const char *errors; in _codecs_register_error() local
2742 errors = PyUnicode_AsUTF8AndSize(args[0], &errors_length); in _codecs_register_error()
2743 if (errors == NULL) { in _codecs_register_error()
2746 if (strlen(errors) != (size_t)errors_length) { in _codecs_register_error()
2751 return_value = _codecs_register_error_impl(module, errors, handler); in _codecs_register_error()