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

new utf8proc_map_custom for hooking in user-defined custom mappings #89

Merged
merged 4 commits into from
Nov 30, 2016

Conversation

stevengj
Copy link
Member

This PR supplies two new functions, utf8proc_map_custom and utf8proc_decompose_custom, which are like the old utf8proc_map and utf8proc_decompose except that they allow the user to pass a custom mapping function that is applied to every codepoint in the input before any other transformation is performed.

This will allow us to fix #11 without adding any Julia-specific code into utf8proc, and seems like a generally useful mechanism to have.

cc @jiahao, @StefanKarpinski

@stevengj
Copy link
Member Author

Good to merge?

Copy link
Contributor

@tkelman tkelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@stevengj stevengj merged commit b4621f4 into master Nov 30, 2016
@stevengj stevengj deleted the custom branch November 30, 2016 15:40
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.

add custom JULIA normalization?
2 participants