@@ -49,7 +49,7 @@ gettyperecord(Py_UNICODE code)
4949/* Returns 1 for Unicode characters having the category 'Zl' or type
5050 'B', 0 otherwise. */
5151
52- int _PyUnicode_IsLinebreak (register const Py_UNICODE ch )
52+ int _PyUnicode_IsLinebreak (Py_UNICODE ch )
5353{
5454 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
5555
@@ -79,7 +79,7 @@ Py_UNICODE _PyUnicode_ToTitlecase(register Py_UNICODE ch)
7979/* Returns 1 for Unicode characters having the category 'Lt', 0
8080 otherwise. */
8181
82- int _PyUnicode_IsTitlecase (register const Py_UNICODE ch )
82+ int _PyUnicode_IsTitlecase (Py_UNICODE ch )
8383{
8484 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
8585
@@ -89,14 +89,14 @@ int _PyUnicode_IsTitlecase(register const Py_UNICODE ch)
8989/* Returns the integer decimal (0-9) for Unicode characters having
9090 this property, -1 otherwise. */
9191
92- int _PyUnicode_ToDecimalDigit (register const Py_UNICODE ch )
92+ int _PyUnicode_ToDecimalDigit (Py_UNICODE ch )
9393{
9494 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
9595
9696 return (ctype -> flags & DECIMAL_MASK ) ? ctype -> decimal : -1 ;
9797}
9898
99- int _PyUnicode_IsDecimalDigit (register const Py_UNICODE ch )
99+ int _PyUnicode_IsDecimalDigit (Py_UNICODE ch )
100100{
101101 if (_PyUnicode_ToDecimalDigit (ch ) < 0 )
102102 return 0 ;
@@ -106,14 +106,14 @@ int _PyUnicode_IsDecimalDigit(register const Py_UNICODE ch)
106106/* Returns the integer digit (0-9) for Unicode characters having
107107 this property, -1 otherwise. */
108108
109- int _PyUnicode_ToDigit (register const Py_UNICODE ch )
109+ int _PyUnicode_ToDigit (Py_UNICODE ch )
110110{
111111 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
112112
113113 return (ctype -> flags & DIGIT_MASK ) ? ctype -> digit : -1 ;
114114}
115115
116- int _PyUnicode_IsDigit (register const Py_UNICODE ch )
116+ int _PyUnicode_IsDigit (Py_UNICODE ch )
117117{
118118 if (_PyUnicode_ToDigit (ch ) < 0 )
119119 return 0 ;
@@ -125,7 +125,7 @@ int _PyUnicode_IsDigit(register const Py_UNICODE ch)
125125
126126/* TODO: replace with unicodetype_db.h table */
127127
128- double _PyUnicode_ToNumeric (register const Py_UNICODE ch )
128+ double _PyUnicode_ToNumeric (Py_UNICODE ch )
129129{
130130 switch (ch ) {
131131 case 0x3007 :
@@ -313,7 +313,7 @@ double _PyUnicode_ToNumeric(register const Py_UNICODE ch)
313313 }
314314}
315315
316- int _PyUnicode_IsNumeric (register const Py_UNICODE ch )
316+ int _PyUnicode_IsNumeric (Py_UNICODE ch )
317317{
318318 if (_PyUnicode_ToNumeric (ch ) < 0.0 )
319319 return 0 ;
@@ -325,7 +325,7 @@ int _PyUnicode_IsNumeric(register const Py_UNICODE ch)
325325/* Returns 1 for Unicode characters having the bidirectional type
326326 'WS', 'B' or 'S' or the category 'Zs', 0 otherwise. */
327327
328- int _PyUnicode_IsWhitespace (register const Py_UNICODE ch )
328+ int _PyUnicode_IsWhitespace (Py_UNICODE ch )
329329{
330330 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
331331
@@ -335,7 +335,7 @@ int _PyUnicode_IsWhitespace(register const Py_UNICODE ch)
335335/* Returns 1 for Unicode characters having the category 'Ll', 0
336336 otherwise. */
337337
338- int _PyUnicode_IsLowercase (register const Py_UNICODE ch )
338+ int _PyUnicode_IsLowercase (Py_UNICODE ch )
339339{
340340 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
341341
@@ -345,7 +345,7 @@ int _PyUnicode_IsLowercase(register const Py_UNICODE ch)
345345/* Returns 1 for Unicode characters having the category 'Lu', 0
346346 otherwise. */
347347
348- int _PyUnicode_IsUppercase (register const Py_UNICODE ch )
348+ int _PyUnicode_IsUppercase (Py_UNICODE ch )
349349{
350350 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
351351
@@ -355,7 +355,7 @@ int _PyUnicode_IsUppercase(register const Py_UNICODE ch)
355355/* Returns the uppercase Unicode characters corresponding to ch or just
356356 ch if no uppercase mapping is known. */
357357
358- Py_UNICODE _PyUnicode_ToUppercase (register Py_UNICODE ch )
358+ Py_UNICODE _PyUnicode_ToUppercase (Py_UNICODE ch )
359359{
360360 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
361361
@@ -371,7 +371,7 @@ Py_UNICODE _PyUnicode_ToUppercase(register Py_UNICODE ch)
371371/* Returns the lowercase Unicode characters corresponding to ch or just
372372 ch if no lowercase mapping is known. */
373373
374- Py_UNICODE _PyUnicode_ToLowercase (register Py_UNICODE ch )
374+ Py_UNICODE _PyUnicode_ToLowercase (Py_UNICODE ch )
375375{
376376 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
377377
@@ -387,7 +387,7 @@ Py_UNICODE _PyUnicode_ToLowercase(register Py_UNICODE ch)
387387/* Returns 1 for Unicode characters having the category 'Ll', 'Lu', 'Lt',
388388 'Lo' or 'Lm', 0 otherwise. */
389389
390- int _PyUnicode_IsAlpha (register const Py_UNICODE ch )
390+ int _PyUnicode_IsAlpha (Py_UNICODE ch )
391391{
392392 const _PyUnicode_TypeRecord * ctype = gettyperecord (ch );
393393
@@ -399,32 +399,32 @@ int _PyUnicode_IsAlpha(register const Py_UNICODE ch)
399399/* Export the interfaces using the wchar_t type for portability
400400 reasons: */
401401
402- int _PyUnicode_IsWhitespace (register const Py_UNICODE ch )
402+ int _PyUnicode_IsWhitespace (Py_UNICODE ch )
403403{
404404 return iswspace (ch );
405405}
406406
407- int _PyUnicode_IsLowercase (register const Py_UNICODE ch )
407+ int _PyUnicode_IsLowercase (Py_UNICODE ch )
408408{
409409 return iswlower (ch );
410410}
411411
412- int _PyUnicode_IsUppercase (register const Py_UNICODE ch )
412+ int _PyUnicode_IsUppercase (Py_UNICODE ch )
413413{
414414 return iswupper (ch );
415415}
416416
417- Py_UNICODE _PyUnicode_ToLowercase (register const Py_UNICODE ch )
417+ Py_UNICODE _PyUnicode_ToLowercase (Py_UNICODE ch )
418418{
419419 return towlower (ch );
420420}
421421
422- Py_UNICODE _PyUnicode_ToUppercase (register const Py_UNICODE ch )
422+ Py_UNICODE _PyUnicode_ToUppercase (Py_UNICODE ch )
423423{
424424 return towupper (ch );
425425}
426426
427- int _PyUnicode_IsAlpha (register const Py_UNICODE ch )
427+ int _PyUnicode_IsAlpha (Py_UNICODE ch )
428428{
429429 return iswalpha (ch );
430430}
0 commit comments