I wonder whether there is a general C library function which does
locale-conscious parsing of strings representing monetary amounts.
Such a function would be counterpart of strfmon() from monetary.h.
At any case 'man strfmon' has no information about such a function.
--- Omer
On Tue, 2011-04-26 at 05:15 +0700, Urmas wrote:
> From: "Rafal Kulaga" <rl.kulaga@gmail.com>
> Sent: Monday, April 25, 2011 10:09 PM
> To: "Martin Sevior" <msevior@gmail.com>; "abiword-dev" <abiword-dev@abisource.com>
> Subject: Re: [PATCH] Fix strange behavior when summing rows/columns containing strings
>
> > The solution you proposed seems reasonable to me - I will implement it
> > and send new patch, but I think the ultimate solution to this issue
> > would be to give the user ability to indicate the location of currency
> > symbol. Such solution would require more coding work, but can be
> > implemented without loss of compatibility.
>
> Please note that you must also recognize numbers which are written with locale-specific thousands separator (including whitespace), and also parentheses around the number marking it as negative.
-- If verbal consent is not obtained in triplicate, it is date rape. Asking permission constitutes harassment. My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.htmlDelay is the deadliest form of denial. C. Northcote Parkinson My own blog is at http://www.zak.co.il/tddpirate/ My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.htmlReceived on Tue Apr 26 06:15:13 2011
This archive was generated by hypermail 2.1.8 : Tue Apr 26 2011 - 06:15:13 CEST