Skip to content

add islower/isupper functions#196

Merged
stevengj merged 5 commits intomasterfrom
islowerupper
Aug 25, 2020
Merged

add islower/isupper functions#196
stevengj merged 5 commits intomasterfrom
islowerupper

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