summaryrefslogtreecommitdiff
path: root/src/value.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow null values to be cast to int and stringJohn Wiegley2010-05-301-0/+19
|
* Comparison of boolean values is now allowedJohn Wiegley2010-05-301-0/+33
| | | | true > false
* Corrected error message text to be consistentJohn Wiegley2010-05-301-1/+1
|
* Allow expr_t& to be passed in a value_tJohn Wiegley2010-05-081-1/+30
|
* Corrected a case for value < valueJohn Wiegley2010-03-061-1/+3
|
* Change an exception test to a plain ifJohn Wiegley2010-03-051-4/+2
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Refactored some comparison helper classesJohn Wiegley2010-02-051-1/+1
|
* The Python web server now uses jQuery TablesorterJohn Wiegley2009-11-211-5/+12
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-3/+4
|
* Allow ! and - operators on sequence valuesJohn Wiegley2009-11-181-0/+14
|
* Fixed several time and date duration type usesJohn Wiegley2009-11-171-8/+14
|
* Optimization in the formatting of string valuesJohn Wiegley2009-11-141-1/+4
|
* Stylistic change: assert(0) -> assert(false)John Wiegley2009-11-131-1/+1
|
* Added --date, similar to --account and --payeeJohn Wiegley2009-11-111-0/+6
| | | | | | | This lets you do things like store a date as the value of a tag, then run: ledger --date='has_tag("Foo") ? to_date(tag("Foo")) : date' reg
* Added floored() and in_place_floor() methodsJohn Wiegley2009-11-111-0/+25
|
* Moving the #include of unistring.h into format.hJohn Wiegley2009-11-101-1/+1
|
* XML reporting now works via the "xml" commandJohn Wiegley2009-11-091-9/+8
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+54
|
* Report sought magnitude when balancing errors occurJohn Wiegley2009-11-051-0/+29
|
* Added missing call to _dup() in value_t::in_place_castJohn Wiegley2009-11-051-0/+2
|
* Change the value_t::POINTER type to value_t::SCOPEJohn Wiegley2009-10-301-11/+11
| | | | | scope_t pointers are the only kind that are ever stored in value objects, so there was no need to make it generic and use boost::any.
* Removed unnused parameter to value_t::printJohn Wiegley2009-10-271-16/+8
|
* Fixed a display issue with the balance reportJohn Wiegley2009-10-271-5/+5
|
* Fixed an error with post-simplified mathJohn Wiegley2009-10-271-1/+12
|
* If doing math between amount and balance, simplifyJohn Wiegley2009-10-271-3/+25
|
* Fixed some debug codeJohn Wiegley2009-10-271-3/+3
|
* Allow any amount to be multipled by anotherJohn Wiegley2009-10-271-7/+2
| | | | | The result carries the commodity of the first amount, or the second if the first had no commodity.
* Added debug codeJohn Wiegley2009-10-271-0/+3
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-8/+9
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-0/+11
|
* value_t::dump now faithfully represents stringsJohn Wiegley2009-06-281-1/+15
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-0/+12
| | | | | | | 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.
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-1/+3
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* value_t::in_place_unround wasn't doing it in-placeJohn Wiegley2009-06-211-2/+2
|
* The -X option now accepts price settingsJohn Wiegley2009-06-181-0/+21
| | | | | | | 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-7/+13
| | | | | | | | 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
* Allow integers to be multiplied with amountsJohn Wiegley2009-06-151-0/+1
| | | | Fixes other part of 04C5E1CA-1B39-4214-81C7-FD5AA785308F
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-0/+1
|
* 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
|