@@ -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
@@ -2195,7 +2195,7 @@ Changes to Python's build process and to the C API include:
2195
2195
* :c:macro: `PyUnicode_DATA `, :c:macro: `PyUnicode_1BYTE_DATA `,
2196
2196
:c:macro: `PyUnicode_2BYTE_DATA `, :c:macro: `PyUnicode_4BYTE_DATA `
2197
2197
* :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 `,
2199
2199
:c:data: `PyUnicode_2BYTE_KIND `, :c:data: `PyUnicode_4BYTE_KIND `
2200
2200
* :c:macro: `PyUnicode_READ `, :c:macro: `PyUnicode_READ_CHAR `, :c:macro: `PyUnicode_WRITE `
2201
2201
* :c:macro: `PyUnicode_MAX_CHAR_VALUE `
@@ -2269,58 +2269,58 @@ removed in Python 4. All functions using this type are deprecated:
2269
2269
Unicode functions and methods using :c:type: `Py_UNICODE ` and
2270
2270
:c:expr: `Py_UNICODE* ` types:
2271
2271
2272
- * :c:macro: `PyUnicode_FromUnicode `: use :c:func: `PyUnicode_FromWideChar ` or
2272
+ * :c:macro: `! PyUnicode_FromUnicode `: use :c:func: `PyUnicode_FromWideChar ` or
2273
2273
: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
2277
2277
: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
2279
2279
: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
2281
2281
``PyUnicode_GET_LENGTH(str) * PyUnicode_KIND(str) `` (only work on ready
2282
2282
strings)
2283
- * :c:func: `PyUnicode_AsUnicodeCopy `: use :c:func: `PyUnicode_AsUCS4Copy ` or
2283
+ * :c:func: `! PyUnicode_AsUnicodeCopy `: use :c:func: `PyUnicode_AsUCS4Copy ` or
2284
2284
:c:func: `PyUnicode_AsWideCharString `
2285
- * :c:func: `PyUnicode_GetMax `
2285
+ * :c:func: `! PyUnicode_GetMax `
2286
2286
2287
2287
2288
2288
Functions and macros manipulating Py_UNICODE* strings:
2289
2289
2290
- * :c:macro: `Py_UNICODE_strlen `: use :c:func: `PyUnicode_GetLength ` or
2290
+ * :c:macro: `! Py_UNICODE_strlen() `: use :c:func: `PyUnicode_GetLength ` or
2291
2291
: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
2293
2293
: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
2296
2296
: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
2300
2300
: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 `
2303
2303
2304
2304
Encoders:
2305
2305
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
2309
2309
: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
2313
2313
:c:func: `PyUnicode_AsUnicodeEscapeString `
2314
- * :c:func: `PyUnicode_EncodeRawUnicodeEscape ` use
2314
+ * :c:func: `! PyUnicode_EncodeRawUnicodeEscape ` use
2315
2315
: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
2321
2321
: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 `
2324
2324
2325
2325
2326
2326
Deprecated features
0 commit comments