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

Add some "Special Casing" support to String#downcase, String#upcase, and String#titlecase #2070

Merged
merged 7 commits into from
Jun 6, 2024

Conversation

seven1m
Copy link
Member

@seven1m seven1m commented Jun 5, 2024

#217

This is the set of mappings from the "Unconditional mappings" section of http://ftp.unicode.org/Public/UNIDATA/SpecialCasing.txt.

seven1m added 6 commits June 5, 2024 17:37
This will be used by codepoint_to_uppercase et al in a later commit.
I considered using std::tuple for this, but I fell back to doing it the
C way since, because I understand how efficient it is.
This doesn't handle Lithuanian or Turkish stuff. I'm not sure what I
need for that yet.
Again, no Lithuanian or Turkish stuff yet.
Again, no Lithuanian or Turkish stuff yet.

This doesn't make any additional specs pass, unfortunately, because
there are no "unconditional mappings" for lowercase. This will still be
useful when we add Turkish and Lithuanian support though.
@seven1m seven1m force-pushed the casemap-special-casing branch from 1941101 to d7165be Compare June 5, 2024 22:39
@seven1m seven1m merged commit 4253efb into master Jun 6, 2024
12 checks passed
@seven1m seven1m deleted the casemap-special-casing branch June 6, 2024 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant