Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-89653: PEP 670: Fix Sphinx syntax in Unicode doc #92707

Merged
merged 1 commit into from
May 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/c-api/unicode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -377,19 +377,19 @@ These APIs can be used for fast direct character conversions:

These APIs can be used to work with surrogates:

.. c:func:: int Py_UNICODE_IS_SURROGATE(Py_UCS4 ch)
.. c:function:: int Py_UNICODE_IS_SURROGATE(Py_UCS4 ch)

Check if *ch* is a surrogate (``0xD800 <= ch <= 0xDFFF``).

.. c:func:: int Py_UNICODE_IS_HIGH_SURROGATE(Py_UCS4 ch)
.. c:function:: int Py_UNICODE_IS_HIGH_SURROGATE(Py_UCS4 ch)

Check if *ch* is a high surrogate (``0xD800 <= ch <= 0xDBFF``).

.. c:func:: int Py_UNICODE_IS_LOW_SURROGATE(Py_UCS4 ch)
.. c:function:: int Py_UNICODE_IS_LOW_SURROGATE(Py_UCS4 ch)

Check if *ch* is a low surrogate (``0xDC00 <= ch <= 0xDFFF``).

.. c:func:: Py_UCS4 Py_UNICODE_JOIN_SURROGATES(Py_UCS4 high, Py_UCS4 low)
.. c:function:: Py_UCS4 Py_UNICODE_JOIN_SURROGATES(Py_UCS4 high, Py_UCS4 low)

Join two surrogate characters and return a single :c:type:`Py_UCS4` value.
*high* and *low* are respectively the leading and trailing surrogates in a
Expand Down