diff options
Diffstat (limited to 'doc/html/c_api.html')
-rw-r--r-- | doc/html/c_api.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/c_api.html b/doc/html/c_api.html index d51cb19..ff2a00f 100644 --- a/doc/html/c_api.html +++ b/doc/html/c_api.html @@ -261,12 +261,12 @@ the result is <tt class="docutils literal"><span class="pre">Py_None</span></tt> <dd>Convert a C/C++ <tt class="docutils literal"><span class="pre">unsigned</span> <span class="pre">short</span></tt> to a Python long.</dd> <dt><tt class="docutils literal"><span class="pre">u</span></tt> (long) [unsigned int]</dt> <dd>Convert a C/C++ <tt class="docutils literal"><span class="pre">unsigned</span> <span class="pre">int</span></tt> to a Python long.</dd> -<dt><tt class="docutils literal"><span class="pre">w</span></tt> (tqunicode/string) [wchar_t]</dt> -<dd>Convert a C/C++ wide character to a Python v2 tqunicode object or a +<dt><tt class="docutils literal"><span class="pre">w</span></tt> (unicode/string) [wchar_t]</dt> +<dd>Convert a C/C++ wide character to a Python v2 unicode object or a Python v3 string object.</dd> -<dt><tt class="docutils literal"><span class="pre">x</span></tt> (tqunicode/string) [wchar_t *]</dt> +<dt><tt class="docutils literal"><span class="pre">x</span></tt> (unicode/string) [wchar_t *]</dt> <dd>Convert a C/C++ <tt class="docutils literal"><span class="pre">L'\0'</span></tt> terminated wide character string to a Python -v2 tqunicode object or a Python v3 string object. If the string pointer +v2 unicode object or a Python v3 string object. If the string pointer is <tt class="docutils literal"><span class="pre">NULL</span></tt> then the result is <tt class="docutils literal"><span class="pre">Py_None</span></tt>.</dd> <dt><tt class="docutils literal"><span class="pre">A</span></tt> (string) [char *]</dt> <dd>Convert a C/C++ <tt class="docutils literal"><span class="pre">'\0'</span></tt> terminated string to a Python v2 or v3 string @@ -329,8 +329,8 @@ Python named enum type.</p> <dt><tt class="docutils literal"><span class="pre">F</span></tt> (wrapped enum) [enum, <tt class="xref docutils literal"><span class="pre">sipTypeDef</span></tt> *]</dt> <dd>Convert a named C/C++ <tt class="docutils literal"><span class="pre">enum</span></tt> to an instance of the corresponding Python named enum type.</dd> -<dt><tt class="docutils literal"><span class="pre">G</span></tt> (tqunicode) [wchar_t *, <a title="SIP_SSIZE_T" class="reference internal" href="#SIP_SSIZE_T"><tt class="xref docutils literal"><span class="pre">SIP_SSIZE_T</span></tt></a>]</dt> -<dd>Convert a C/C++ wide character array and its length to a Python tqunicode +<dt><tt class="docutils literal"><span class="pre">G</span></tt> (unicode) [wchar_t *, <a title="SIP_SSIZE_T" class="reference internal" href="#SIP_SSIZE_T"><tt class="xref docutils literal"><span class="pre">SIP_SSIZE_T</span></tt></a>]</dt> +<dd>Convert a C/C++ wide character array and its length to a Python unicode object. If the array is <tt class="docutils literal"><span class="pre">NULL</span></tt> then the length is ignored and the result is <tt class="docutils literal"><span class="pre">Py_None</span></tt>.</dd> <dt><tt class="docutils literal"><span class="pre">N</span></tt> (wrapped instance) [<em>type</em> *, <tt class="xref docutils literal"><span class="pre">sipTypeDef</span></tt> *, PyObject *]</dt> @@ -1428,7 +1428,7 @@ to be passed.</p> <dd>Convert a Python string-like object of length 1 to a C/C++ <tt class="docutils literal"><span class="pre">char</span></tt> according to the encoding <tt class="docutils literal"><span class="pre">e</span></tt>. <tt class="docutils literal"><span class="pre">e</span></tt> can either be <tt class="docutils literal"><span class="pre">A</span></tt> for ASCII, <tt class="docutils literal"><span class="pre">L</span></tt> for Latin-1, or <tt class="docutils literal"><span class="pre">8</span></tt> for UTF-8. For Python v2 the object may be -either a string or a tqunicode object that can be encoded. For Python v3 +either a string or a unicode object that can be encoded. For Python v3 the object may either be a bytes object or a string object that can be encoded. An object that supports the buffer protocol may also be used.</dd> <dt><tt class="docutils literal"><span class="pre">b</span></tt> (integer) [bool *]</dt> @@ -1472,11 +1472,11 @@ then the string is <tt class="docutils literal"><span class="pre">NULL</span></t <dd>Convert a Python long to a C/C++ <tt class="docutils literal"><span class="pre">unsigned</span> <span class="pre">short</span></tt>.</dd> <dt><tt class="docutils literal"><span class="pre">u</span></tt> (long) [unsigned int *]</dt> <dd>Convert a Python long to a C/C++ <tt class="docutils literal"><span class="pre">unsigned</span> <span class="pre">int</span></tt>.</dd> -<dt><tt class="docutils literal"><span class="pre">w</span></tt> (tqunicode/string) [wchar_t *]</dt> -<dd>Convert a Python v2 string or tqunicode object or a Python v3 string +<dt><tt class="docutils literal"><span class="pre">w</span></tt> (unicode/string) [wchar_t *]</dt> +<dd>Convert a Python v2 string or unicode object or a Python v3 string object of length 1 to a C/C++ wide character.</dd> -<dt><tt class="docutils literal"><span class="pre">x</span></tt> (tqunicode/string) [wchar_t **]</dt> -<dd>Convert a Python v2 string or tqunicode object or a Python v3 string +<dt><tt class="docutils literal"><span class="pre">x</span></tt> (unicode/string) [wchar_t **]</dt> +<dd>Convert a Python v2 string or unicode object or a Python v3 string object to a C/C++ <tt class="docutils literal"><span class="pre">L'\0'</span></tt> terminated wide character string. If the Python object is <tt class="docutils literal"><span class="pre">Py_None</span></tt> then the string is <tt class="docutils literal"><span class="pre">NULL</span></tt>.</dd> <dt><tt class="docutils literal"><span class="pre">Ae</span></tt> (object) [int, const char **]</dt> @@ -1487,7 +1487,7 @@ ASCII, <tt class="docutils literal"><span class="pre">L</span></tt> for Latin-1, identifies the object in the context defined by the <tt class="docutils literal"><span class="pre">S</span></tt> format character and allows an extra reference to the object to be kept to ensure that the string remains valid. For Python v2 the object may be -either a string or a tqunicode object that can be encoded. For Python v3 +either a string or a unicode object that can be encoded. For Python v3 the object may either be a bytes object or a string object that can be encoded. An object that supports the buffer protocol may also be used.</dd> <dt><tt class="docutils literal"><span class="pre">B</span></tt> (string/bytes) [int, const char **]</dt> @@ -1548,8 +1548,8 @@ not passed if this flag is specified.</dd> </dd> <dt><tt class="docutils literal"><span class="pre">F</span></tt> (wrapped enum) [<tt class="xref docutils literal"><span class="pre">sipTypeDef</span></tt> *, enum *]</dt> <dd>Convert a Python named enum type to the corresponding C/C++ <tt class="docutils literal"><span class="pre">enum</span></tt>.</dd> -<dt><tt class="docutils literal"><span class="pre">G</span></tt> (tqunicode/string) [wchar_t **, <a title="SIP_SSIZE_T" class="reference internal" href="#SIP_SSIZE_T"><tt class="xref docutils literal"><span class="pre">SIP_SSIZE_T</span></tt></a> *]</dt> -<dd>Convert a Python v2 string or tqunicode object or a Python v3 string +<dt><tt class="docutils literal"><span class="pre">G</span></tt> (unicode/string) [wchar_t **, <a title="SIP_SSIZE_T" class="reference internal" href="#SIP_SSIZE_T"><tt class="xref docutils literal"><span class="pre">SIP_SSIZE_T</span></tt></a> *]</dt> +<dd>Convert a Python v2 string or unicode object or a Python v3 string object to a C/C++ wide character array and its length. If the Python object is <tt class="docutils literal"><span class="pre">Py_None</span></tt> then the array and length are <tt class="docutils literal"><span class="pre">NULL</span></tt> and zero respectively.</dd> |