@@ -249,7 +249,7 @@ Changes introduced by :pep:`393` are the following:
249
249
non-BMP code points.
250
250
251
251
* 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
253
253
either ``0xFFFF `` or ``0x10FFFF `` for backward compatibility, and it should
254
254
not be used with the new Unicode API (see :issue: `13054 `).
255
255
@@ -2196,7 +2196,7 @@ Changes to Python's build process and to the C API include:
2196
2196
* :c:macro: `PyUnicode_DATA `, :c:macro: `PyUnicode_1BYTE_DATA `,
2197
2197
:c:macro: `PyUnicode_2BYTE_DATA `, :c:macro: `PyUnicode_4BYTE_DATA `
2198
2198
* :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 `,
2200
2200
:c:data: `PyUnicode_2BYTE_KIND `, :c:data: `PyUnicode_4BYTE_KIND `
2201
2201
* :c:macro: `PyUnicode_READ `, :c:macro: `PyUnicode_READ_CHAR `, :c:macro: `PyUnicode_WRITE `
2202
2202
* :c:macro: `PyUnicode_MAX_CHAR_VALUE `
@@ -2270,58 +2270,58 @@ removed in Python 4. All functions using this type are deprecated:
2270
2270
Unicode functions and methods using :c:type: `Py_UNICODE ` and
2271
2271
:c:expr: `Py_UNICODE* ` types:
2272
2272
2273
- * :c:macro: `PyUnicode_FromUnicode `: use :c:func: `PyUnicode_FromWideChar ` or
2273
+ * :c:macro: `! PyUnicode_FromUnicode `: use :c:func: `PyUnicode_FromWideChar ` or
2274
2274
: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
2278
2278
: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
2280
2280
: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
2282
2282
``PyUnicode_GET_LENGTH(str) * PyUnicode_KIND(str) `` (only work on ready
2283
2283
strings)
2284
- * :c:func: `PyUnicode_AsUnicodeCopy `: use :c:func: `PyUnicode_AsUCS4Copy ` or
2284
+ * :c:func: `! PyUnicode_AsUnicodeCopy `: use :c:func: `PyUnicode_AsUCS4Copy ` or
2285
2285
:c:func: `PyUnicode_AsWideCharString `
2286
- * :c:func: `PyUnicode_GetMax `
2286
+ * :c:func: `! PyUnicode_GetMax `
2287
2287
2288
2288
2289
2289
Functions and macros manipulating Py_UNICODE* strings:
2290
2290
2291
- * :c:macro: `Py_UNICODE_strlen `: use :c:func: `PyUnicode_GetLength ` or
2291
+ * :c:macro: `! Py_UNICODE_strlen() `: use :c:func: `PyUnicode_GetLength ` or
2292
2292
: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
2294
2294
: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
2297
2297
: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
2301
2301
: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 `
2304
2304
2305
2305
Encoders:
2306
2306
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
2310
2310
: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
2314
2314
:c:func: `PyUnicode_AsUnicodeEscapeString `
2315
- * :c:func: `PyUnicode_EncodeRawUnicodeEscape ` use
2315
+ * :c:func: `! PyUnicode_EncodeRawUnicodeEscape ` use
2316
2316
: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
2322
2322
: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 `
2325
2325
2326
2326
2327
2327
Deprecated features
0 commit comments