Michiel van Slobbe
864d769d88
Implement ascii_downcase and ascii_upcase in C ( #3689 )
...
Both were defined as explode | map(...) | implode, which took 4 seconds
on a 10 MB string, about 90 times as long as parsing it.
Change the case of A-Z or a-z a byte at a time in C, copying multibyte
UTF-8 sequences unchanged, so the output stays the same and the 10 MB
case now takes about 60 ms including parsing. On a non-string input the
error now names the function, "ascii_downcase input must be a string",
instead of "explode input must be a string".
2026-10-25 14:18:21 +09:00
..
2026-10-25 14:18:21 +09:00
2023-08-04 11:47:34 -05:00
2026-10-25 14:18:21 +09:00
2015-08-23 20:36:11 -07:00
2024-12-01 11:49:44 +01:00
2026-10-10 21:29:56 +09:00
2026-05-09 17:08:43 +09:00
2026-04-24 22:09:44 +09:00
2026-09-19 15:21:29 +09:00
2023-07-24 15:44:29 +02:00
2026-10-08 08:24:10 +09:00
2026-10-08 08:24:10 +09:00
2015-08-23 20:36:11 -07:00
2026-03-15 21:45:16 +09:00
2023-11-28 22:50:25 +01:00
2025-05-07 21:25:32 +09:00
2025-03-04 22:33:51 +09:00
2026-10-09 09:22:59 +09:00
2025-06-30 07:27:24 +09:00
2025-05-07 21:25:32 +09:00
2025-05-29 04:11:00 +09:00
2015-08-23 20:36:11 -07:00
2026-10-08 23:01:36 +09:00
2026-10-20 22:03:29 +09:00
2026-10-10 21:50:10 +09:00
2023-08-13 14:16:02 +02:00
2023-07-10 08:05:25 +09:00
2026-10-20 22:03:29 +09:00
2026-10-20 22:03:29 +09:00
2015-08-23 20:36:11 -07:00
2026-10-20 22:16:56 +09:00
2026-09-18 18:52:18 +09:00
2026-10-06 16:48:28 +09:00
2026-10-06 16:48:28 +09:00
2026-10-06 16:48:28 +09:00
2024-03-20 18:23:08 +09:00
2026-09-18 22:27:54 +09:00
2015-08-23 20:36:11 -07:00
2025-06-17 15:25:46 +09:00
2015-08-23 20:36:11 -07:00
2026-10-24 15:19:14 +09:00
2026-09-19 15:21:29 +09:00
2026-10-06 16:48:28 +09:00
2026-10-06 16:48:28 +09:00
2026-10-06 16:48:28 +09:00
2026-10-08 23:01:36 +09:00
2026-09-18 20:12:34 +09:00