• Home
  • Raw
  • Download

Lines Matching refs:code_page

7086 code_page_name(UINT code_page, PyObject **obj)  in code_page_name()  argument
7089 if (code_page == CP_ACP) in code_page_name()
7091 if (code_page == CP_UTF7) in code_page_name()
7093 if (code_page == CP_UTF8) in code_page_name()
7096 *obj = PyBytes_FromFormat("cp%u", code_page); in code_page_name()
7103 decode_code_page_flags(UINT code_page) in decode_code_page_flags() argument
7105 if (code_page == CP_UTF7) { in decode_code_page_flags()
7121 decode_code_page_strict(UINT code_page, in decode_code_page_strict() argument
7126 const DWORD flags = decode_code_page_flags(code_page); in decode_code_page_strict()
7132 outsize = MultiByteToWideChar(code_page, flags, in, insize, NULL, 0); in decode_code_page_strict()
7153 outsize = MultiByteToWideChar(code_page, flags, in, insize, out, outsize); in decode_code_page_strict()
7173 decode_code_page_errors(UINT code_page, in decode_code_page_errors() argument
7180 const DWORD flags = decode_code_page_flags(code_page); in decode_code_page_errors()
7199 encoding = code_page_name(code_page, &encoding_obj); in decode_code_page_errors()
7245 outsize = MultiByteToWideChar(code_page, flags, in decode_code_page_errors()
7308 decode_code_page_stateful(int code_page, in decode_code_page_stateful() argument
7315 if (code_page < 0) { in decode_code_page_stateful()
7349 converted = decode_code_page_strict(code_page, &v, in decode_code_page_stateful()
7352 converted = decode_code_page_errors(code_page, &v, in decode_code_page_stateful()
7373 PyUnicode_DecodeCodePageStateful(int code_page, in PyUnicode_DecodeCodePageStateful() argument
7379 return decode_code_page_stateful(code_page, s, size, errors, consumed); in PyUnicode_DecodeCodePageStateful()
7400 encode_code_page_flags(UINT code_page, const char *errors) in encode_code_page_flags() argument
7402 if (code_page == CP_UTF8) { in encode_code_page_flags()
7405 else if (code_page == CP_UTF7) { in encode_code_page_flags()
7425 encode_code_page_strict(UINT code_page, PyObject **outbytes, in encode_code_page_strict() argument
7434 const DWORD flags = encode_code_page_flags(code_page, NULL); in encode_code_page_strict()
7442 if (code_page != CP_UTF8 && code_page != CP_UTF7) in encode_code_page_strict()
7458 outsize = WideCharToMultiByte(code_page, flags, in encode_code_page_strict()
7495 outsize = WideCharToMultiByte(code_page, flags, in encode_code_page_strict()
7522 encode_code_page_errors(UINT code_page, PyObject **outbytes, in encode_code_page_errors() argument
7526 const DWORD flags = encode_code_page_flags(code_page, errors); in encode_code_page_errors()
7547 encoding = code_page_name(code_page, &encoding_obj); in encode_code_page_errors()
7563 if (code_page != CP_UTF8 && code_page != CP_UTF7) in encode_code_page_errors()
7609 outsize = WideCharToMultiByte(code_page, flags, in encode_code_page_errors()
7703 encode_code_page(int code_page, in encode_code_page() argument
7721 if (code_page < 0) { in encode_code_page()
7746 ret = encode_code_page_strict(code_page, &outbytes, in encode_code_page()
7750 ret = encode_code_page_errors(code_page, &outbytes, in encode_code_page()
7780 PyUnicode_EncodeCodePage(int code_page, in PyUnicode_EncodeCodePage() argument
7784 return encode_code_page(code_page, unicode, errors); in PyUnicode_EncodeCodePage()