Searched refs:breaker (Results 1 – 7 of 7) sorted by relevance
/frameworks/minikin/tests/unittest/ |
D | WordBreakerTests.cpp | 38 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/ |
D | LineBreakerUtil.h | 138 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
|
D | WordBreaker.h | 43 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
|
D | WordBreaker.cpp | 60 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()
|
D | GreedyLineBreaker.cpp | 81 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/ |
D | mems.txt | 8960 "You are sure it was not a house-breaker's jimmy?"
|
D | retn.txt | 7229 story of the statues. In that case our friend, the image-breaker, has
|