Skip to content

Commit

Permalink
Bug 1856267 - Don't use ICU4X segmenter if word is ASCII only and non…
Browse files Browse the repository at this point in the history
…-breakable character. r=TYLin,jfkthame

`mCurrentWordContainsComplexChar` and `wordHasComplexChar` seem to be used
 whether a word has breakable character. I would like to rename it for clean
up.

Also, `nsLineBreaker` has a fast path if character is ASCII, alphabet (AL) and
number (NU). But IS and QU are also unbreakable. So we should add it by using
simple table.

Differential Revision: https://phabricator.services.mozilla.com/D190379

UltraBlame original commit: d13725dac1c15841e3ae5265ac493e9cb7411dd1
  • Loading branch information
marco-c committed Oct 16, 2023
1 parent 9d9f92c commit 2f9a9a0
Show file tree
Hide file tree
Showing 2 changed files with 332 additions and 233 deletions.
Loading

0 comments on commit 2f9a9a0

Please sign in to comment.