Home | History | Annotate | Download | only in Lex

Lines Matching defs:Position

357   // Find the byte position of the truncation point.
358 const char *Position = Buffer->getBufferStart();
360 for (; *Position; ++Position) {
361 if (*Position != '\r' && *Position != '\n')
365 if ((Position[1] == '\r' || Position[1] == '\n') &&
366 Position[0] != Position[1])
367 ++Position;
368 ++Position;
373 Position += CompleteColumn - 1;
376 if (Position < Buffer->getBufferEnd()) {
378 CodeCompletionOffset = Position - Buffer->getBufferStart();
384 char *NewPos = std::copy(Buffer->getBufferStart(), Position, NewBuf);
386 std::copy(Position, Buffer->getBufferEnd(), NewPos+1);