• Home
  • Raw
  • Download

Lines Matching full:ascii

1 :mod:`curses.ascii` --- Utilities for ASCII characters
4 .. module:: curses.ascii
5 :synopsis: Constants and set-membership functions for ASCII characters.
10 **Source code:** :source:`Lib/curses/ascii.py`
14 The :mod:`curses.ascii` module supplies name constants for ASCII characters and
15 functions to test membership in various ASCII character classes. The constants
103 Checks for an ASCII alphanumeric character; it is equivalent to ``isalpha(c) or
109 Checks for an ASCII alphabetic character; it is equivalent to ``isupper(c) or
115 Checks for a character value that fits in the 7-bit ASCII set.
120 Checks for an ASCII whitespace character; space or horizontal tab.
125 Checks for an ASCII control character (in the range 0x00 to 0x1f or 0x7f).
130 Checks for an ASCII decimal digit, ``'0'`` through ``'9'``. This is equivalent
136 Checks for ASCII any printable character except space.
141 Checks for an ASCII lower-case character.
146 Checks for any ASCII printable character including space.
151 Checks for any printable ASCII character which is not a space or an alphanumeric
157 Checks for ASCII white-space characters; space, line feed, carriage return, form
163 Checks for an ASCII uppercase letter.
168 Checks for an ASCII hexadecimal digit. This is equivalent to ``c in
174 Checks for an ASCII control character (ordinal values 0 to 31).
179 Checks for a non-ASCII character (ordinal values 0x80 and above).
192 .. function:: ascii(c)
194 Return the ASCII value corresponding to the low 7 bits of *c*.
205 Return the 8-bit character corresponding to the given ASCII character (the
218 Return a string representation of the ASCII character *c*. If *c* is printable,
221 corresponding uppercase letter. If the character is an ASCII delete (0x7f) the
228 A 33-element string array that contains the ASCII mnemonics for the thirty-two
229 ASCII control characters from 0 (NUL) to 0x1f (US), in order, plus the mnemonic