summaryrefslogtreecommitdiff
path: root/src/value.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Added support for metadata and tagging, and made regexs a first-class type.John Wiegley2009-02-011-3/+58
|
* Values can now be streamed to XML, and all the types they refer to.John Wiegley2009-02-011-0/+57
|
* Rationals based math is now passing the unit tests.John Wiegley2009-01-311-33/+5
|
* Changed to using rational numbers instead of integer approximations.John Wiegley2009-01-301-0/+4
| | | | | As a result, dependency on the gdtoa was dropped, and dependency on mpfr was added.
* Changed around the ==, < and > operators in value.h to be correct.John Wiegley2009-01-281-5/+3
|
* Added is_nonzero and a stream-based read() method to value_t.John Wiegley2009-01-261-0/+28
|
* Corrected a parse-time optimization of "! CONSTANT".John Wiegley2009-01-221-0/+29
|
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|
* Can now determine the market value of balance pairs, even if stored withinJohn Wiegley2009-01-191-6/+9
| | | | value_t objects.
* Corrected a harmless warning.John Wiegley2008-09-191-0/+2
|