1 // Scintilla source code edit control 2 /** @file Position.h 3 ** Defines global type name Position in the Sci internal namespace. 4 **/ 5 // Copyright 2015 by Neil Hodgson <[email protected]> 6 // The License.txt file describes the conditions under which this software may be distributed. 7 8 #ifndef POSITION_H 9 #define POSITION_H 10 11 /** 12 * A Position is a position within a document between two characters or at the beginning or end. 13 * Sometimes used as a character index where it identifies the character after the position. 14 * A Line is a document or screen line. 15 */ 16 17 namespace Sci { 18 19 typedef ptrdiff_t Position; 20 typedef ptrdiff_t Line; 21 22 const Position invalidPosition = -1; 23 24 } 25 26 #endif 27