Searched refs:wordStart (Results 1 - 8 of 8) sorted by relevance
/frameworks/minikin/libs/minikin/ |
H A D | LineBreakerUtil.cpp | 35 size_t wordStart = 0; // The initial value will never be accessed, but just in case. local 40 const U16StringPiece word = str.substr(Range(wordStart, i)); 42 hyphenator.hyphenate(word, out.data() + wordStart); 54 wordStart = i;
|
H A D | WordBreaker.h | 106 // After calling next(), wordStart() and wordEnd() are offsets defining the previous 107 // word. If wordEnd <= wordStart, it's not a word for the purpose of hyphenation. 108 ssize_t wordStart() const; 112 // Returns the range from wordStart() to wordEnd(). 113 // If wordEnd() <= wordStart(), returns empty range. 115 const uint32_t start = wordStart();
|
H A D | WordBreaker.cpp | 269 ssize_t WordBreaker::wordStart() const { function in class:minikin::WordBreaker
|
/frameworks/minikin/tests/unittest/ |
H A D | WordBreakerTests.cpp | 42 EXPECT_EQ(0, breaker.wordStart()); // "hello" 47 EXPECT_EQ(6, breaker.wordStart()); // "world" 60 EXPECT_EQ(0, breaker.wordStart()); // "hel{SOFT HYPHEN}lo" 64 EXPECT_EQ(7, breaker.wordStart()); // "world" 76 EXPECT_EQ(0, breaker.wordStart()); 88 EXPECT_EQ(0, breaker.wordStart()); // "US¢" 92 EXPECT_EQ(4, breaker.wordStart()); // "JP¥" 105 EXPECT_EQ(0, breaker.wordStart()); 125 EXPECT_EQ(0, breaker.wordStart()); 128 EXPECT_EQ(7, breaker.wordStart()); [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | SpellChecker.java | 563 int wordStart = mWordIterator.preceding(start); 565 if (wordStart == BreakIterator.DONE) { 568 wordStart = mWordIterator.getBeginning(wordEnd); 571 wordEnd = mWordIterator.getEnd(wordStart); 614 int spellCheckStart = wordStart; 663 wordStart = spellCheckEnd; 665 while (wordStart <= end) { 666 if (wordEnd >= start && wordEnd > wordStart) { 674 if (wordStart < start && wordEnd > start) { 679 if (wordStart < en [all...] |
H A D | Editor.java | 5321 final int wordStart = getWordStart(offset); 5386 int wordBoundary = isStartHandle() ? wordStart : wordEnd; 5400 : wordStart + ((wordBoundary - wordStart) / 2); 5405 offset = wordStart; 5434 offset = isStartHandle() ? wordStart : wordEnd;
|
/frameworks/base/core/java/android/service/textservice/ |
H A D | SpellCheckerService.java | 402 int wordStart = wordIterator.getBeginning(wordEnd); 404 Log.d(TAG, "iterator: break: ---- 1st word start = " + wordStart + ", end = " 407 while (wordStart <= end && wordEnd != BreakIterator.DONE 408 && wordStart != BreakIterator.DONE) { 409 if (wordEnd >= start && wordEnd > wordStart) { 410 final CharSequence query = originalText.subSequence(wordStart, wordEnd); 413 wordItems.add(new SentenceWordItem(ti, wordStart, wordEnd)); 422 wordStart = wordIterator.getBeginning(wordEnd);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | StreamingTextView.java | 192 int wordStart = textStart + m.start(); 194 DottySpan span = new DottySpan(text.charAt(m.start()), wordStart); 195 displayText.setSpan(span, wordStart, wordEnd, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
Completed in 67 milliseconds