From: Chris Sosnin <k.sosnin@tarantool.org> To: tarantool-patches@dev.tarantool.org, sergepetrenko@tarantool.org, v.shpilevoy@tarantool.org Subject: [Tarantool-patches] [PATCH v2 0/2] decNumber utilites for SQL Date: Wed, 24 Jun 2020 19:53:30 +0300 [thread overview] Message-ID: <cover.1593017012.git.k.sosnin@tarantool.org> (raw) Changes in v2: - Instead of skipping whitespaces, allow FromString to parse valid beginning of the string and return pointer to the next character. Thus, we can check for whitespaces ourselves. This also requires lib/core changes: either pass a pointer to decimal_from_string and check for '\0' after every use, or refactor it so it works the same way and introduce something like strtodec. - Rename decIsWhole -> decIsInt. branch: https://github.com/tarantool/decNumber/tree/ksosnin/utilities-for-sql related issue: https://github.com/tarantool/tarantool/issues/4415 Chris Sosnin (2): Refactor decNumberFromString Add IsInt method for checking the fractional part of a number decNumber.c | 46 ++++++++++++++++++++++++++++++++++++++-------- decNumber.h | 27 ++++++++++++++------------- 2 files changed, 52 insertions(+), 21 deletions(-) -- 2.21.1 (Apple Git-122.3)
next reply other threads:[~2020-06-24 16:53 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-24 16:53 Chris Sosnin [this message] 2020-06-24 16:53 ` [Tarantool-patches] [PATCH v2 1/2] Refactor decNumberFromString Chris Sosnin 2020-06-24 22:22 ` Vladislav Shpilevoy 2020-06-25 14:21 ` Chris Sosnin 2020-06-24 16:53 ` [Tarantool-patches] [PATCH v2 2/2] Add IsInt method for checking the fractional part of a number Chris Sosnin 2020-06-24 22:23 ` Vladislav Shpilevoy 2020-06-25 14:22 ` Chris Sosnin 2020-06-25 21:04 ` [Tarantool-patches] [PATCH v2 0/2] decNumber utilites for SQL Vladislav Shpilevoy 2020-06-26 10:57 ` Serge Petrenko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=cover.1593017012.git.k.sosnin@tarantool.org \ --to=k.sosnin@tarantool.org \ --cc=sergepetrenko@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v2 0/2] decNumber utilites for SQL' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox