diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-23 20:06:00 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-23 20:06:00 -0400 |
commit | d0ba09f1e0f26fd3f449ca639abb71083ead9243 (patch) | |
tree | 858c9d8296a0183700c84e8324bd96deb4481c26 /ledger.h | |
parent | 8a7cee24c8b130b7d79b41b55b559bb6864d6fc6 (diff) | |
download | fork-ledger-d0ba09f1e0f26fd3f449ca639abb71083ead9243.tar.gz fork-ledger-d0ba09f1e0f26fd3f449ca639abb71083ead9243.tar.bz2 fork-ledger-d0ba09f1e0f26fd3f449ca639abb71083ead9243.zip |
greatly improved the flexibility of the "entry" command; no more bogus 1-liners
Diffstat (limited to 'ledger.h')
-rw-r--r-- | ledger.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -224,17 +224,13 @@ class journal_t accounts_cache.insert(accounts_pair(name, account)); return account; } - account_t * find_account(const std::string& name) const { - // With auto_create false, the other `find_account' will not - // change the object. - return const_cast<journal_t *>(this)->find_account(name, false); - } + account_t * find_account_re(const std::string& regexp); bool add_entry(entry_t * entry); bool remove_entry(entry_t * entry); entry_t * derive_entry(strings_list::iterator begin, - strings_list::iterator end) const; + strings_list::iterator end); bool valid() const; }; |