Lines Matching refs:ascii
1216 for name in curses.ascii.controlnames:
1217 self.assertTrue(hasattr(curses.ascii, name), name)
1228 check(curses.ascii.isalnum, b.isalnum())
1229 check(curses.ascii.isalpha, b.isalpha())
1230 check(curses.ascii.isdigit, b.isdigit())
1231 check(curses.ascii.islower, b.islower())
1232 check(curses.ascii.isspace, b.isspace())
1233 check(curses.ascii.isupper, b.isupper())
1235 check(curses.ascii.isascii, i < 128)
1236 check(curses.ascii.ismeta, i >= 128)
1237 check(curses.ascii.isctrl, i < 32)
1238 check(curses.ascii.iscntrl, i < 32 or i == 127)
1239 check(curses.ascii.isblank, c in ' \t')
1240 check(curses.ascii.isgraph, 32 < i <= 126)
1241 check(curses.ascii.isprint, 32 <= i <= 126)
1242 check(curses.ascii.ispunct, c in string.punctuation)
1243 check(curses.ascii.isxdigit, c in string.hexdigits)
1246 self.assertFalse(curses.ascii.isalnum(i))
1247 self.assertFalse(curses.ascii.isalpha(i))
1248 self.assertFalse(curses.ascii.isdigit(i))
1249 self.assertFalse(curses.ascii.islower(i))
1250 self.assertFalse(curses.ascii.isspace(i))
1251 self.assertFalse(curses.ascii.isupper(i))
1253 self.assertFalse(curses.ascii.isascii(i))
1254 self.assertFalse(curses.ascii.isctrl(i))
1255 self.assertFalse(curses.ascii.iscntrl(i))
1256 self.assertFalse(curses.ascii.isblank(i))
1257 self.assertFalse(curses.ascii.isgraph(i))
1258 self.assertFalse(curses.ascii.isprint(i))
1259 self.assertFalse(curses.ascii.ispunct(i))
1260 self.assertFalse(curses.ascii.isxdigit(i))
1262 self.assertFalse(curses.ascii.ismeta(-1))
1265 ascii = curses.ascii.ascii
1266 self.assertEqual(ascii('\xc1'), 'A')
1267 self.assertEqual(ascii('A'), 'A')
1268 self.assertEqual(ascii(ord('\xc1')), ord('A'))
1271 ctrl = curses.ascii.ctrl
1278 alt = curses.ascii.alt
1284 unctrl = curses.ascii.unctrl