Lines Matching defs:word
14 // Lex any amount of whitespace followed by a "word" (any sequence of
15 // non-whitespace characters) from the start of region [begin,end). If no word
28 llvm::StringRef word;
30 word = line.substr(0, 1);
32 word = line.take_until([](char c) {
38 line = line.drop_front(word.size());
39 return word;
46 llvm::StringRef word;
50 // Set to the completion point offset in word, or StringRef::npos if
51 // completion point not in word.
54 // Lexes a word and stores it in word. Returns a LexOrCompleteword<T> object
56 // completions if the lexed word contains the completion point.
58 : word(queryParser->lexWord()), stringSwitch(word),
60 outWord = word;
62 queryParser->completionPos <= word.data() + word.size()) {
63 if (queryParser->completionPos < word.data())
66 wordCompletionPos = queryParser->completionPos - word.data();
78 word.substr(0, wordCompletionPos)) {