Lines Matching defs:pos
159 static int charAt(const Symbol *sym, size_t pos) {
161 if (pos >= str.size())
163 return str[pos];
175 // pos: The string index we are currently sorting on. Note that each symbol
176 // S contained in vec has the same prefix S[0...pos).
178 TrieNode *node, size_t lastPos, size_t pos) {
187 int pivot = charAt(pivotSymbol, pos);
191 int c = charAt(vec[k], pos);
202 if (lastPos != pos && (isTerminal || prefixesDiverge)) {
204 node->edges.emplace_back(pivotSymbol->getName().slice(lastPos, pos),
207 lastPos = pos;
210 sortAndBuild(vec.slice(0, i), node, lastPos, pos);
211 sortAndBuild(vec.slice(j), node, lastPos, pos);
218 // sortAndBuild(vec.slice(i, j - i), node, lastPos, pos + 1);
220 ++pos;