Home
last modified time | relevance | path

Searched refs:breaker (Results 1 – 7 of 7) sorted by relevance

/frameworks/minikin/tests/unittest/
DWordBreakerTests.cpp38 WordBreaker breaker; in TEST() local
39 breaker.setText(buf, NELEM(buf)); in TEST()
40 EXPECT_EQ(0, breaker.current()); in TEST()
41 EXPECT_EQ(6, breaker.followingWithLocale(Locale("en-US"), 0)); // after "hello " in TEST()
42 EXPECT_EQ(0, breaker.wordStart()); // "hello" in TEST()
43 EXPECT_EQ(5, breaker.wordEnd()); in TEST()
44 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
45 EXPECT_EQ(6, breaker.current()); in TEST()
46 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
47 EXPECT_EQ(6, breaker.wordStart()); // "world" in TEST()
[all …]
/frameworks/minikin/libs/minikin/
DLineBreakerUtil.h138 inline Range wordRange() const { return breaker.wordRange(); } in wordRange()
149 inline int wordBreakPenalty() const { return breaker.breakBadness(); } in wordBreakPenalty()
151 CharProcessor(const U16StringPiece& text) { breaker.setText(text.data(), text.size()); } in CharProcessor()
160 nextWordBreak = breaker.followingWithLocale(locale, run.getRange().getStart()); in updateLocaleIfNecessary()
170 nextWordBreak = breaker.next(); in feedChar()
192 WordBreaker breaker; member
DWordBreaker.h43 Slot() : localeId(0), breaker(nullptr) {} in Slot()
44 Slot(uint64_t localeId, std::unique_ptr<icu::BreakIterator>&& breaker) in Slot()
45 : localeId(localeId), breaker(std::move(breaker)) {} in Slot()
55 std::unique_ptr<icu::BreakIterator> breaker; member
DWordBreaker.cpp60 if (slot.breaker.get() == nullptr) { in release()
82 mIcuBreaker.breaker->setText(&mUText, status); in followingWithLocale()
164 int32_t result = mIcuBreaker.breaker->following(mCurrent); in iteratorNext()
166 result = mIcuBreaker.breaker->next(); in iteratorNext()
214 if (!mIcuBreaker.breaker->isBoundary(i)) { in detectEmailOrUrl()
218 i = mIcuBreaker.breaker->following(i); in detectEmailOrUrl()
DGreedyLineBreaker.cpp81 void processLineBreak(uint32_t offset, WordBreaker* breaker);
92 bool tryLineBreakWithHyphenation(const Range& range, WordBreaker* breaker);
162 bool GreedyLineBreaker::tryLineBreakWithHyphenation(const Range& range, WordBreaker* breaker) { in tryLineBreakWithHyphenation() argument
178 const Range targetRange = breaker->wordRange(); in tryLineBreakWithHyphenation()
295 void GreedyLineBreaker::processLineBreak(uint32_t offset, WordBreaker* breaker) { in processLineBreak() argument
300 } else if (tryLineBreakWithHyphenation(lineRange, breaker)) { in processLineBreak()
308 const bool isInEmailOrUrl = breaker->breakBadness() != 0; in processLineBreak()
/frameworks/support/work/integration-tests/testapp/src/main/assets/
Dmems.txt8960 "You are sure it was not a house-breaker's jimmy?"
Dretn.txt7229 story of the statues. In that case our friend, the image-breaker, has