Searched refs:wordStart (Results 1 – 7 of 7) sorted by relevance
/frameworks/minikin/tests/unittest/ |
D | WordBreakerTests.cpp | 41 EXPECT_EQ(0, breaker.wordStart()); // "hello" in TEST() 46 EXPECT_EQ(6, breaker.wordStart()); // "world" in TEST() 59 EXPECT_EQ(0, breaker.wordStart()); // "hel{SOFT HYPHEN}lo" in TEST() 63 EXPECT_EQ(7, breaker.wordStart()); // "world" in TEST() 75 EXPECT_EQ(0, breaker.wordStart()); in TEST() 87 EXPECT_EQ(0, breaker.wordStart()); // "US¢" in TEST() 91 EXPECT_EQ(4, breaker.wordStart()); // "JP¥" in TEST() 103 EXPECT_EQ(0, breaker.wordStart()); in TEST() 123 EXPECT_EQ(0, breaker.wordStart()); in TEST() 126 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 | 109 ssize_t wordStart() const; 116 const uint32_t start = wordStart(); in wordRange()
|
D | WordBreaker.cpp | 270 ssize_t WordBreaker::wordStart() const { in wordStart() function in minikin::WordBreaker
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 566 int wordStart = mWordIterator.preceding(start); in parse() local 568 if (wordStart == BreakIterator.DONE) { in parse() 571 wordStart = mWordIterator.getBeginning(wordEnd); in parse() 574 wordEnd = mWordIterator.getEnd(wordStart); in parse() 617 int spellCheckStart = wordStart; in parse() 666 wordStart = spellCheckEnd; in parse() 668 while (wordStart <= end) { in parse() 669 if (wordEnd >= start && wordEnd > wordStart) { in parse() 677 if (wordStart < start && wordEnd > start) { in parse() 682 if (wordStart < end && wordEnd > end) { in parse() [all …]
|
D | Editor.java | 5416 final int wordStart = getWordStart(offset); in updatePosition() local 5481 int wordBoundary = isStartHandle() ? wordStart : wordEnd; in updatePosition() 5495 : wordStart + ((wordBoundary - wordStart) / 2); in updatePosition() 5500 offset = wordStart; in updatePosition() 5529 offset = isStartHandle() ? wordStart : wordEnd; in updatePosition()
|
/frameworks/base/core/java/android/service/textservice/ |
D | SpellCheckerService.java | 402 int wordStart = wordIterator.getBeginning(wordEnd); in getSplitWords() local 404 Log.d(TAG, "iterator: break: ---- 1st word start = " + wordStart + ", end = " in getSplitWords() 407 while (wordStart <= end && wordEnd != BreakIterator.DONE in getSplitWords() 408 && wordStart != BreakIterator.DONE) { in getSplitWords() 409 if (wordEnd >= start && wordEnd > wordStart) { in getSplitWords() 410 final CharSequence query = originalText.subSequence(wordStart, wordEnd); in getSplitWords() 413 wordItems.add(new SentenceWordItem(ti, wordStart, wordEnd)); in getSplitWords() 422 wordStart = wordIterator.getBeginning(wordEnd); in getSplitWords()
|