mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-28 16:11:59 +00:00
Endian wording fix
This commit is contained in:
parent
aee409dc8d
commit
220a77f5cd
@ -173,9 +173,9 @@ Wide character strings
|
|||||||
When a Python ``str`` is passed to a C++ function expecting ``std::wstring``,
|
When a Python ``str`` is passed to a C++ function expecting ``std::wstring``,
|
||||||
``wchar_t*``, ``std::u16string`` or ``std::u32string``, the ``str`` will be
|
``wchar_t*``, ``std::u16string`` or ``std::u32string``, the ``str`` will be
|
||||||
encoded to UTF-16 or UTF-32 depending on how the C++ compiler implements each
|
encoded to UTF-16 or UTF-32 depending on how the C++ compiler implements each
|
||||||
type, in the platform's endian. When strings of these types are returned, they
|
type, in the platform's native endianness. When strings of these types are
|
||||||
are assumed to contain valid UTF-16 or UTF-32, and will be decoded to Python
|
returned, they are assumed to contain valid UTF-16 or UTF-32, and will be
|
||||||
``str``.
|
decoded to Python ``str``.
|
||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user