summaryrefslogtreecommitdiff
path: root/src/format.cc
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* format_t::truncate support wide charactersKuang-che Wu2021-01-171-10/+10
| | | | also add unit tests
* Drop support for gcc 2 and earlierTim Landscheidt2019-01-251-2/+2
|
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Bump copyright notice to 2015Alexis Hildebrandt2014-12-271-1/+1
| | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
* Improve backwards compatibility with ledger2Martin Michlmayr2014-05-301-5/+6
| | | | | | | This brings some single character format strings in line with what they actually meant in ledger2. Bug fix for #755
* Cosmetic change - format code consistentlyMartin Michlmayr2014-05-181-1/+1
| | | | | Add a space between if and the opening bracket, between a closing round bracket and the following opening curly bracket, etc.
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Bump format parsing buffer to 64KJohn Wiegley2013-02-031-1/+1
|
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-3/+3
|
* Switch to using Boost.FormatJohn Wiegley2012-05-141-2/+2
|
* Don't allow trailing ws in abbrev. account segmentsJohn Wiegley2012-03-161-1/+11
| | | | Fixes #358
* Corrected several compile and link problemsJohn Wiegley2012-03-061-0/+2
|
* Use unique_ptr instead of std::auto_ptrJohn Wiegley2012-03-051-1/+1
|
* Make copying of format_t objects memory-safeJohn Wiegley2012-03-051-11/+0
|
* Don't copy the next pointer in element_t's copy ctorJohn Wiegley2012-03-051-2/+1
|
* Corrected copy of format_t objectsJohn Wiegley2012-03-051-0/+11
| | | | Copying of sub-elements was causing pointer overlap.
* Improvements to format parsingJohn Wiegley2012-03-021-98/+172
| | | | Fixes #337
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Introduced a new SCOPE expression terminalJohn Wiegley2012-02-201-1/+1
|
* Fixed many Clang type conversion warnings with static_castJohn Wiegley2012-02-171-6/+6
|
* Removed unneeded default casesJohn Wiegley2012-02-171-4/+0
|
* Change weighting of account-name abbreviationJohn Wiegley2010-06-211-1/+1
| | | | | Parent accounts are abbreviated even more, so that child accounts can show more text.
* Improved algorithm for abbreviating account namesJohn Wiegley2010-06-141-16/+139
|
* Changed display order of format exceptionsJohn Wiegley2010-06-131-0/+5
|
* Untabified all source filesJohn Wiegley2010-06-111-140/+140
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Optimization in the formatting of string valuesJohn Wiegley2009-11-141-2/+5
|
* Moving the #include of unistring.h into format.hJohn Wiegley2009-11-101-1/+0
|
* Fixes to the value expression parser and evaluatorJohn Wiegley2009-11-101-2/+8
|
* Redesigned the format_t classJohn Wiegley2009-11-091-35/+45
|
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-3/+2
|
* Fixed a display issue with the balance reportJohn Wiegley2009-10-271-29/+28
|
* Fixed overflow bug introduced by the warning fixesJohn Wiegley2009-10-251-2/+3
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-7/+7
|
* Correctly align amounts formatted as "%12(amount)"John Wiegley2009-06-281-1/+2
|
* Restored the --truncate option, added baseline testJohn Wiegley2009-06-211-6/+9
|
* 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/+2
|
* Cured several harmless compiler warningsJohn Wiegley2009-03-041-1/+2
|
* Allow special %{} formatting sequenceJohn Wiegley2009-03-031-17/+107
| | | | | | | | | | | | | | | Although %(amount) inserts an item's amount, it only does exactly that. There is no special consideration like stripping of lot details, or reduction to the base commodity, etc. For those things, and to make sure it was display in red if negative, the canonical form would be: %(ansify_if(justify(scrub(amount), 12, -1, true), red if amount < 0)) You can now use the special %{} form as an alternate to this: %12{amount, red if amount < 0} The two expand to the same underlying expression.
* Corrected warnings g++-4.3.3 was complaining aboutJohn Wiegley2009-02-281-1/+1
|
* Fixed a buffer overrunJohn Wiegley2009-02-271-3/+9
|
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-1/+1
| | | | | | | | | | | | | | | | 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".
* The Great Renaming, Part IIJohn Wiegley2009-02-231-9/+9
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Handle reporting widths that are too smallJohn Wiegley2009-02-211-1/+1
|