mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Merged revisions 71947 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71947 | martin.v.loewis | 2009-04-26 02:53:18 +0200 (So, 26 Apr 2009) | 3 lines Issue #4971: Fix titlecase for characters that are their own titlecase, but not their own uppercase. ........
This commit is contained in:
parent
7442bd9cdb
commit
71efeb7cbf
3 changed files with 10 additions and 7 deletions
|
@ -79,12 +79,7 @@ int _PyUnicode_IsLinebreak(register const Py_UNICODE ch)
|
|||
Py_UNICODE _PyUnicode_ToTitlecase(register Py_UNICODE ch)
|
||||
{
|
||||
const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
|
||||
int delta;
|
||||
|
||||
if (ctype->title)
|
||||
delta = ctype->title;
|
||||
else
|
||||
delta = ctype->upper;
|
||||
int delta = ctype->title;
|
||||
|
||||
if (ctype->flags & NODELTA_MASK)
|
||||
return delta;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue