Skip to content

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

Merged
stevengj merged 4 commits intomasterfrom
custom
Nov 30, 2016
Merged

new utf8proc_map_custom for hooking in user-defined custom mappings#89
stevengj merged 4 commits intomasterfrom
custom

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