gnucash stable: [gnc-numeric.cpp] shortcut parsing num/denom as gnc_numeric
Christopher Lam
clam at code.gnucash.org
Mon Mar 11 08:11:21 EDT 2024
Updated via https://github.com/Gnucash/gnucash/commit/27c16517 (commit)
from https://github.com/Gnucash/gnucash/commit/11da03bc (commit)
commit 27c16517e968479d98552486db7cf4bfa69a6615
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Sun Mar 10 15:06:13 2024 +0800
[gnc-numeric.cpp] shortcut parsing num/denom as gnc_numeric
The gnc_numeric is serialised as "num/denom" with no whitespace, and
denom > 0. This function takes advantage of std::from_chars to parse
it. The "num" serialisation is also optimised as a free side effect of
this function.
Summary of changes:
libgnucash/engine/gnc-numeric.cpp | 47 +++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
More information about the gnucash-patches
mailing list