@@ -223,6 +223,14 @@ the Python configuration.
223
223
224
224
Return ``1`` or ``0`` depending on whether *ch* is a titlecase character.
225
225
226
+ .. c:function:: int Py_UNICODE_ISCASED(Py_UCS4 ch)
227
+
228
+ Return ``1`` or ``0`` depending on whether *ch* is a cased character.
229
+
230
+ .. c:function:: int Py_UNICODE_ISCASEIGNORABLE(Py_UCS4 ch)
231
+
232
+ Return ``1`` or ``0`` depending on whether *ch* is a case-ignorable character.
233
+
226
234
227
235
.. c:function:: int Py_UNICODE_ISLINEBREAK(Py_UCS4 ch)
228
236
@@ -322,6 +330,26 @@ These APIs can be used to work with surrogates:
322
330
surrogate pair. *high* must be in the range [0xD800; 0xDBFF ] and *low* must
323
331
be in the range [0xDC00; 0xDFFF].
324
332
333
+ .. c :function :: Py_ssize_t PyUnicode_ToLower (Py_UCS4 ch, Py_UCS4 *buffer, \
334
+ Py_ssize_t size)
335
+
336
+ Convert *ch * to lower case, store result in *buffer *, which should be
337
+ able to hold *size * characters, and return the number of characters stored.
338
+ If the buffer is not big enough, return -1.
339
+
340
+ .. c :function :: Py_ssize_t PyUnicode_ToUpper (Py_UCS4 ch, Py_UCS4 *buffer, \
341
+ Py_ssize_t size)
342
+
343
+ Convert *ch * to upper case, store result in *buffer *, which should be
344
+ able to hold *size * characters, and return the number of characters stored.
345
+ If the buffer is not big enough, return -1.
346
+
347
+ .. c :function :: Py_ssize_t PyUnicode_ToTitle (Py_UCS4 ch, Py_UCS4 *buffer, \
348
+ Py_ssize_t size)
349
+
350
+ Convert *ch * to title case, store result in *buffer *, which should be
351
+ able to hold *size * characters, and return the number of characters stored.
352
+ If the buffer is not big enough, return -1.
325
353
326
354
Creating and accessing Unicode strings
327
355
""""""""""""""""""""""""""""""""""""""
0 commit comments