KHolidays Library
Go to the documentation of this file.
39 #ifndef BISON_LOCATION_HH
40 # define BISON_LOCATION_HH
48 #line 1 "[Bison:b4_percent_define_default]"
53 #line 54 "location.hh"
84 inline void columns (
unsigned int count = 1)
90 inline void lines (
unsigned int count = 1)
113 inline const location operator+ (
const location& begin,
unsigned int width)
115 location res = begin;
121 inline location& operator+= (location& res,
unsigned int width)
129 operator== (
const location& loc1,
const location& loc2)
131 return loc1.begin == loc2.begin && loc1.end == loc2.end;
136 operator!= (
const location& loc1,
const location& loc2)
138 return !(loc1 == loc2);
147 inline std::ostream& operator<< (std::ostream& ostr,
const location& loc)
149 position last = loc.end - 1;
152 && (!loc.begin.filename
153 || *loc.begin.filename != *last.filename))
155 else if (loc.begin.line != last.line)
156 ostr <<
'-' << last.line <<
'.' << last.column;
157 else if (loc.begin.column != last.column)
158 ostr <<
'-' << last.column;
164 #line 1 "[Bison:b4_percent_define_default]"
169 #line 170 "location.hh"
171 #endif // not BISON_LOCATION_HH
location()
Construct a location.
Define the KHolidays::position class.
position end
End of the located region.
void lines(unsigned int count=1)
Extend the current location to the COUNT next lines.
void step()
Reset initial location to final location.
void columns(unsigned int count=1)
Extend the current location to the COUNT next columns.
void lines(int count=1)
(line related) Advance to the COUNT next lines.
void initialize(std::string *fn)
Initialization.
void initialize(std::string *fn)
Initialization.
position begin
Beginning of the located region.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:00 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.