mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Pig: Added ::eos
This commit is contained in:
parent
351993b486
commit
7007dedb45
2 changed files with 8 additions and 0 deletions
|
@ -98,6 +98,12 @@ bool Pig::getDigits (int& result)
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Pig::eos () const
|
||||
{
|
||||
return _text[_cursor] == '\0';
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Pig::dump () const
|
||||
{
|
||||
|
|
|
@ -39,6 +39,8 @@ public:
|
|||
bool getDigit (int&);
|
||||
bool getDigits (int&);
|
||||
|
||||
bool eos () const;
|
||||
|
||||
std::string dump () const;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue