Tracking Issue for titlecase handling in `core::char`
Open
Nobody has claimed this yet.
C-tracking-issue
S-tracking-needs-to-bake
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
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.)
- ACP: https://github.com/rust-lang/libs-team/issues/354
- Implementation: #122668 https://github.com/rust-lang/rust/pull/154288 https://github.com/rust-lang/rust/pull/155705
- Final comment period (FCP)^1
- Stabilization PR
Unresolved Questions
- None yet.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the proposed APIs in core::char and alloc::str, then review implementation PRs #154288 and #155705. The remaining checklist items are the final comment period and stabilization PR; done means the feature has completed that process and is stabilized.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100