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

tolower and toupper? #25

Closed
codecat opened this issue Aug 8, 2016 · 4 comments
Closed

tolower and toupper? #25

codecat opened this issue Aug 8, 2016 · 4 comments

Comments

@codecat
Copy link
Contributor

codecat commented Aug 8, 2016

How does this work with utf8?

I can use tolower() and toupper() to get lowercase or uppercase characters of ascii chars, but there's nothing in this library for converting codepoints, from what I see.

@sheredom
Copy link
Owner

So @angelog do you basically want utf8 variants of tolower() and toupper(), from the <ctype.h> header? Any of the other functions useful too?

@codecat
Copy link
Contributor Author

codecat commented Aug 10, 2016

Hm, not sure about other functions, but those are a few I particularly need. Perhaps functions like isupper, islower too.

@codecat
Copy link
Contributor Author

codecat commented Aug 18, 2016

I looked into this a bit, seems like it'll be difficult to support it properly. With that I mean, apparently things like ß in uppercase is SS and there's a lot more edge cases like that.

What a toupper and tolower could do as a bare minimum is handle ascii upper and lower case, but handling every usecase probably isn't maintainable.

@sheredom
Copy link
Owner

Thanks!

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

No branches or pull requests

2 participants