Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v2 0/2] decNumber utilites for SQL
@ 2020-06-24 16:53 Chris Sosnin
  2020-06-24 16:53 ` [Tarantool-patches] [PATCH v2 1/2] Refactor decNumberFromString Chris Sosnin
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Chris Sosnin @ 2020-06-24 16:53 UTC (permalink / raw)
  To: tarantool-patches, sergepetrenko, v.shpilevoy

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)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-06-26 10:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 16:53 [Tarantool-patches] [PATCH v2 0/2] decNumber utilites for SQL Chris Sosnin
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox