Define a character class iterator as adapter to Ragel scanner code
Blink text segmentation works on UChar* buffers. Define an adapter class that can iterate over the Blink UTF-16 buffers returning character classes that are compatible with the Ragel grammar that we will be using for scanning text runs for text presentation or emoji presentation. The Ragel grammar and generated code can be found here. https://github.com/googlei18n/emoji-segmenter Integration to a Chromium mirror is tracked in https://crbug.com/925792. Bug: 892589 Change-Id: I76c9a4e4aa63eaf8bcd4b3d4e8a8111bb5244a4a Reviewed-on: https://chromium-review.googlesource.com/c/1439298 Commit-Queue: Dominik Röttsches <drott@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Auto-Submit: Dominik Röttsches <drott@chromium.org> Cr-Commit-Position: refs/heads/master@{#626954}
Showing
Please register or sign in to comment