]> granicus.if.org Git - python/commitdiff
Prototypes added for MBCS codecs. (Win32 only.)
authorGuido van Rossum <guido@python.org>
Tue, 28 Mar 2000 02:01:15 +0000 (02:01 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 28 Mar 2000 02:01:15 +0000 (02:01 +0000)
Include/unicodeobject.h

index 770ecab52c41a882e39b286e22d9b2f1a45e9f4c..e9e60d8baed4ccbc85ecbb98c4457c83d3b518ee 100644 (file)
@@ -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