Skip to content

Tracking Issue for titlecase handling in core::char #153892

Open

Description

@Jules-Bertholet

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

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    T-libs-api[DEPRECATED; DO NOT USE]
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Mar 15, 2026
  2. changed the title [-]Tracking Issue for `titlecase`[/-] [+]Tracking Issue for titlecase handling in `core::char`[/+] on Mar 15, 2026
  3. added a commit that references this issue on Mar 21, 2026
  4. added a commit that references this issue on Mar 22, 2026
  5. added 3 commits that reference this issue on Mar 22, 2026
  6. added 5 commits that reference this issue on Mar 22, 2026
  7. Jules-Bertholet commented on Mar 24, 2026

    @Jules-Bertholet
    ContributorAuthor

    @rustbot label -S-tracking-unimplemented S-tracking-needs-to-bake

  8. added
    S-tracking-needs-to-bakeStatus: The implementation is "complete" but it needs time to bake.
    and removed on Mar 24, 2026
  9. added a commit that references this issue on Apr 23, 2026
  10. added a commit that references this issue on Apr 23, 2026
  11. added 2 commits that reference this issue on May 9, 2026
  12. added a commit that references this issue on May 10, 2026
  13. added a commit that references this issue on May 10, 2026
  14. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-needs-to-bakeStatus: The implementation is "complete" but it needs time to bake.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions