- PyCodec_BackslashReplaceErrors
PyObject* PyCodec_BackslashReplaceErrors(PyObject* exc)
replace the unicode encode error with backslash escapes (\x, \u and \U)
- PyCodec_Decode
PyObject* PyCodec_Decode(PyObject* object, const(char)* encoding, const(char)* errors)
Generic codec based decoding API.
- PyCodec_Decoder
PyObject* PyCodec_Decoder(const(char)* encoding)
Get a decoder function for the given encoding.
- PyCodec_Encode
PyObject* PyCodec_Encode(PyObject* object, const(char)* encoding, const(char)* errors)
Generic codec based _encoding API.
- PyCodec_Encoder
PyObject* PyCodec_Encoder(const(char)* encoding)
Get an encoder function for the given encoding.
- PyCodec_IgnoreErrors
PyObject* PyCodec_IgnoreErrors(PyObject* exc)
ignore the unicode error, skipping the faulty input
- PyCodec_IncrementalDecoder
PyObject* PyCodec_IncrementalDecoder(const(char)* encoding, const(char)* errors)
Get a IncrementalDecoder object function for the given encoding. */
/// Availability: >= 2.
- PyCodec_IncrementalEncoder
PyObject* PyCodec_IncrementalEncoder(const(char)* encoding, const(char)* errors)
Get a IncrementalEncoder object for the given encoding. */
/// Availability: >= 2.
- PyCodec_KnownEncoding
int PyCodec_KnownEncoding(const(char)* encoding)
- PyCodec_LookupError
PyObject* PyCodec_LookupError(const(char)* name)
Lookup the error handling callback function registered under the given
name. As a special case NULL can be passed, in which case
the error handling callback for "strict" will be returned.
- PyCodec_NameReplaceErrors
PyObject* PyCodec_NameReplaceErrors(PyObject* exc)
replace the unicode encode error with backslash escapes (\N, \x, \u and \U)
- PyCodec_Register
int PyCodec_Register(PyObject* search_function)
Register a new codec search function.
- PyCodec_RegisterError
int PyCodec_RegisterError(const(char)* name, PyObject* error)
Register the _error handling callback function error under the given
name. This function will be called by the codec when it encounters
unencodable characters/undecodable bytes and doesn't know the
callback _name, when name is specified as the error parameter
in the call to the encode/decode function.
Return 0 on success, -1 on _error
- PyCodec_ReplaceErrors
PyObject* PyCodec_ReplaceErrors(PyObject* exc)
replace the unicode encode error with ? or U+FFFD
- PyCodec_StreamReader
PyObject* PyCodec_StreamReader(const(char)* encoding, PyObject* stream, const(char)* errors)
Get a StreamReader factory function for the given encoding.
- PyCodec_StreamWriter
PyObject* PyCodec_StreamWriter(const(char)* encoding, PyObject* stream, const(char)* errors)
Get a StreamWriter factory function for the given encoding.
- PyCodec_StrictErrors
PyObject* PyCodec_StrictErrors(PyObject* exc)
raise exc as an exception
- PyCodec_XMLCharRefReplaceErrors
PyObject* PyCodec_XMLCharRefReplaceErrors(PyObject* exc)
replace the unicode encode error with XML character references
- _PyCodec_Lookup
PyObject* _PyCodec_Lookup(const(char)* encoding)
Codec register lookup API.
Mirror codecs.h
[which was]
Written by Marc-Andre Lemburg (mal@lemburg.com).
Copyright (c) Corporation for National Research Initiatives.
Python Codec Registry and support functions