mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Enhancement - Object rename prior to integration
- T -> T2 - TDB -> TDB2
This commit is contained in:
parent
766c2d3620
commit
fe4c8f3a9d
12 changed files with 96 additions and 81 deletions
|
@ -53,12 +53,6 @@ Record::Record (const std::string& input)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Record& Record::operator= (const Record& other)
|
||||
{
|
||||
throw std::string ("unimplemented Record:operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
*this = other;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -88,25 +82,23 @@ std::string Record::composeF4 ()
|
|||
//
|
||||
// start --> name --> : --> " --> value --> " --> end
|
||||
// ^ |
|
||||
// |________________________________|
|
||||
// +------------- \s <--------------+
|
||||
//
|
||||
void Record::parse (const std::string& input)
|
||||
{
|
||||
Nibbler n (input);
|
||||
std::string line;
|
||||
if (n.skip ('[') && n.getUntil (']', line))
|
||||
if (n.skip ('[') &&
|
||||
n.getUntil (']', line) &&
|
||||
n.skip (']') &&
|
||||
n.depleted ())
|
||||
{
|
||||
Nibbler nl (line);
|
||||
|
||||
bool first = true;
|
||||
Att a;
|
||||
while (a.parse (nl))
|
||||
{
|
||||
if (first)
|
||||
first = false;
|
||||
else
|
||||
nl.skip (' ');
|
||||
|
||||
nl.skip (' ');
|
||||
(*this)[a.name ()] = a;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue