@@ -249,7 +249,7 @@ Changes introduced by :pep:`393` are the following:
249249 non-BMP code points.
250250
251251* The value of :data: `sys.maxunicode ` is now always ``1114111 `` (``0x10FFFF ``
252- in hexadecimal). The :c:func: `PyUnicode_GetMax ` function still returns
252+ in hexadecimal). The :c:func: `! PyUnicode_GetMax ` function still returns
253253 either ``0xFFFF `` or ``0x10FFFF `` for backward compatibility, and it should
254254 not be used with the new Unicode API (see :issue: `13054 `).
255255
@@ -2195,7 +2195,7 @@ Changes to Python's build process and to the C API include:
21952195 * :c:macro: `PyUnicode_DATA `, :c:macro: `PyUnicode_1BYTE_DATA `,
21962196 :c:macro: `PyUnicode_2BYTE_DATA `, :c:macro: `PyUnicode_4BYTE_DATA `
21972197 * :c:macro: `PyUnicode_KIND ` with :c:enum: `PyUnicode_Kind ` enum:
2198- :c:data: `PyUnicode_WCHAR_KIND `, :c:data: `PyUnicode_1BYTE_KIND `,
2198+ :c:data: `! PyUnicode_WCHAR_KIND `, :c:data: `PyUnicode_1BYTE_KIND `,
21992199 :c:data: `PyUnicode_2BYTE_KIND `, :c:data: `PyUnicode_4BYTE_KIND `
22002200 * :c:macro: `PyUnicode_READ `, :c:macro: `PyUnicode_READ_CHAR `, :c:macro: `PyUnicode_WRITE `
22012201 * :c:macro: `PyUnicode_MAX_CHAR_VALUE `
@@ -2269,58 +2269,58 @@ removed in Python 4. All functions using this type are deprecated:
22692269Unicode functions and methods using :c:type: `Py_UNICODE ` and
22702270:c:expr: `Py_UNICODE* ` types:
22712271
2272- * :c:macro: `PyUnicode_FromUnicode `: use :c:func: `PyUnicode_FromWideChar ` or
2272+ * :c:macro: `! PyUnicode_FromUnicode `: use :c:func: `PyUnicode_FromWideChar ` or
22732273 :c:func: `PyUnicode_FromKindAndData `
2274- * :c:macro: `PyUnicode_AS_UNICODE `, :c:func: `PyUnicode_AsUnicode `,
2275- :c:func: `PyUnicode_AsUnicodeAndSize `: use :c:func: `PyUnicode_AsWideCharString `
2276- * :c:macro: `PyUnicode_AS_DATA `: use :c:macro: `PyUnicode_DATA ` with
2274+ * :c:macro: `! PyUnicode_AS_UNICODE `, :c:func: `! PyUnicode_AsUnicode `,
2275+ :c:func: `! PyUnicode_AsUnicodeAndSize `: use :c:func: `PyUnicode_AsWideCharString `
2276+ * :c:macro: `! PyUnicode_AS_DATA `: use :c:macro: `PyUnicode_DATA ` with
22772277 :c:macro: `PyUnicode_READ ` and :c:macro: `PyUnicode_WRITE `
2278- * :c:macro: `PyUnicode_GET_SIZE `, :c:func: `PyUnicode_GetSize `: use
2278+ * :c:macro: `! PyUnicode_GET_SIZE `, :c:func: `! PyUnicode_GetSize `: use
22792279 :c:macro: `PyUnicode_GET_LENGTH ` or :c:func: `PyUnicode_GetLength `
2280- * :c:macro: `PyUnicode_GET_DATA_SIZE `: use
2280+ * :c:macro: `! PyUnicode_GET_DATA_SIZE `: use
22812281 ``PyUnicode_GET_LENGTH(str) * PyUnicode_KIND(str) `` (only work on ready
22822282 strings)
2283- * :c:func: `PyUnicode_AsUnicodeCopy `: use :c:func: `PyUnicode_AsUCS4Copy ` or
2283+ * :c:func: `! PyUnicode_AsUnicodeCopy `: use :c:func: `PyUnicode_AsUCS4Copy ` or
22842284 :c:func: `PyUnicode_AsWideCharString `
2285- * :c:func: `PyUnicode_GetMax `
2285+ * :c:func: `! PyUnicode_GetMax `
22862286
22872287
22882288Functions and macros manipulating Py_UNICODE* strings:
22892289
2290- * :c:macro: `Py_UNICODE_strlen `: use :c:func: `PyUnicode_GetLength ` or
2290+ * :c:macro: `! Py_UNICODE_strlen() `: use :c:func: `PyUnicode_GetLength ` or
22912291 :c:macro: `PyUnicode_GET_LENGTH `
2292- * :c:macro: `Py_UNICODE_strcat `: use :c:func: `PyUnicode_CopyCharacters ` or
2292+ * :c:macro: `! Py_UNICODE_strcat() `: use :c:func: `PyUnicode_CopyCharacters ` or
22932293 :c:func: `PyUnicode_FromFormat `
2294- * :c:macro: `Py_UNICODE_strcpy `, :c:macro: `Py_UNICODE_strncpy `,
2295- :c:macro: `Py_UNICODE_COPY `: use :c:func: `PyUnicode_CopyCharacters ` or
2294+ * :c:macro: `! Py_UNICODE_strcpy() `, :c:macro: `! Py_UNICODE_strncpy() `,
2295+ :c:macro: `! Py_UNICODE_COPY() `: use :c:func: `PyUnicode_CopyCharacters ` or
22962296 :c:func: `PyUnicode_Substring `
2297- * :c:macro: `Py_UNICODE_strcmp `: use :c:func: `PyUnicode_Compare `
2298- * :c:macro: `Py_UNICODE_strncmp `: use :c:func: `PyUnicode_Tailmatch `
2299- * :c:macro: `Py_UNICODE_strchr `, :c:macro: `Py_UNICODE_strrchr `: use
2297+ * :c:macro: `! Py_UNICODE_strcmp() `: use :c:func: `PyUnicode_Compare `
2298+ * :c:macro: `! Py_UNICODE_strncmp() `: use :c:func: `PyUnicode_Tailmatch `
2299+ * :c:macro: `! Py_UNICODE_strchr() `, :c:macro: `! Py_UNICODE_strrchr() `: use
23002300 :c:func: `PyUnicode_FindChar `
2301- * :c:macro: `Py_UNICODE_FILL `: use :c:func: `PyUnicode_Fill `
2302- * :c:macro: `Py_UNICODE_MATCH `
2301+ * :c:macro: `! Py_UNICODE_FILL() `: use :c:func: `PyUnicode_Fill `
2302+ * :c:macro: `! Py_UNICODE_MATCH `
23032303
23042304Encoders:
23052305
2306- * :c:func: `PyUnicode_Encode `: use :c:func: `PyUnicode_AsEncodedObject `
2307- * :c:func: `PyUnicode_EncodeUTF7 `
2308- * :c:func: `PyUnicode_EncodeUTF8 `: use :c:func: `PyUnicode_AsUTF8 ` or
2306+ * :c:func: `! PyUnicode_Encode `: use :c:func: `PyUnicode_AsEncodedObject `
2307+ * :c:func: `! PyUnicode_EncodeUTF7 `
2308+ * :c:func: `! PyUnicode_EncodeUTF8 `: use :c:func: `PyUnicode_AsUTF8 ` or
23092309 :c:func: `PyUnicode_AsUTF8String `
2310- * :c:func: `PyUnicode_EncodeUTF32 `
2311- * :c:func: `PyUnicode_EncodeUTF16 `
2312- * :c:func: `PyUnicode_EncodeUnicodeEscape ` use
2310+ * :c:func: `! PyUnicode_EncodeUTF32 `
2311+ * :c:func: `! PyUnicode_EncodeUTF16 `
2312+ * :c:func: `! PyUnicode_EncodeUnicodeEscape ` use
23132313 :c:func: `PyUnicode_AsUnicodeEscapeString `
2314- * :c:func: `PyUnicode_EncodeRawUnicodeEscape ` use
2314+ * :c:func: `! PyUnicode_EncodeRawUnicodeEscape ` use
23152315 :c:func: `PyUnicode_AsRawUnicodeEscapeString `
2316- * :c:func: `PyUnicode_EncodeLatin1 `: use :c:func: `PyUnicode_AsLatin1String `
2317- * :c:func: `PyUnicode_EncodeASCII `: use :c:func: `PyUnicode_AsASCIIString `
2318- * :c:func: `PyUnicode_EncodeCharmap `
2319- * :c:func: `PyUnicode_TranslateCharmap `
2320- * :c:func: `PyUnicode_EncodeMBCS `: use :c:func: `PyUnicode_AsMBCSString ` or
2316+ * :c:func: `! PyUnicode_EncodeLatin1 `: use :c:func: `PyUnicode_AsLatin1String `
2317+ * :c:func: `! PyUnicode_EncodeASCII `: use :c:func: `PyUnicode_AsASCIIString `
2318+ * :c:func: `! PyUnicode_EncodeCharmap `
2319+ * :c:func: `! PyUnicode_TranslateCharmap `
2320+ * :c:func: `! PyUnicode_EncodeMBCS `: use :c:func: `PyUnicode_AsMBCSString ` or
23212321 :c:func: `PyUnicode_EncodeCodePage ` (with ``CP_ACP `` code_page)
2322- * :c:func: `PyUnicode_EncodeDecimal `,
2323- :c:func: `PyUnicode_TransformDecimalToASCII `
2322+ * :c:func: `! PyUnicode_EncodeDecimal `,
2323+ :c:func: `! PyUnicode_TransformDecimalToASCII `
23242324
23252325
23262326Deprecated features
0 commit comments