Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove char::to_titlecase? #26555

Closed
brson opened this issue Jun 24, 2015 · 1 comment
Closed

Remove char::to_titlecase? #26555

brson opened this issue Jun 24, 2015 · 1 comment
Labels
T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@brson
Copy link
Contributor

brson commented Jun 24, 2015

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

@brson brson added I-needs-decision Issues in need of decision. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Jun 24, 2015
@alexcrichton
Copy link
Member

This is marked for stabilization in 1.2 so we need to decide soon.

The method is marked as unstable so I'm fine just deleting it, I don't think it's marked to be stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants