blob: 257629d383df0feed679ed5620324bd976913d2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#ifndef Py_CODECREGISTRY_H
#define Py_CODECREGISTRY_H
#ifdef __cplusplus
extern "C" {
#endif
/* ------------------------------------------------------------------------
Python Codec Registry and support functions
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
------------------------------------------------------------------------ */
extern DL_IMPORT(int) PyCodec_Register(
PyObject *search_function
);
extern DL_IMPORT(PyObject *) _PyCodec_Lookup(
const char *encoding
);
extern DL_IMPORT(PyObject *) PyCodec_Encoder(
const char *encoding
);
extern DL_IMPORT(PyObject *) PyCodec_Decoder(
const char *encoding
);
extern DL_IMPORT(PyObject *) PyCodec_StreamReader(
const char *encoding,
PyObject *stream,
const char *errors
);
extern DL_IMPORT(PyObject *) PyCodec_Encode(
PyObject *object,
const char *encoding,
const char *errors
);
extern DL_IMPORT(PyObject *) PyCodec_Decode(
PyObject *object,
const char *encoding,
const char *errors
);
#ifdef __cplusplus
}
#endif
#endif /* !Py_CODECREGISTRY_H */
|