gecko-dev/intl/lwbrk
Ting-Yu Lin f8152b2b24 Bug 1730084 Part 5 - Remove WordBreaker::BreakInBetween(). r=jfkthame
The motivation of this patch is to remove rarely used API in
WordBreaker. WordBreaker::BreakInBetween() is used only in
nsFind::BreakInBetween() in production, and it can be replaced by
Next().

If the user wants to know whether there is a word break between two
strings such as the use cases in gtest, joining the two strings and
passing the result to Next() is the preferred way.

Note: I delete the buggy forward word search algorithm in
TestFindWordBreakFromPosition() because from the test expectations, it
doesn't expect to continue the search in previous fragments. Also, the
buggy part comes from the following code, which had undefined behavior
before Part 4, and does nothing after Part 4.

```
wbk->FindWord(prevFragText.get(), prevFragText.Length(), prevFragText.Length());
```

Differential Revision: https://phabricator.services.mozilla.com/D125151
2021-09-13 23:55:33 +00:00
..
crashtests
gtest Bug 1730084 Part 5 - Remove WordBreaker::BreakInBetween(). r=jfkthame 2021-09-13 23:55:33 +00:00
tools
jisx4051class.h
jisx4051pairtable.txt
LineBreaker.cpp
LineBreaker.h
moz.build Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium 2021-08-25 10:46:17 +00:00
nsCarbonBreaker.cpp
nsComplexBreaker.h
nsLWBrkCIID.h
nsPangoBreaker.cpp
nsRuleBreaker.cpp
nsUniscribeBreaker.cpp
rulebrk.c
rulebrk.h
th_char.h
WordBreaker.cpp Bug 1730084 Part 5 - Remove WordBreaker::BreakInBetween(). r=jfkthame 2021-09-13 23:55:33 +00:00
WordBreaker.h Bug 1730084 Part 5 - Remove WordBreaker::BreakInBetween(). r=jfkthame 2021-09-13 23:55:33 +00:00