Lines Matching refs:Position
371 const char *Position = Buffer->getBufferStart(); in SetCodeCompletionPoint() local
373 for (; *Position; ++Position) { in SetCodeCompletionPoint()
374 if (*Position != '\r' && *Position != '\n') in SetCodeCompletionPoint()
378 if ((Position[1] == '\r' || Position[1] == '\n') && in SetCodeCompletionPoint()
379 Position[0] != Position[1]) in SetCodeCompletionPoint()
380 ++Position; in SetCodeCompletionPoint()
381 ++Position; in SetCodeCompletionPoint()
386 Position += CompleteColumn - 1; in SetCodeCompletionPoint()
392 if (Position - Buffer->getBufferStart() < SkipMainFilePreamble.first) in SetCodeCompletionPoint()
393 Position = Buffer->getBufferStart() + SkipMainFilePreamble.first; in SetCodeCompletionPoint()
396 if (Position > Buffer->getBufferEnd()) in SetCodeCompletionPoint()
397 Position = Buffer->getBufferEnd(); in SetCodeCompletionPoint()
400 CodeCompletionOffset = Position - Buffer->getBufferStart(); in SetCodeCompletionPoint()
406 char *NewPos = std::copy(Buffer->getBufferStart(), Position, NewBuf); in SetCodeCompletionPoint()
408 std::copy(Position, Buffer->getBufferEnd(), NewPos+1); in SetCodeCompletionPoint()