We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 124dceb commit 8065f9cCopy full SHA for 8065f9c
mypyc/lib-rt/str_ops.c
@@ -575,24 +575,14 @@ static inline Py_UCS4 tolower_ucs4(Py_UCS4 ch) {
575
if (ch < 128) {
576
return ascii_lower_table[ch];
577
}
578
-#ifdef Py_UNICODE_TOLOWER
579
return Py_UNICODE_TOLOWER(ch);
580
-#else
581
- // fallback: no-op for non-ASCII if macro is unavailable
582
- return ch;
583
-#endif
584
585
586
static inline Py_UCS4 toupper_ucs4(Py_UCS4 ch) {
587
588
return ascii_upper_table[ch];
589
590
-#ifdef Py_UNICODE_TOUPPER
591
return Py_UNICODE_TOUPPER(ch);
592
593
594
595
596
597
598
// Implementation of s.lower()
0 commit comments