diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-07-30 22:34:24 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-07-30 22:34:24 (GMT) |
commit | 3ce45389bd929296863e26586fa6963ba307e6fb (patch) | |
tree | f094b82d809cd17a3bbd1f8779396389d7c985a3 /Include/unicodeobject.h | |
parent | 5121e7de11eaf8ef872aef4b0c58612d6a814161 (diff) | |
download | cpython-3ce45389bd929296863e26586fa6963ba307e6fb.zip cpython-3ce45389bd929296863e26586fa6963ba307e6fb.tar.gz cpython-3ce45389bd929296863e26586fa6963ba307e6fb.tar.bz2 |
Add _PyUnicode_AsDefaultEncodedString to unicodeobject.h.
And remove all the extern decls in the middle of .c files.
Apparently, it was excluded from the header file because it is
intended for internal use by the interpreter. It's still intended for
internal use and documented as such in the header file.
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r-- | Include/unicodeobject.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 871fbed..84cd0c1 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -386,6 +386,23 @@ extern DL_IMPORT(int) PyUnicode_AsWideChar( /* --- Manage the default encoding ---------------------------------------- */ +/* Return a Python string holding the default encoded value of the + Unicode object. + + The resulting string is cached in the Unicode object for subsequent + usage by this function. The cached version is needed to implement + the character buffer interface and will live (at least) as long as + the Unicode object itself. + + The refcount of the string is *not* incremented. + + *** Exported for internal use by the interpreter only !!! *** + +*/ + +extern DL_IMPORT(PyObject *) _PyUnicode_AsDefaultEncodedString( + PyObject *, const char *); + /* Returns the currently active default encoding. The default encoding is currently implemented as run-time settable |