-
Notifications
You must be signed in to change notification settings - Fork 809
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 utf8.lower & utf8.upper #2164
base: master
Are you sure you want to change the base?
Conversation
Unicode case mappings are not 1:1, one example is the Greek capital sigma When building
The Unicode Standard provides files such as UnicodeData.txt and SpecialCasing.txt that are relevant to these two functions (4.2 Case). The former defines simple 1:1 context-independent case mappings while the latter defines special mappings that require additional context. Perhaps a better way to handle this would be something like
where |
@CornerPin ps: check php, they tried to implement this - but their code is incredibly slow and this feature doesnt even work - i think this is a good proof why we shouldnt implement this. |
needed |
Implementation based on mapping.
This is compromise - performance and simplicity, in exchange for 48kb mem.
If this is unacceptable, i suggest doing the implementation using native functions - but this is beyond the scope of lua repo.