This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | pitrou |
|---|---|
| Recipients | arnimar, pitrou |
| Date | 2008年02月16日.19:34:21 |
| SpamBayes Score | 0.017736899 |
| Marked as misclassified | No |
| Message-id | <1203190462.88.0.607135843876.issue1813@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The C library's tolower() and toupper() are used in a handful of source files. It might make sense to replace some of those calls with ascii-only versions of the corresponding functions. Modules/_sre.c: return ((ch) < 256 ? (unsigned int)tolower((ch)) : ch); Modules/_sqlite/cursor.c: *dst++ = tolower(*src++); Modules/stropmodule.c: *s_new = tolower(c); Modules/stropmodule.c: *s_new = toupper(c); Modules/stropmodule.c: *s_new = toupper(c); Modules/stropmodule.c: *s_new = tolower(c); Modules/stropmodule.c: *s_new = toupper(c); Modules/stropmodule.c: *s_new = tolower(c); Modules/unicodedata.c: h = (h * scale) + (unsigned char) toupper(Py_CHARMASK(s[i])); Modules/unicodedata.c: if (toupper(Py_CHARMASK(name[i])) != buffer[i]) Modules/_tkinter.c: argv0[0] = tolower(Py_CHARMASK(argv0[0])); Modules/binascii.c: c = tolower(c); Objects/stringobject.c: s[i] = _tolower(c); Objects/stringobject.c: s[i] = _toupper(c); Objects/stringobject.c: c = toupper(c); Objects/stringobject.c: c = tolower(c); Objects/stringobject.c: *s_new = toupper(c); Objects/stringobject.c: *s_new = tolower(c); Objects/stringobject.c: *s_new = toupper(c); Objects/stringobject.c: *s_new = tolower(c); Parser/tokenizer.c: else buf[i] = tolower(c); Python/codecs.c: ch = tolower(Py_CHARMASK(ch)); Python/dynload_win.c: first = tolower(*string1); Python/dynload_win.c: second = tolower(*string2); Python/pystrcmp.c: while ((--size > 0) && (tolower(*s1) == tolower(*s2))) { Python/pystrcmp.c: return tolower(*s1) - tolower(*s2); Python/pystrcmp.c: while (*s1 && (tolower(*s1++) == tolower(*s2++))) { Python/pystrcmp.c: return (tolower(*s1) - tolower(*s2)); |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年02月16日 19:34:23 | pitrou | set | spambayes_score: 0.0177369 -> 0.017736899 recipients: + pitrou, arnimar |
| 2008年02月16日 19:34:22 | pitrou | set | spambayes_score: 0.0177369 -> 0.0177369 messageid: <1203190462.88.0.607135843876.issue1813@psf.upfronthosting.co.za> |
| 2008年02月16日 19:34:21 | pitrou | link | issue1813 messages |
| 2008年02月16日 19:34:21 | pitrou | create | |