diff options
Diffstat (limited to 'Include/fileutils.h')
-rw-r--r-- | Include/fileutils.h | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h index 2527d84..b4f8b11 100644 --- a/Include/fileutils.h +++ b/Include/fileutils.h @@ -20,18 +20,41 @@ PyAPI_FUNC(char*) _Py_EncodeLocaleRaw( #endif #ifdef Py_BUILD_CORE +PyAPI_FUNC(int) _Py_DecodeUTF8Ex( + const char *arg, + Py_ssize_t arglen, + wchar_t **wstr, + size_t *wlen, + const char **reason, + int surrogateescape); + +PyAPI_FUNC(int) _Py_EncodeUTF8Ex( + const wchar_t *text, + char **str, + size_t *error_pos, + const char **reason, + int raw_malloc, + int surrogateescape); + PyAPI_FUNC(wchar_t*) _Py_DecodeUTF8_surrogateescape( - const char *s, - Py_ssize_t size, - size_t *p_wlen); + const char *arg, + Py_ssize_t arglen); -PyAPI_FUNC(wchar_t *) _Py_DecodeCurrentLocale( +PyAPI_FUNC(int) _Py_DecodeLocaleEx( const char *arg, - size_t *size); + wchar_t **wstr, + size_t *wlen, + const char **reason, + int current_locale, + int surrogateescape); -PyAPI_FUNC(char*) _Py_EncodeCurrentLocale( +PyAPI_FUNC(int) _Py_EncodeLocaleEx( const wchar_t *text, - size_t *error_pos); + char **str, + size_t *error_pos, + const char **reason, + int current_locale, + int surrogateescape); #endif #ifndef Py_LIMITED_API |