diff options
author | Guido van Rossum <guido@python.org> | 2000-03-28 02:01:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-03-28 02:01:15 (GMT) |
commit | efec1158c1a5cbd4a1b9679fc218915676f69dd0 (patch) | |
tree | 3a1577cdcf847ebf09e1b8578bdff08d11510d4b /Include/unicodeobject.h | |
parent | 50fbb15b16a0a975537a1b5ffbe1cb464fdd062d (diff) | |
download | cpython-efec1158c1a5cbd4a1b9679fc218915676f69dd0.zip cpython-efec1158c1a5cbd4a1b9679fc218915676f69dd0.tar.gz cpython-efec1158c1a5cbd4a1b9679fc218915676f69dd0.tar.bz2 |
Prototypes added for MBCS codecs. (Win32 only.)
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r-- | Include/unicodeobject.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 770ecab..e9e60d8 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -561,6 +561,26 @@ extern DL_IMPORT(PyObject *) PyUnicode_TranslateCharmap( const char *errors /* error handling */ ); +#ifdef MS_WIN32 +/* --- MBCS codecs for Windows -------------------------------------------- */ +extern DL_IMPORT(PyObject*) PyUnicode_DecodeMBCS( + const char *string, /* MBCS encoded string */ + int length, /* size of string */ + const char *errors /* error handling */ + ); + +extern DL_IMPORT(PyObject*) PyUnicode_AsMBCSString( + PyObject *unicode /* Unicode object */ + ); + +extern DL_IMPORT(PyObject*) PyUnicode_EncodeMBCS( + const Py_UNICODE *data, /* Unicode char buffer */ + int length, /* Number of Py_UNICODE chars to encode */ + const char *errors /* error handling */ + ); + + +#endif /* MS_WIN32 */ /* --- Methods & Slots ---------------------------------------------------- These are capable of handling Unicode objects and strings on input |