Support underscores for mpz/mpq assignments from strings

Vincent Lefevre vincent at vinc17.net
Mon Jun 14 08:59:14 UTC 2021


On 2021-06-11 18:20:01 +0200, Hans Åberg wrote:
> But you can probably cannot change mpz_set_str,

I wasn't suggesting to change mpz_set_str, but add another function.
Changing mpz_set_str to add another argument for a list of separators
would break the API.

> because it is modelled on C behavior.

It isn't. In C, whitespace isn't a separator.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list