@@ -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
@@ -2196,7 +2196,7 @@ Changes to Python's build process and to the C API include:
21962196 * :c:macro: `PyUnicode_DATA `, :c:macro: `PyUnicode_1BYTE_DATA `,
21972197 :c:macro: `PyUnicode_2BYTE_DATA `, :c:macro: `PyUnicode_4BYTE_DATA `
21982198 * :c:macro: `PyUnicode_KIND ` with :c:enum: `PyUnicode_Kind ` enum:
2199- :c:data: `PyUnicode_WCHAR_KIND `, :c:data: `PyUnicode_1BYTE_KIND `,
2199+ :c:data: `! PyUnicode_WCHAR_KIND `, :c:data: `PyUnicode_1BYTE_KIND `,
22002200 :c:data: `PyUnicode_2BYTE_KIND `, :c:data: `PyUnicode_4BYTE_KIND `
22012201 * :c:macro: `PyUnicode_READ `, :c:macro: `PyUnicode_READ_CHAR `, :c:macro: `PyUnicode_WRITE `
22022202 * :c:macro: `PyUnicode_MAX_CHAR_VALUE `
@@ -2270,58 +2270,58 @@ removed in Python 4. All functions using this type are deprecated:
22702270Unicode functions and methods using :c:type: `Py_UNICODE ` and
22712271:c:expr: `Py_UNICODE* ` types:
22722272
2273- * :c:macro: `PyUnicode_FromUnicode `: use :c:func: `PyUnicode_FromWideChar ` or
2273+ * :c:macro: `! PyUnicode_FromUnicode `: use :c:func: `PyUnicode_FromWideChar ` or
22742274 :c:func: `PyUnicode_FromKindAndData `
2275- * :c:macro: `PyUnicode_AS_UNICODE `, :c:func: `PyUnicode_AsUnicode `,
2276- :c:func: `PyUnicode_AsUnicodeAndSize `: use :c:func: `PyUnicode_AsWideCharString `
2277- * :c:macro: `PyUnicode_AS_DATA `: use :c:macro: `PyUnicode_DATA ` with
2275+ * :c:macro: `! PyUnicode_AS_UNICODE `, :c:func: `! PyUnicode_AsUnicode `,
2276+ :c:func: `! PyUnicode_AsUnicodeAndSize `: use :c:func: `PyUnicode_AsWideCharString `
2277+ * :c:macro: `! PyUnicode_AS_DATA `: use :c:macro: `PyUnicode_DATA ` with
22782278 :c:macro: `PyUnicode_READ ` and :c:macro: `PyUnicode_WRITE `
2279- * :c:macro: `PyUnicode_GET_SIZE `, :c:func: `PyUnicode_GetSize `: use
2279+ * :c:macro: `! PyUnicode_GET_SIZE `, :c:func: `! PyUnicode_GetSize `: use
22802280 :c:macro: `PyUnicode_GET_LENGTH ` or :c:func: `PyUnicode_GetLength `
2281- * :c:macro: `PyUnicode_GET_DATA_SIZE `: use
2281+ * :c:macro: `! PyUnicode_GET_DATA_SIZE `: use
22822282 ``PyUnicode_GET_LENGTH(str) * PyUnicode_KIND(str) `` (only work on ready
22832283 strings)
2284- * :c:func: `PyUnicode_AsUnicodeCopy `: use :c:func: `PyUnicode_AsUCS4Copy ` or
2284+ * :c:func: `! PyUnicode_AsUnicodeCopy `: use :c:func: `PyUnicode_AsUCS4Copy ` or
22852285 :c:func: `PyUnicode_AsWideCharString `
2286- * :c:func: `PyUnicode_GetMax `
2286+ * :c:func: `! PyUnicode_GetMax `
22872287
22882288
22892289Functions and macros manipulating Py_UNICODE* strings:
22902290
2291- * :c:macro: `Py_UNICODE_strlen `: use :c:func: `PyUnicode_GetLength ` or
2291+ * :c:macro: `! Py_UNICODE_strlen() `: use :c:func: `PyUnicode_GetLength ` or
22922292 :c:macro: `PyUnicode_GET_LENGTH `
2293- * :c:macro: `Py_UNICODE_strcat `: use :c:func: `PyUnicode_CopyCharacters ` or
2293+ * :c:macro: `! Py_UNICODE_strcat() `: use :c:func: `PyUnicode_CopyCharacters ` or
22942294 :c:func: `PyUnicode_FromFormat `
2295- * :c:macro: `Py_UNICODE_strcpy `, :c:macro: `Py_UNICODE_strncpy `,
2296- :c:macro: `Py_UNICODE_COPY `: use :c:func: `PyUnicode_CopyCharacters ` or
2295+ * :c:macro: `! Py_UNICODE_strcpy() `, :c:macro: `! Py_UNICODE_strncpy() `,
2296+ :c:macro: `! Py_UNICODE_COPY() `: use :c:func: `PyUnicode_CopyCharacters ` or
22972297 :c:func: `PyUnicode_Substring `
2298- * :c:macro: `Py_UNICODE_strcmp `: use :c:func: `PyUnicode_Compare `
2299- * :c:macro: `Py_UNICODE_strncmp `: use :c:func: `PyUnicode_Tailmatch `
2300- * :c:macro: `Py_UNICODE_strchr `, :c:macro: `Py_UNICODE_strrchr `: use
2298+ * :c:macro: `! Py_UNICODE_strcmp() `: use :c:func: `PyUnicode_Compare `
2299+ * :c:macro: `! Py_UNICODE_strncmp() `: use :c:func: `PyUnicode_Tailmatch `
2300+ * :c:macro: `! Py_UNICODE_strchr() `, :c:macro: `! Py_UNICODE_strrchr() `: use
23012301 :c:func: `PyUnicode_FindChar `
2302- * :c:macro: `Py_UNICODE_FILL `: use :c:func: `PyUnicode_Fill `
2303- * :c:macro: `Py_UNICODE_MATCH `
2302+ * :c:macro: `! Py_UNICODE_FILL() `: use :c:func: `PyUnicode_Fill `
2303+ * :c:macro: `! Py_UNICODE_MATCH `
23042304
23052305Encoders:
23062306
2307- * :c:func: `PyUnicode_Encode `: use :c:func: `PyUnicode_AsEncodedObject `
2308- * :c:func: `PyUnicode_EncodeUTF7 `
2309- * :c:func: `PyUnicode_EncodeUTF8 `: use :c:func: `PyUnicode_AsUTF8 ` or
2307+ * :c:func: `! PyUnicode_Encode `: use :c:func: `PyUnicode_AsEncodedObject `
2308+ * :c:func: `! PyUnicode_EncodeUTF7 `
2309+ * :c:func: `! PyUnicode_EncodeUTF8 `: use :c:func: `PyUnicode_AsUTF8 ` or
23102310 :c:func: `PyUnicode_AsUTF8String `
2311- * :c:func: `PyUnicode_EncodeUTF32 `
2312- * :c:func: `PyUnicode_EncodeUTF16 `
2313- * :c:func: `PyUnicode_EncodeUnicodeEscape ` use
2311+ * :c:func: `! PyUnicode_EncodeUTF32 `
2312+ * :c:func: `! PyUnicode_EncodeUTF16 `
2313+ * :c:func: `! PyUnicode_EncodeUnicodeEscape ` use
23142314 :c:func: `PyUnicode_AsUnicodeEscapeString `
2315- * :c:func: `PyUnicode_EncodeRawUnicodeEscape ` use
2315+ * :c:func: `! PyUnicode_EncodeRawUnicodeEscape ` use
23162316 :c:func: `PyUnicode_AsRawUnicodeEscapeString `
2317- * :c:func: `PyUnicode_EncodeLatin1 `: use :c:func: `PyUnicode_AsLatin1String `
2318- * :c:func: `PyUnicode_EncodeASCII `: use :c:func: `PyUnicode_AsASCIIString `
2319- * :c:func: `PyUnicode_EncodeCharmap `
2320- * :c:func: `PyUnicode_TranslateCharmap `
2321- * :c:func: `PyUnicode_EncodeMBCS `: use :c:func: `PyUnicode_AsMBCSString ` or
2317+ * :c:func: `! PyUnicode_EncodeLatin1 `: use :c:func: `PyUnicode_AsLatin1String `
2318+ * :c:func: `! PyUnicode_EncodeASCII `: use :c:func: `PyUnicode_AsASCIIString `
2319+ * :c:func: `! PyUnicode_EncodeCharmap `
2320+ * :c:func: `! PyUnicode_TranslateCharmap `
2321+ * :c:func: `! PyUnicode_EncodeMBCS `: use :c:func: `PyUnicode_AsMBCSString ` or
23222322 :c:func: `PyUnicode_EncodeCodePage ` (with ``CP_ACP `` code_page)
2323- * :c:func: `PyUnicode_EncodeDecimal `,
2324- :c:func: `PyUnicode_TransformDecimalToASCII `
2323+ * :c:func: `! PyUnicode_EncodeDecimal `,
2324+ :c:func: `! PyUnicode_TransformDecimalToASCII `
23252325
23262326
23272327Deprecated features
0 commit comments