Feature gate: #![feature(casefold)]
This is a tracking issue for Unicode-aware case folding APIs in the standard library. These APIs do not perform NFC/NFKC normalization.
Public API
// `core`
impl char {
pub fn to_casefold_unnormalized(self) -> ToCasefold;
}
mod char {
#[derive(Debug, Clone)]
pub struct ToCasefold { … };
impl Iterator for ToCasefold {
type Item = char;
…
}
impl DoubleEndedIterator for ToCasefold { … }
impl FusedIterator for ToCasefold {}
impl ExactSizeIterator for ToCasefold {}
impl fmt::Display for ToCasefold { … }
}
impl str {
pub fn eq_ignore_case_unnormalized(&self, other: &str) -> bool;
}
// `alloc`
impl str {
pub fn to_casefold_unnormalized(&self) -> String;
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
@rustbot label A-Unicode
Feature gate:
#![feature(casefold)]This is a tracking issue for Unicode-aware case folding APIs in the standard library. These APIs do not perform NFC/NFKC normalization.
Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Unresolved Questions
@rustbot label A-Unicode
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩