rust/library/core/src/unicode
bors 0f50696801 Auto merge of #145479 - Kmeakin:km/hardcode-char-is-control, r=joboet
Hard-code `char::is_control`

Split off from https://github.com/rust-lang/rust/pull/145219

According to
https://www.unicode.org/policies/stability_policy.html#Property_Value, the set of codepoints in `Cc` will never change. So we can hard-code the patterns to match against instead of using a table.

This doesn't change the generated assembly, since the lookup table is small enough that[ LLVM is able to inline the whole search](https://godbolt.org/z/bG8dM37YG). But this does reduce the chance of regressions if LLVM's heuristics change in the future, and means less generated Rust code checked in to `unicode-data.rs`.
2025-08-30 14:18:21 +00:00
..
mod.rs Auto merge of #145479 - Kmeakin:km/hardcode-char-is-control, r=joboet 2025-08-30 14:18:21 +00:00
printable.py Reformat Python code with ruff 2024-12-04 23:03:44 +01:00
printable.rs Bump unicode printable to version 16.0.0 2024-09-10 11:13:35 +02:00
unicode_data.rs refactor: Hard-code char::is_control 2025-08-16 01:46:30 +01:00