summaryrefslogtreecommitdiff
path: root/src/value.cc
Commit message (Collapse)AuthorAgeFilesLines
* Changed many assert() calls to VERIFY()John Wiegley2009-03-041-3/+0
|
* Added a "null" value for value expressionsJohn Wiegley2009-03-031-1/+1
|
* Gave round/unround/truncate all in_place_ variantsJohn Wiegley2009-02-271-18/+24
|
* Print better error msg if evaluating mask as boolJohn Wiegley2009-02-261-0/+7
|
* Added a truncated() method for amounts and valuesJohn Wiegley2009-02-261-0/+23
| | | | | When an amount is truncated, it drops all of the extra precision and becomes exactly the value would have seen were it printed.
* Allow sequences to be rounded and unroundedJohn Wiegley2009-02-251-0/+12
| | | | | The result is that every member of the sequence has the given operation applied.
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-28/+25
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* Allow any two amount values to be dividedJohn Wiegley2009-02-241-6/+2
|
* Allow sequences to be compared to 0John Wiegley2009-02-231-0/+40
| | | | It is true if every member of the sequence passes the test.
* Corrects to code that compares balances to zeroJohn Wiegley2009-02-231-12/+12
|
* Expr (a,b)+(c,d) is now equivalent to (a+c,b+d)John Wiegley2009-02-231-7/+17
|
* A sequence is false if all it contains is falseJohn Wiegley2009-02-231-1/+7
|
* Allow date and datetime values to inter-convertJohn Wiegley2009-02-221-0/+6
|
* --exchange option now accepts multiple commoditiesJohn Wiegley2009-02-221-3/+3
| | | | They must be separated by a comma, and all whitespace is ignored.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-9/+11
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Fixed the way values are justified for printingJohn Wiegley2009-02-221-6/+12
|
* Allow balances to be rounded and unroundedJohn Wiegley2009-02-221-0/+4
|
* Allow balance values to be compared < or > 0John Wiegley2009-02-211-0/+42
|
* Fixed a memory leak in value_t::storage_tJohn Wiegley2009-02-211-2/+2
|
* Justify integers correctly when printingJohn Wiegley2009-02-211-6/+8
|
* Allow date and datetime values to be formatted into stringsJohn Wiegley2009-02-201-0/+19
|
* Simplify account total values before comparisonJohn Wiegley2009-02-191-3/+2
| | | | | | This way, if two account values are BALANCE types containing only a single AMOUNT, then it will do the sorting comparison of the amounts -- since otherwise balances are ignored for the purposes of sorting.
* Fixed another sort issueJohn Wiegley2009-02-191-1/+1
|
* A key fix to the ways accounts were sortedJohn Wiegley2009-02-191-9/+16
| | | | Comparing integer < amount was doing the reverse comparison.
* Allow for sorting of the balance reportJohn Wiegley2009-02-191-1/+4
| | | | | | Sorting is repeated at each level of the hierarchy, unless --flat was specified in which case it applies to the entire applicable accounts list.
* Moved amount_t::right_justify to simply ::justifyJohn Wiegley2009-02-191-5/+12
|
* Always print zero amounts as "0"John Wiegley2009-02-161-1/+4
|
* Print <POINTER> if value_t::is_pointer()John Wiegley2009-02-161-0/+4
|
* If a boolean value is to an amount, use 1 or 0John Wiegley2009-02-151-0/+3
|
* Removed "total_cost" valexpr, and value_t::costJohn Wiegley2009-02-151-16/+0
| | | | | Since cost reports are now calculated by setting the amount_ expression, there is no need to track a separate "total cost" entity.
* xact metadata searches get passed up to the entryJohn Wiegley2009-02-141-0/+3
| | | | | | That is, if a metadata tag cannot be found in a transaction, look in the parent entry to see if it was set there. Transactions "inherit" notational details from their entries.
* The formatting code no longer justifies valuesJohn Wiegley2009-02-131-0/+3
| | | | | This is done in the value code, which knows -- based on the value's type -- how best to apply the justification.
* Renamed a function to sort_value_is_less_thanJohn Wiegley2009-02-121-2/+2
| | | | | The purpose was to provided a clearer relationship between the function name and its expected arguments.
* Sorting expr now uses "-" to indicate descendingJohn Wiegley2009-02-121-0/+21
| | | | | For example: -S payee,-date sorts 1) ascending by payee, then 2) descending by date.
* Re-enabled some code, and removed a bunch of deadwood.John Wiegley2009-02-121-1/+1
|
* Fixed a typo which was causing all boolean values to show as "false".John Wiegley2009-02-121-5/+5
|
* Moved value_t::set_type into value.cc, since it had grown.John Wiegley2009-02-121-0/+20
|
* Properly handle UTF-8 characters in commodity strings.John Wiegley2009-02-121-1/+1
|
* Changed value_t to use boost::any (more type-safe).John Wiegley2009-02-101-164/+23
|
* Fixed a case where adding an amount to an integer failed.John Wiegley2009-02-091-0/+4
|
* Removed the balance_pair_t type, since it's now an unneeded abstraction.John Wiegley2009-02-091-273/+0
| | | | | This type was a holdback from the days before the amount_expr was used everywhere to determine a transaction's value.
* Added support for value expression definitions.John Wiegley2009-02-081-1/+1
| | | | | | | | Example: ] expr f(x) := x + 100 ] expr f(100) 200
* amount_t::in_place_* now returns void. Added value_t::unreduce.John Wiegley2009-02-071-0/+19
|
* Don't allow regexps to be evaluated in a boolean context.John Wiegley2009-02-071-5/+3
|
* Allow regular expressions to be "printed".John Wiegley2009-02-071-0/+4
|
* Display value booleans as 0 and 1.John Wiegley2009-02-051-4/+1
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-36/+43
|
* Don't allow boolean operations to be applied to masks.John Wiegley2009-02-031-7/+0
|
* Removed the binary caching code, and the XML, QIF and Gnucash parsers.John Wiegley2009-02-031-146/+0
|
* Don't allow implicit matching of strings against masks, =~ is needed.John Wiegley2009-02-021-4/+0
|