/frameworks/minikin/libs/minikin/ |
LineBreakerUtil.cpp | 35 size_t wordStart = 0; // The initial value will never be accessed, but just in case. 40 const U16StringPiece word = str.substr(Range(wordStart, i)); 42 hyphenator.hyphenate(word, out.data() + wordStart); 54 wordStart = i;
|
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();
|
WordBreaker.cpp | 269 ssize_t WordBreaker::wordStart() const {
|
/frameworks/minikin/tests/unittest/ |
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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
SentenceLevelAdapter.java | 146 int wordStart = wordIterator.getBeginningOfNextWord(originalText, start); 147 int wordEnd = wordIterator.getEndOfWord(originalText, wordStart); 148 while (wordStart <= end && wordEnd != -1 && wordStart != -1) { 149 if (wordEnd >= start && wordEnd > wordStart) { 150 final TextInfo ti = TextInfoCompatUtils.newInstance(originalText, wordStart, 151 wordEnd, cookie, originalText.subSequence(wordStart, wordEnd).hashCode()); 152 wordItems.add(new SentenceWordItem(ti, wordStart, wordEnd)); 154 wordStart = wordIterator.getBeginningOfNextWord(originalText, wordEnd); 155 if (wordStart == -1) [all...] |
/art/tools/checker/match/ |
line.py | 26 wordStart = 0 29 splitExpressions.append(expressions[wordStart:index]) 30 wordStart = index + 1 31 splitExpressions.append(expressions[wordStart:])
|
/frameworks/base/core/java/android/widget/ |
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 < end && wordEnd > end) [all...] |
Editor.java | [all...] |
/frameworks/base/core/java/android/service/textservice/ |
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);
|
/external/skia/tools/bookmaker/ |
spellCheck.cpp | 379 const char* wordStart = nullptr; 384 if (wordStart && wordEnd) { 387 string word(wordStart, (possibleEnd ? possibleEnd : wordEnd) - wordStart); 390 wordStart = nullptr; 419 SkASSERT(inQuotes == !wordStart); 434 if (!wordStart) { 435 wordStart = chPtr;
|
bookmaker.cpp | 623 const char* wordStart = fChar; 626 classID = string(wordStart, wordEnd - wordStart); 690 const char* wordStart = fChar; 692 if (fChar - wordStart > 0) { 693 fExternals.emplace_front(MarkType::kExternal, wordStart, fChar, fLineCount, fParent); 696 definition->fName = string(wordStart ,fChar - wordStart); [all...] |
mdOut.cpp | 59 const char* wordStart = t.fChar; 62 if (wordStart < start) { 66 wordStart = base; 68 result += string(wordStart, start - wordStart); 70 while (start > wordStart && '\n' == start[-1]) { 79 leadingSpaces = string(base, wordStart - base); 92 if (!t.eof() && '"' == t.peek() && start > wordStart && '"' == start[-1]) { 194 if ('.' == wordStart[0] && (distFromParam >= 1 && distFromParam <= 16)) { [all...] |
includeWriter.cpp | [all...] |
definition.cpp | 461 const char* wordStart = params.fChar; 468 result += string(wordStart, params.fChar - wordStart); [all...] |
bookmaker.h | 290 const char* anyOf(const char* wordStart, const char* wordList[], size_t wordListCount) const { 293 const size_t matchLen = fChar - wordStart; 296 if (strlen(word) == matchLen && !strncmp(wordStart, word, matchLen)) { [all...] |
/external/skqp/tools/bookmaker/ |
spellCheck.cpp | 390 const char* wordStart = nullptr; 394 if (wordStart && wordEnd) { 397 string word(wordStart, (possibleEnd ? possibleEnd : wordEnd) - wordStart); 400 wordStart = nullptr; 429 SkASSERT(inQuotes == !wordStart); 444 if (!wordStart) { 445 wordStart = chPtr;
|
mdOut.cpp | 59 const char* wordStart = t.fChar; 62 if (wordStart < start) { 66 wordStart = base; 68 result += string(wordStart, start - wordStart); 70 while (start > wordStart && '\n' == start[-1]) { 79 leadingSpaces = string(base, wordStart - base); 92 if (!t.eof() && '"' == t.peek() && start > wordStart && '"' == start[-1]) { 194 if ('.' == wordStart[0] && (distFromParam >= 1 && distFromParam <= 16)) { [all...] |
bookmaker.cpp | 525 const char* wordStart = fChar; 528 classID = string(wordStart, wordEnd - wordStart); 592 const char* wordStart = fChar; 594 if (fChar - wordStart > 0) { 595 fExternals.emplace_front(MarkType::kExternal, wordStart, fChar, fLineCount, fParent); 598 definition->fName = string(wordStart ,fChar - wordStart); [all...] |
includeWriter.cpp | [all...] |
definition.cpp | 461 const char* wordStart = params.fChar; 468 result += string(wordStart, params.fChar - wordStart); [all...] |
bookmaker.h | 289 const char* anyOf(const char* wordStart, const char* wordList[], size_t wordListCount) const { 292 const size_t matchLen = fChar - wordStart; 295 if (strlen(word) == matchLen && !strncmp(wordStart, word, matchLen)) { [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
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);
|
/packages/apps/Settings/src/com/android/settings/datetime/timezone/ |
BaseTimeZoneAdapter.java | 250 for (int wordStart = 0, wordLimit = mBreakIterator.next(); 252 wordStart = wordLimit, 255 && searchKey.startsWith(prefixString, wordStart)) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
AndroidContentAssist.java | [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
ArrowKeyMovementMethodTest.java | [all...] |