28 FilePos(
size_t _line,
size_t _col);
67 bool check(char32_t _val);
73 void set(
size_t _line,
size_t _col);
90 std::ostream& operator <<(std::ostream& _os,
const FilePos& _obj);
FilePos()
default contructor (set line and col at 0)
ejson namespace containing all function for JSON interpretor
Definition: Array.hpp:12
void clear()
Reset position at 0,0.
size_t getCol() const
Get the colomn position.
Position in the file of the original data.
Definition: FilePos.hpp:14
FilePos & operator=(const FilePos &_obj)
Asignment operator.
FilePos & operator+=(const FilePos &_obj)
Addition operator.
bool check(char32_t _val)
Check if the value is a new line and update internal property.
size_t getLine() const
Get the line number position.
FilePos & operator--()
Decrement the colomn position.
FilePos & operator++()
Increment the colomn position.
void newLine()
Find a new line & reset colomn at 0.