diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-07 08:32:44 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-07 08:34:13 -0500 |
commit | c8641a6de65670b8833992c94c51a586a6434a74 (patch) | |
tree | eb59642cd3296a98ec4c7a73ca319b1c57c2f7ad /src/derive.cc | |
parent | 95a068f5e4b0e5c06fd9824f7f999248e28fee7b (diff) | |
download | ledger-c8641a6de65670b8833992c94c51a586a6434a74.tar.gz ledger-c8641a6de65670b8833992c94c51a586a6434a74.tar.bz2 ledger-c8641a6de65670b8833992c94c51a586a6434a74.zip |
Added support for Boost.Regex w/ ICU
This allows for correct searching of UTF-8 encoded strings, such as
lower-case versions of Russian words to find mixed-case words.
Diffstat (limited to 'src/derive.cc')
-rw-r--r-- | src/derive.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/derive.cc b/src/derive.cc index d3a7a37d..081b96b2 100644 --- a/src/derive.cc +++ b/src/derive.cc @@ -307,7 +307,7 @@ namespace { DEBUG("derive.xact", "Setting note from match: " << *added->note); #endif } else { - added->payee = tmpl.payee_mask.expr.str(); + added->payee = tmpl.payee_mask.str(); DEBUG("derive.xact", "Setting payee from template: " << added->payee); } @@ -403,14 +403,14 @@ namespace { account_t * acct = NULL; if (! acct) { - acct = journal.find_account_re(post.account_mask->expr.str()); + acct = journal.find_account_re(post.account_mask->str()); #if defined(DEBUG_ON) if (acct) DEBUG("derive.xact", "Found account as a regular expression"); #endif } if (! acct) { - acct = journal.find_account(post.account_mask->expr.str()); + acct = journal.find_account(post.account_mask->str()); #if defined(DEBUG_ON) if (acct) DEBUG("derive.xact", "Found (or created) account by name"); |