@@ -268,57 +268,57 @@ are available through these macros which are mapped to C functions depending on
268
268
the Python configuration.
269
269
270
270
271
- .. c :function :: int Py_UNICODE_ISSPACE (Py_UNICODE ch)
271
+ .. c :function :: int Py_UNICODE_ISSPACE (Py_UCS4 ch)
272
272
273
273
Return ``1`` or ``0`` depending on whether *ch* is a whitespace character.
274
274
275
275
276
- .. c:function:: int Py_UNICODE_ISLOWER(Py_UNICODE ch)
276
+ .. c:function:: int Py_UNICODE_ISLOWER(Py_UCS4 ch)
277
277
278
278
Return ``1`` or ``0`` depending on whether *ch* is a lowercase character.
279
279
280
280
281
- .. c:function:: int Py_UNICODE_ISUPPER(Py_UNICODE ch)
281
+ .. c:function:: int Py_UNICODE_ISUPPER(Py_UCS4 ch)
282
282
283
283
Return ``1`` or ``0`` depending on whether *ch* is an uppercase character.
284
284
285
285
286
- .. c:function:: int Py_UNICODE_ISTITLE(Py_UNICODE ch)
286
+ .. c:function:: int Py_UNICODE_ISTITLE(Py_UCS4 ch)
287
287
288
288
Return ``1`` or ``0`` depending on whether *ch* is a titlecase character.
289
289
290
290
291
- .. c:function:: int Py_UNICODE_ISLINEBREAK(Py_UNICODE ch)
291
+ .. c:function:: int Py_UNICODE_ISLINEBREAK(Py_UCS4 ch)
292
292
293
293
Return ``1`` or ``0`` depending on whether *ch* is a linebreak character.
294
294
295
295
296
- .. c:function:: int Py_UNICODE_ISDECIMAL(Py_UNICODE ch)
296
+ .. c:function:: int Py_UNICODE_ISDECIMAL(Py_UCS4 ch)
297
297
298
298
Return ``1`` or ``0`` depending on whether *ch* is a decimal character.
299
299
300
300
301
- .. c:function:: int Py_UNICODE_ISDIGIT(Py_UNICODE ch)
301
+ .. c:function:: int Py_UNICODE_ISDIGIT(Py_UCS4 ch)
302
302
303
303
Return ``1`` or ``0`` depending on whether *ch* is a digit character.
304
304
305
305
306
- .. c:function:: int Py_UNICODE_ISNUMERIC(Py_UNICODE ch)
306
+ .. c:function:: int Py_UNICODE_ISNUMERIC(Py_UCS4 ch)
307
307
308
308
Return ``1`` or ``0`` depending on whether *ch* is a numeric character.
309
309
310
310
311
- .. c:function:: int Py_UNICODE_ISALPHA(Py_UNICODE ch)
311
+ .. c:function:: int Py_UNICODE_ISALPHA(Py_UCS4 ch)
312
312
313
313
Return ``1`` or ``0`` depending on whether *ch* is an alphabetic character.
314
314
315
315
316
- .. c:function:: int Py_UNICODE_ISALNUM(Py_UNICODE ch)
316
+ .. c:function:: int Py_UNICODE_ISALNUM(Py_UCS4 ch)
317
317
318
318
Return ``1`` or ``0`` depending on whether *ch* is an alphanumeric character.
319
319
320
320
321
- .. c:function:: int Py_UNICODE_ISPRINTABLE(Py_UNICODE ch)
321
+ .. c:function:: int Py_UNICODE_ISPRINTABLE(Py_UCS4 ch)
322
322
323
323
Return ``1`` or ``0`` depending on whether *ch* is a printable character.
324
324
Nonprintable characters are those characters defined in the Unicode character
@@ -332,43 +332,43 @@ the Python configuration.
332
332
These APIs can be used for fast direct character conversions:
333
333
334
334
335
- .. c:function:: Py_UNICODE Py_UNICODE_TOLOWER(Py_UNICODE ch)
335
+ .. c:function:: Py_UCS4 Py_UNICODE_TOLOWER(Py_UCS4 ch)
336
336
337
337
Return the character *ch* converted to lower case.
338
338
339
339
.. deprecated:: 3.3
340
340
This function uses simple case mappings.
341
341
342
342
343
- .. c:function:: Py_UNICODE Py_UNICODE_TOUPPER(Py_UNICODE ch)
343
+ .. c:function:: Py_UCS4 Py_UNICODE_TOUPPER(Py_UCS4 ch)
344
344
345
345
Return the character *ch* converted to upper case.
346
346
347
347
.. deprecated:: 3.3
348
348
This function uses simple case mappings.
349
349
350
350
351
- .. c:function:: Py_UNICODE Py_UNICODE_TOTITLE(Py_UNICODE ch)
351
+ .. c:function:: Py_UCS4 Py_UNICODE_TOTITLE(Py_UCS4 ch)
352
352
353
353
Return the character *ch* converted to title case.
354
354
355
355
.. deprecated:: 3.3
356
356
This function uses simple case mappings.
357
357
358
358
359
- .. c:function:: int Py_UNICODE_TODECIMAL(Py_UNICODE ch)
359
+ .. c:function:: int Py_UNICODE_TODECIMAL(Py_UCS4 ch)
360
360
361
361
Return the character *ch* converted to a decimal positive integer. Return
362
362
``-1`` if this is not possible. This macro does not raise exceptions.
363
363
364
364
365
- .. c:function:: int Py_UNICODE_TODIGIT(Py_UNICODE ch)
365
+ .. c:function:: int Py_UNICODE_TODIGIT(Py_UCS4 ch)
366
366
367
367
Return the character *ch* converted to a single digit integer. Return ``-1`` if
368
368
this is not possible. This macro does not raise exceptions.
369
369
370
370
371
- .. c:function:: double Py_UNICODE_TONUMERIC(Py_UNICODE ch)
371
+ .. c:function:: double Py_UNICODE_TONUMERIC(Py_UCS4 ch)
372
372
373
373
Return the character *ch* converted to a double. Return ``-1.0`` if this is not
374
374
possible. This macro does not raise exceptions.
0 commit comments