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

PCRE based islower() isupper()? #8012

Closed
catawbasam opened this issue Aug 15, 2014 · 1 comment
Closed

PCRE based islower() isupper()? #8012

catawbasam opened this issue Aug 15, 2014 · 1 comment

Comments

@catawbasam
Copy link
Contributor

PCRE seems to handle UTF-8 uppercase/lowercase correctly on Windows as well as Linux, creating a path to islower() and isupper() that works correctly across platforms.

If this seems like a reasonable approach, I'd be happy to put together a pull request.

ismatch(r"\p{Lu}", "Δ")   
true

ismatch(r"\p{Lu}", "δ")  
false

ismatch(r"\p{Ll}", "δ")  
true

ismatch(r"\p{Ll}", "Δ")   
false
@JeffBezanson
Copy link
Sponsor Member

I think this should be discussed in #5939. Would be especially interesting to benchmark.

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