@@ -10046,7 +10046,7 @@ lower_ucs4(int kind, const void *data, Py_ssize_t length, Py_ssize_t i,
1004610046 mapped [0 ] = handle_capital_sigma (kind , data , length , i );
1004710047 return 1 ;
1004810048 }
10049- return _PyUnicode_ToLowerFull (c , mapped );
10049+ return PyUnicode_ToLower (c , mapped );
1005010050}
1005110051
1005210052static Py_ssize_t
@@ -10057,7 +10057,7 @@ do_capitalize(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UC
1005710057 Py_UCS4 c , mapped [3 ];
1005810058
1005910059 c = PyUnicode_READ (kind , data , 0 );
10060- n_res = _PyUnicode_ToTitleFull (c , mapped );
10060+ n_res = PyUnicode_ToTitle (c , mapped );
1006110061 for (j = 0 ; j < n_res ; j ++ ) {
1006210062 * maxchar = Py_MAX (* maxchar , mapped [j ]);
1006310063 res [k ++ ] = mapped [j ];
@@ -10084,7 +10084,7 @@ do_swapcase(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4
1008410084 n_res = lower_ucs4 (kind , data , length , i , c , mapped );
1008510085 }
1008610086 else if (Py_UNICODE_ISLOWER (c )) {
10087- n_res = _PyUnicode_ToUpperFull (c , mapped );
10087+ n_res = PyUnicode_ToUpper (c , mapped );
1008810088 }
1008910089 else {
1009010090 n_res = 1 ;
@@ -10110,7 +10110,7 @@ do_upper_or_lower(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res,
1011010110 if (lower )
1011110111 n_res = lower_ucs4 (kind , data , length , i , c , mapped );
1011210112 else
10113- n_res = _PyUnicode_ToUpperFull (c , mapped );
10113+ n_res = PyUnicode_ToUpper (c , mapped );
1011410114 for (j = 0 ; j < n_res ; j ++ ) {
1011510115 * maxchar = Py_MAX (* maxchar , mapped [j ]);
1011610116 res [k ++ ] = mapped [j ];
@@ -10163,7 +10163,7 @@ do_title(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4 *m
1016310163 if (previous_is_cased )
1016410164 n_res = lower_ucs4 (kind , data , length , i , c , mapped );
1016510165 else
10166- n_res = _PyUnicode_ToTitleFull (c , mapped );
10166+ n_res = PyUnicode_ToTitle (c , mapped );
1016710167
1016810168 for (j = 0 ; j < n_res ; j ++ ) {
1016910169 * maxchar = Py_MAX (* maxchar , mapped [j ]);
0 commit comments