Lines Matching defs:Position
288 // Find the byte position of the truncation point.
289 const char *Position = Buffer->getBufferStart();
291 for (; *Position; ++Position) {
292 if (*Position != '\r' && *Position != '\n')
296 if ((Position[1] == '\r' || Position[1] == '\n') &&
297 Position[0] != Position[1])
298 ++Position;
299 ++Position;
304 Position += CompleteColumn - 1;
307 if (Position < Buffer->getBufferEnd()) {
309 CodeCompletionOffset = Position - Buffer->getBufferStart();
315 char *NewPos = std::copy(Buffer->getBufferStart(), Position, NewBuf);
317 std::copy(Position, Buffer->getBufferEnd(), NewPos+1);