Skip to content

Remove char::to_titlecase? #26555

Closed
Closed
@brson

Description

@brson

Converting a string to titlecase requires a word-breaking algorithm, which std does not provide. We do have the method for converting a single char to titlecase, if one can identify the first char of a word. This method requires a few kb of lookup tables.

We might want to consider whether its wise to ship one without the other. This is marked for stabilization in 1.2 so we need to decide soon.

cc @SimonSapin @alexcrichton @aturon

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API 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