@@ -10003,7 +10003,7 @@ lower_ucs4(int kind, const void *data, Py_ssize_t length, Py_ssize_t i,
1000310003 mapped [0 ] = handle_capital_sigma (kind , data , length , i );
1000410004 return 1 ;
1000510005 }
10006- return _PyUnicode_ToLowerFull (c , mapped );
10006+ return PyUnicode_ToLower (c , mapped );
1000710007}
1000810008
1000910009static Py_ssize_t
@@ -10014,7 +10014,7 @@ do_capitalize(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UC
1001410014 Py_UCS4 c , mapped [3 ];
1001510015
1001610016 c = PyUnicode_READ (kind , data , 0 );
10017- n_res = _PyUnicode_ToTitleFull (c , mapped );
10017+ n_res = PyUnicode_ToTitle (c , mapped );
1001810018 for (j = 0 ; j < n_res ; j ++ ) {
1001910019 * maxchar = Py_MAX (* maxchar , mapped [j ]);
1002010020 res [k ++ ] = mapped [j ];
@@ -10041,7 +10041,7 @@ do_swapcase(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4
1004110041 n_res = lower_ucs4 (kind , data , length , i , c , mapped );
1004210042 }
1004310043 else if (Py_UNICODE_ISLOWER (c )) {
10044- n_res = _PyUnicode_ToUpperFull (c , mapped );
10044+ n_res = PyUnicode_ToUpper (c , mapped );
1004510045 }
1004610046 else {
1004710047 n_res = 1 ;
@@ -10067,7 +10067,7 @@ do_upper_or_lower(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res,
1006710067 if (lower )
1006810068 n_res = lower_ucs4 (kind , data , length , i , c , mapped );
1006910069 else
10070- n_res = _PyUnicode_ToUpperFull (c , mapped );
10070+ n_res = PyUnicode_ToUpper (c , mapped );
1007110071 for (j = 0 ; j < n_res ; j ++ ) {
1007210072 * maxchar = Py_MAX (* maxchar , mapped [j ]);
1007310073 res [k ++ ] = mapped [j ];
@@ -10120,7 +10120,7 @@ do_title(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4 *m
1012010120 if (previous_is_cased )
1012110121 n_res = lower_ucs4 (kind , data , length , i , c , mapped );
1012210122 else
10123- n_res = _PyUnicode_ToTitleFull (c , mapped );
10123+ n_res = PyUnicode_ToTitle (c , mapped );
1012410124
1012510125 for (j = 0 ; j < n_res ; j ++ ) {
1012610126 * maxchar = Py_MAX (* maxchar , mapped [j ]);
0 commit comments