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