Skip to content

Commit 1f4f825

Browse files
Review
1 parent fa84b51 commit 1f4f825

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Doc/c-api/conversion.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,43 +167,53 @@ The following functions provide locale-independent string to number conversions.
167167
Character classification and conversion
168168
=======================================
169169
170-
The following macros provide locale-independent character classification and
171-
conversion. The argument must be a signed or unsigned :c:expr:`char`.
170+
The following macros provide locale-independent (unlike the C standard library
171+
``ctype.h``) character classification and conversion.
172+
The argument must be a signed or unsigned :c:expr:`char`.
173+
172174
173175
.. c:macro:: Py_ISALNUM(c)
174176
175177
Return true if the character *c* is an alphanumeric character.
176178
179+
177180
.. c:macro:: Py_ISALPHA(c)
178181
179182
Return true if the character *c* is an alphabetic character (``a-z`` and ``A-Z``).
180183
184+
181185
.. c:macro:: Py_ISDIGIT(c)
182186
183187
Return true if the character *c* is a decimal digit (``0-9``).
184188
189+
185190
.. c:macro:: Py_ISLOWER(c)
186191
187192
Return true if the character *c* is a lowercase ASCII letter (``a-z``).
188193
194+
189195
.. c:macro:: Py_ISUPPER(c)
190196
191197
Return true if the character *c* is an uppercase ASCII letter (``A-Z``).
192198
199+
193200
.. c:macro:: Py_ISSPACE(c)
194201
195202
Return true if the character *c* is a whitespace character (space, tab,
196203
carriage return, newline, vertical tab, or form feed).
197204
205+
198206
.. c:macro:: Py_ISXDIGIT(c)
199207
200208
Return true if the character *c* is a hexadecimal digit (``0-9``, ``a-f``, and
201209
``A-F``).
202210
211+
203212
.. c:macro:: Py_TOLOWER(c)
204213
205214
Return the lowercase equivalent of the character *c*.
206215
216+
207217
.. c:macro:: Py_TOUPPER(c)
208218
209219
Return the uppercase equivalent of the character *c*.

0 commit comments

Comments
 (0)