Feature gate: #![feature(titlecase)]
This is a tracking issue for library functions to handle title-casing of Unicode characters.
Public API
// core
impl char {
pub fn is_cased(self) -> bool;
pub fn case(self) -> Option<CharCase>;
pub fn is_titlecase(self) -> bool;
pub fn to_titlecase(self) -> ToTitlecase;
}
mod char {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub enum CharCase {
Lower = 0b00,
Title = 0b10,
Upper = 0b11,
}
struct ToTitlecase { ... }
impl Iterator for ToTitlecase { ... }
impl DoubleEndedIterator for ToTitlecase { ... }
impl FusedIterator for ToTitlecase { }
impl ExactSizeIterator for ToTitlecase { ... }
impl fmt::Display for ToTitlecase { ... }
}
// alloc
impl str {
fn word_to_titlecase(&self) -> String;
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(titlecase)]This is a tracking issue for library functions to handle title-casing of Unicode characters.
Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)charlibs-team#354char::to_titlecase#154288 Addstr::word_to_titlecase()toalloc#155705Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩