Skip to content

Commit c0429a1

Browse files
committed
unicode fix 3
1 parent 6815686 commit c0429a1

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Doc/c-api/unicode.rst

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

6767

68+
.. c:macro:: PyUnicode_IS_COMPACT(o)
69+
70+
Return true if the Unicode object *o* is a compact string.
71+
Compact strings use the :c:struct:`PyCompactUnicodeObject` structure.
72+
73+
.. versionadded:: 3.3
74+
75+
76+
.. c:macro:: PyUnicode_IS_COMPACT_ASCII(o)
77+
78+
Return true if the Unicode object *o* is a compact ASCII string.
79+
Compact ASCII strings use the :c:struct:`PyASCIIObject` structure.
80+
81+
.. versionadded:: 3.3
82+
83+
6884
The following APIs are C macros and static inlined functions for fast checks and
6985
access to internal read-only data of Unicode objects:
7086

@@ -129,22 +145,6 @@ access to internal read-only data of Unicode objects:
129145
.. versionadded:: 3.3
130146
131147
132-
.. c:macro:: PyUnicode_IS_COMPACT(o)
133-
134-
Return true if the Unicode object *o* is a compact string.
135-
Compact strings use the :c:struct:`PyCompactUnicodeObject` structure.
136-
137-
.. versionadded:: 3.3
138-
139-
140-
.. c:macro:: PyUnicode_IS_COMPACT_ASCII(o)
141-
142-
Return true if the Unicode object *o* is a compact ASCII string.
143-
Compact ASCII strings use the :c:struct:`PyASCIIObject` structure.
144-
145-
.. versionadded:: 3.3
146-
147-
148148
.. c:function:: void PyUnicode_WRITE(int kind, void *data, \
149149
Py_ssize_t index, Py_UCS4 value)
150150

0 commit comments

Comments
 (0)