diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-24 20:33:52 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-24 20:37:31 -0400 |
commit | 8a29c03490d780ab3a23f552c15f2314a43f8a78 (patch) | |
tree | 7547625e1876435882c175282b81d19bb7f74a5e /src/report.h | |
parent | 011bf030a27f75c8b127b9b044a6580fc124a986 (diff) | |
download | fork-ledger-8a29c03490d780ab3a23f552c15f2314a43f8a78.tar.gz fork-ledger-8a29c03490d780ab3a23f552c15f2314a43f8a78.tar.bz2 fork-ledger-8a29c03490d780ab3a23f552c15f2314a43f8a78.zip |
Added "format" value expression function
This function evaluates formatting strings, returning a string. For
example:
format("%(amount)")
This is equivalent to "to_string(amount)".
Diffstat (limited to 'src/report.h')
-rw-r--r-- | src/report.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h index 51e35dfa..10138551 100644 --- a/src/report.h +++ b/src/report.h @@ -151,6 +151,7 @@ public: value_t fn_is_seq(call_scope_t& scope); value_t fn_strip(call_scope_t& scope); value_t fn_trim(call_scope_t& scope); + value_t fn_format(call_scope_t& scope); value_t fn_print(call_scope_t& scope); value_t fn_scrub(call_scope_t& scope); value_t fn_quantity(call_scope_t& scope); |