Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
220a77f5
Commit
220a77f5
authored
Jun 18, 2017
by
Jason Rhinelander
Browse files
Endian wording fix
parent
aee409dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/advanced/cast/strings.rst
docs/advanced/cast/strings.rst
+3
-3
No files found.
docs/advanced/cast/strings.rst
View file @
220a77f5
...
@@ -173,9 +173,9 @@ Wide character strings
...
@@ -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
endian
ness
. 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++
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment