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

Very fast UTF-8, using Bjoern Hoehrmann's DFA decoder. Faster branchl… #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tylov
Copy link

@tylov tylov commented Jan 6, 2022

…ess utf8_char_width() function.

Note that utf8_peek() now uses the DFA decoder, and gives different result on two values from previous implementation:
Old output: e4 and f6, new output: 3 and 3. Otherwise same output when run through test suite. Still all tests passes, and sandbox.c works well.

Note also that mregexp_valid_utf8() had no implementation (was implemented as mregexp_check_utf8()).

…ess utf8_char_width() function.

Note that utf8_peek() now uses the DFA decoder, and gives different result on two values from previous implementation:
Old output: e4 and f6, new output: 3 and 3. Otherwise same output when run through test suite. Still all tests passes, and sandbox.c works well.

Note also that mregexp_valid_utf8() had no implementation (was implemented as mregexp_check_utf8()).
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.

1 participant