summaryrefslogtreecommitdiff
path: root/src/value.cc
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Transactional assignments (i.e., confirmed balances) are working now.John Wiegley2008-09-141-8/+2
|
* Added in_place_round method to all Ledger numerical types.John Wiegley2008-09-141-0/+20
|
* Output balances when converting to strings, as this is needed by debuggingJohn Wiegley2008-08-291-1/+1
| | | | code sometimes.
* Removed some dead code and updated the binary streaming code for op_t andJohn Wiegley2008-08-171-15/+5
| | | | value_t.
* If a comparison between amounts fails, fall back and try to compareJohn Wiegley2008-08-141-1/+6
| | | | commodities instead.
* Allow value_t::reduce() on any data type.John Wiegley2008-08-141-4/+2
|
* The balance report is working again.John Wiegley2008-08-101-0/+2
|
* Fixed some spurious warnings in the non-debug build.John Wiegley2008-08-081-0/+4
|
* Moved around most of the files so that source code is in src/, documentationJohn Wiegley2008-08-051-0/+1773
is in doc/, etc.