Home
last modified time | relevance | path

Searched refs:wordStart (Results 1 – 6 of 6) sorted by relevance

/frameworks/minikin/tests/unittest/
DWordBreakerTests.cpp40 EXPECT_EQ(0, breaker.wordStart()); // "hello" in TEST()
45 EXPECT_EQ(6, breaker.wordStart()); // "world" in TEST()
60 EXPECT_EQ(0, breaker.wordStart()); // "hel{SOFT HYPHEN}lo" in TEST()
64 EXPECT_EQ(7, breaker.wordStart()); // "world" in TEST()
79 EXPECT_EQ(0, breaker.wordStart()); in TEST()
94 EXPECT_EQ(0, breaker.wordStart()); // "US¢" in TEST()
98 EXPECT_EQ(4, breaker.wordStart()); // "JP¥" in TEST()
113 EXPECT_EQ(0, breaker.wordStart()); in TEST()
135 EXPECT_EQ(0, breaker.wordStart()); in TEST()
138 EXPECT_EQ(7, breaker.wordStart()); in TEST()
[all …]
/frameworks/minikin/libs/minikin/
DLineBreakerUtil.cpp35 size_t wordStart = 0; // The initial value will never be accessed, but just in case. in hyphenate() local
40 const U16StringPiece word = str.substr(Range(wordStart, i)); in hyphenate()
42 hyphenator.hyphenate(word, out.data() + wordStart); in hyphenate()
54 wordStart = i; in hyphenate()
DWordBreaker.h156 ssize_t wordStart() const;
163 const uint32_t start = wordStart(); in wordRange()
DWordBreaker.cpp311 ssize_t WordBreaker::wordStart() const { in wordStart() function in minikin::WordBreaker
/frameworks/base/core/java/android/service/textservice/
DSpellCheckerService.java424 int wordStart = wordEnd == BreakIterator.DONE ? BreakIterator.DONE in getSplitWords() local
427 Log.d(TAG, "iterator: break: ---- 1st word start = " + wordStart + ", end = " in getSplitWords()
430 while (wordStart <= end && wordEnd != BreakIterator.DONE in getSplitWords()
431 && wordStart != BreakIterator.DONE) { in getSplitWords()
432 if (wordEnd >= start && wordEnd > wordStart) { in getSplitWords()
433 final CharSequence query = originalText.subSequence(wordStart, wordEnd); in getSplitWords()
436 wordItems.add(new SentenceWordItem(ti, wordStart, wordEnd)); in getSplitWords()
445 wordStart = wordIterator.getBeginning(wordEnd); in getSplitWords()
/frameworks/base/core/java/android/widget/
DEditor.java6190 final int wordStart = getWordStart(offset); in updatePosition() local
6258 int wordBoundary = isStartHandle() ? wordStart : wordEnd; in updatePosition()
6272 : wordStart + ((wordBoundary - wordStart) / 2); in updatePosition()
6277 offset = wordStart; in updatePosition()
6306 offset = isStartHandle() ? wordStart : wordEnd; in updatePosition()