File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -316,12 +316,22 @@ These APIs can be used to work with surrogates:
316316
317317 Check if *ch* is a low surrogate (``0xDC00 <= ch <= 0xDFFF ``).
318318
319+ .. c:function:: Py_UCS4 Py_UNICODE_HIGH_SURROGATE(Py_UCS4 ch)
320+
321+ Return the high UTF-16 surrogate (``0xD800 `` to ``0xDBFF ``) for a Unicode
322+ code point in the range ``[0x10000; 0x10FFFF ]``.
323+
324+ .. c :function :: Py_UCS4 Py_UNICODE_LOW_SURROGATE (Py_UCS4 ch)
325+
326+ Return the low UTF-16 surrogate (``0xDC00 `` to ``0xDFFF ``) for a Unicode
327+ code point in the range ``[0x10000; 0x10FFFF ]``.
328+
319329 .. c :function :: Py_UCS4 Py_UNICODE_JOIN_SURROGATES (Py_UCS4 high, Py_UCS4 low)
320330
321331 Join two surrogate code points and return a single :c:type:`Py_UCS4` value.
322332 *high* and *low* are respectively the leading and trailing surrogates in a
323- surrogate pair. *high* must be in the range [0xD800; 0xDBFF ] and *low* must
324- be in the range [0xDC00; 0xDFFF].
333+ surrogate pair. *high* must be in the range `` [0xD800; 0xDBFF ]`` and *low* must
334+ be in the range `` [0xDC00; 0xDFFF] `` .
325335
326336
327337Creating and accessing Unicode strings
You can’t perform that action at this time.
0 commit comments