Home
last modified time | relevance | path

Searched refs:match_offset (Results 1 – 11 of 11) sorted by relevance

/external/libtextclassifier/native/utils/grammar/parsing/
Dparser.cc101 CodepointIndex match_offset = input.tokens[input.context_span.first].start; in SortedSymbolsForInput() local
106 match_offset = 0; in SortedSymbolsForInput()
115 CodepointSpan{match_offset, match_offset}, in SortedSymbolsForInput()
116 /*match_offset=*/match_offset, ParseTree::Type::kDefault)); in SortedSymbolsForInput()
122 lexer_.AppendTokenSymbols(token.value, /*match_offset=*/match_offset, in SortedSymbolsForInput()
124 match_offset = token.end; in SortedSymbolsForInput()
130 CodepointSpan{match_offset, match_offset}, in SortedSymbolsForInput()
131 /*match_offset=*/match_offset, ParseTree::Type::kDefault)); in SortedSymbolsForInput()
139 nonterminals_->end_nt(), CodepointSpan{match_offset, match_offset}, in SortedSymbolsForInput()
140 /*match_offset=*/match_offset, ParseTree::Type::kDefault)); in SortedSymbolsForInput()
[all …]
Dlexer.h71 const int match_offset, StringPiece lexeme) in Symbol()
74 match_offset(match_offset), in Symbol()
81 match_offset(parse_tree->match_offset), in Symbol()
92 int match_offset; member
107 void AppendTokenSymbols(const StringPiece value, int match_offset,
Dchart.h39 explicit Iterator(const int match_offset, const ParseTree* value) in Iterator() argument
40 : match_offset_(match_offset), value_(value) {} in Iterator()
72 Iterator MatchesEndingAt(const int match_offset) const { in MatchesEndingAt() argument
73 const ParseTree* value = chart_[match_offset & kChartHashTableBitmask]; in MatchesEndingAt()
76 while (value != nullptr && (value->codepoint_span.second > match_offset)) { in MatchesEndingAt()
79 return Iterator(match_offset, value); in MatchesEndingAt()
Dparse-tree.h54 const int match_offset, const Type type) in ParseTree()
58 match_offset(match_offset) {} in ParseTree()
71 return codepoint_span.first != match_offset; in HasLeadingWhitespace()
90 int match_offset; member
Dmatcher.cc260 const int match_offset, StringPiece terminal) { in AddTerminal() argument
277 codepoint_span, match_offset, in AddTerminal()
278 /*whitespace_gap=*/(codepoint_span.first - match_offset), in AddTerminal()
293 codepoint_span, match_offset, in AddTerminal()
294 /*whitespace_gap=*/(codepoint_span.first - match_offset), in AddTerminal()
409 item->codepoint_span, item->match_offset, in ProcessPendingSet()
411 (item->codepoint_span.first - item->match_offset), in ProcessPendingSet()
422 for (Chart<>::Iterator it = chart_.MatchesEndingAt(item->match_offset); in ProcessPendingSet()
431 prev->match_offset, in ProcessPendingSet()
434 item->match_offset), // Whitespace gap is the gap in ProcessPendingSet()
Dlexer.cc31 void Lexer::AppendTokenSymbols(const StringPiece value, int match_offset, in AppendTokenSymbols() argument
37 int next_match_offset = match_offset; in AppendTokenSymbols()
Dmatcher.h87 void AddTerminal(const CodepointSpan codepoint_span, const int match_offset,
101 void ExecuteLhsSet(const CodepointSpan codepoint_span, const int match_offset,
/external/dng_sdk/source/
Ddng_string.cpp1555 int32 *match_offset) const in Contains()
1558 if (match_offset) in Contains()
1560 *match_offset = -1; in Contains()
1599 if (match_offset) in Contains()
1601 *match_offset = offset; in Contains()
1621 int32 match_offset = -1; in Replace() local
1625 &match_offset)) in Replace()
1636 strncpy (fData.Buffer_char () + match_offset, in Replace()
1645 strncpy (fData.Buffer_char () + match_offset, in Replace()
1649 const char *s = fData.Buffer_char () + match_offset + len2; in Replace()
[all …]
Ddng_string.h122 int32 *match_offset = NULL) const;
/external/llvm-project/lldb/source/Symbol/
DSymtab.cpp823 addr_t match_offset; member
/external/pcre/dist2/src/
Dpcre2test.c8017 PCRE2_SIZE match_offset = FLD(match_data, ovector)[0]; in process_data() local
8033 if (match_offset == end_offset) in process_data()
8036 if (match_offset <= dat_datctl.offset) in process_data()