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 islower/isupper functions #196

Merged
merged 5 commits into from
Aug 25, 2020
Merged

add islower/isupper functions #196

merged 5 commits into from
Aug 25, 2020

Conversation

stevengj
Copy link
Member

@stevengj stevengj commented Jul 10, 2020

Closes #195.

@maartenbreddels, this adds islower and isupper functions that should correspond to the Lowercase and Uppercase derived properties. I figured out a trick to do it without expanding the data tables, just slightly tweaking the table entries of lower/uppercase characters that don't yet have upper/lowercase mappings, respectively.

I still need to add a test.

@maartenbreddels
Copy link

Very cool, if you give me some time, I could test this with apache/arrow#7656

@stevengj
Copy link
Member Author

Added some tests and fixed a bug. This seems to be working (it returns true for isupper/islower if and only if the character is listed as such in DerivedProperties.txt).

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.

Include case information from DerivedCoreProperties.txt
2 participants