Searched refs:wordStart (Results 1 – 6 of 6) sorted by relevance
/frameworks/minikin/tests/unittest/ |
D | WordBreakerTests.cpp | 40 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/ |
D | LineBreakerUtil.cpp | 35 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()
|
D | WordBreaker.h | 156 ssize_t wordStart() const; 163 const uint32_t start = wordStart(); in wordRange()
|
D | WordBreaker.cpp | 311 ssize_t WordBreaker::wordStart() const { in wordStart() function in minikin::WordBreaker
|
/frameworks/base/core/java/android/service/textservice/ |
D | SpellCheckerService.java | 424 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/ |
D | Editor.java | 6190 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()
|