Skip to content

Commit a934404

Browse files
Yashp002encukou
andauthored
unicode fix 4
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent c0429a1 commit a934404

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

Doc/c-api/unicode.rst

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,27 @@ Python:
6565
.. versionadded:: 3.3
6666

6767

68-
.. c:macro:: PyUnicode_IS_COMPACT(o)
68+
The structure of a particular object can be determined using the following
69+
macros.
70+
The macros cannot fail; their behavior is undefined if their argument
71+
is not a Python Unicode object.
6972

70-
Return true if the Unicode object *o* is a compact string.
71-
Compact strings use the :c:struct:`PyCompactUnicodeObject` structure.
73+
.. c:namespace:: NULL
7274
73-
.. versionadded:: 3.3
75+
.. c:macro:: PyUnicode_IS_COMPACT(o)
7476
77+
True if *o* uses the :c:struct:`PyCompactUnicodeObject` structure.
7578

76-
.. c:macro:: PyUnicode_IS_COMPACT_ASCII(o)
79+
.. versionadded:: 3.3
7780

78-
Return true if the Unicode object *o* is a compact ASCII string.
79-
Compact ASCII strings use the :c:struct:`PyASCIIObject` structure.
8081

81-
.. versionadded:: 3.3
82+
.. c:macro:: PyUnicode_IS_COMPACT_ASCII(o)
83+
84+
True if *o* uses the :c:struct:`PyASCIIObject` structure.
8285

86+
.. versionadded:: 3.3
8387

88+
8489
The following APIs are C macros and static inlined functions for fast checks and
8590
access to internal read-only data of Unicode objects:
8691

0 commit comments

Comments
 (0)