mirror of https://github.com/python/cpython.git
Typo: whcar_t should be wchar_t.
Bugfix candidate? Don't know how this is handled in the docs.
This commit is contained in:
parent
b803f7013c
commit
541703b18f
|
@ -884,16 +884,16 @@ following functions. Support is optimized if Python's own
|
||||||
|
|
||||||
\begin{cfuncdesc}{PyObject*}{PyUnicode_FromWideChar}{const wchar_t *w,
|
\begin{cfuncdesc}{PyObject*}{PyUnicode_FromWideChar}{const wchar_t *w,
|
||||||
int size}
|
int size}
|
||||||
Create a Unicode object from the \ctype{whcar_t} buffer \var{w} of
|
Create a Unicode object from the \ctype{wchar_t} buffer \var{w} of
|
||||||
the given size. Returns \NULL{} on failure.
|
the given size. Returns \NULL{} on failure.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{int}{PyUnicode_AsWideChar}{PyUnicodeObject *unicode,
|
\begin{cfuncdesc}{int}{PyUnicode_AsWideChar}{PyUnicodeObject *unicode,
|
||||||
wchar_t *w,
|
wchar_t *w,
|
||||||
int size}
|
int size}
|
||||||
Copies the Unicode object contents into the \ctype{whcar_t} buffer
|
Copies the Unicode object contents into the \ctype{wchar_t} buffer
|
||||||
\var{w}. At most \var{size} \ctype{whcar_t} characters are copied.
|
\var{w}. At most \var{size} \ctype{wchar_t} characters are copied.
|
||||||
Returns the number of \ctype{whcar_t} characters copied or -1 in
|
Returns the number of \ctype{wchar_t} characters copied or -1 in
|
||||||
case of an error.
|
case of an error.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue