summaryrefslogtreecommitdiff
path: root/src/value.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Pushing null values into a sequence is legitimateJohn Wiegley2009-10-281-14/+6
|
* Removed unnused parameter to value_t::printJohn Wiegley2009-10-271-2/+1
|
* Added some extra storage checks to value_tJohn Wiegley2009-10-251-0/+5
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-1/+1
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-2/+3
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-0/+2
| | | | | | | This option reports only in terms of the annotated price of the commodities involved, otherwise it reports the amounts themselves. It can be used in conjunction with other reports, as it applies to the displayed amounts, not the actual amounts being calculated.
* The -X option now accepts price settingsJohn Wiegley2009-06-181-0/+4
| | | | | | | For example, if you had 100 AU (onces of gold) and wanted to report it in dollars, but at a price of $997 per ounce, you could now easily say: ledger bal -X '$,AU=$997'
* Move amount colorization deeper into the coreJohn Wiegley2009-06-161-0/+1
| | | | | | | | This is necessary in order to redden negative amounts correctly under all circumstances, such as component amounts of a multi-commodity balance. Fixes 727B2DF8-A2A1-4716-9C15-547F20D5F933
* Added a value_t macro: VALUE_OR_VEROJohn Wiegley2009-03-051-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+1
|
* Changed many assert() calls to VERIFY()John Wiegley2009-03-041-38/+36
|
* Gave round/unround/truncate all in_place_ variantsJohn Wiegley2009-02-271-3/+20
|
* Added a truncated() method for amounts and valuesJohn Wiegley2009-02-261-0/+1
| | | | | When an amount is truncated, it drops all of the extra precision and becomes exactly the value would have seen were it printed.
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-12/+12
| | | | | | | | | | | | | | | | 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".
* Fixed an alignment bug in value context displayJohn Wiegley2009-02-241-3/+1
|
* Added non-const value_t::begin and value_t::endJohn Wiegley2009-02-231-0/+12
|
* Push a sequence onto a sequence only appends nowJohn Wiegley2009-02-231-8/+1
| | | | Previously, it would merge sequences A and B.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-2/+3
| | | | | | | 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-3/+4
|
* Fixed a memory leak in value_t::storage_tJohn Wiegley2009-02-211-12/+16
|
* Restored the --budget optionJohn Wiegley2009-02-201-2/+2
|
* Moved amount_t::right_justify to simply ::justifyJohn Wiegley2009-02-191-2/+2
|
* Changed some value_t method namesJohn Wiegley2009-02-161-2/+2
| | | | | | | - simplify -> simplified - cast -> casted This is to differentiate them from in_place_cast and in_place_simplify.
* Removed "total_cost" valexpr, and value_t::costJohn Wiegley2009-02-151-2/+0
| | | | | Since cost reports are now calculated by setting the amount_ expression, there is no need to track a separate "total cost" entity.
* 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/+11
| | | | | For example: -S payee,-date sorts 1) ascending by payee, then 2) descending by date.
* Made (un)reduce rvalue methods more consistentJohn Wiegley2009-02-121-2/+2
| | | | | | They names were changed from reduce/unreduce to reduced/unreduced, since they return the modified value. This is more consistent with the naming of rounded/rounded.
* Added validation code for mask_t objects.John Wiegley2009-02-121-0/+2
|
* Moved value_t::set_type into value.cc, since it had grown.John Wiegley2009-02-121-18/+1
|
* Inlined value_t::_clear(), since it only had one caller.John Wiegley2009-02-121-17/+9
|
* A fix to the last fix.John Wiegley2009-02-101-1/+0
|
* A fix for users of Boost 1.35.John Wiegley2009-02-101-2/+17
|
* Changed value_t to use boost::any (more type-safe).John Wiegley2009-02-101-75/+80
|
* Removed the balance_pair_t type, since it's now an unneeded abstraction.John Wiegley2009-02-091-50/+11
| | | | | This type was a holdback from the days before the amount_expr was used everywhere to determine a transaction's value.
* amount_t::in_place_* now returns void. Added value_t::unreduce.John Wiegley2009-02-071-0/+7
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-7/+7
|
* Removed the binary caching code, and the XML, QIF and Gnucash parsers.John Wiegley2009-02-031-18/+0
|
* Fixed some warnings caused by using g++ 4.3.John Wiegley2009-02-021-1/+1
|
* Simplified error context handling.John Wiegley2009-02-021-1/+0
|
* Added support for metadata and tagging, and made regexs a first-class type.John Wiegley2009-02-011-0/+35
|
* Moved the pre-commands to their own file, and created new "args" command.John Wiegley2009-02-011-0/+10
|
* Values can now be streamed to XML, and all the types they refer to.John Wiegley2009-02-011-0/+9
|
* Rationals based math is now passing the unit tests.John Wiegley2009-01-311-5/+3
|
* Changed to using rational numbers instead of integer approximations.John Wiegley2009-01-301-0/+2
| | | | | As a result, dependency on the gdtoa was dropped, and dependency on mpfr was added.
* Removed all dependency on gdtoa.John Wiegley2009-01-301-8/+1
|
* Update Doxygen documentation. Still much more work to be done.John Wiegley2009-01-291-4/+3
|
* Changed around the ==, < and > operators in value.h to be correct.John Wiegley2009-01-281-4/+9
|
* Added is_nonzero and a stream-based read() method to value_t.John Wiegley2009-01-261-0/+5
|
* Corrected a parse-time optimization of "! CONSTANT".John Wiegley2009-01-221-0/+1
|
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|