commit | e67096ce88492c28d6755e698f95089c8e5e9430 | [log] [tgz] |
---|---|---|
author | Dr. Colin Hirsch <github@colin-hirsch.net> | Wed Jun 12 11:19:08 2019 +0200 |
committer | Florian Loitsch <florian@loitsch.com> | Wed Jun 12 11:19:08 2019 +0200 |
tree | e86f1e26fd7816755632d76804f52764092e8731 | |
parent | 32c402668c851334ff0d1fdd5144fae9bfb55920 [diff] |
Split Strtod() (#106) Add `StrtodTrimmed` method, exposing a later stage of the conversion pipeline. Some tools can do the first stage outside of the double-conversion library and would prefer not to pay the cost of doing it again.
https://github.com/google/double-conversion
This project (double-conversion) provides binary-decimal and decimal-binary routines for IEEE doubles.
The library consists of efficient conversion routines that have been extracted from the V8 JavaScript engine. The code has been refactored and improved so that it can be used more easily in other projects.
There is extensive documentation in double-conversion/double-conversion.h
. Other examples can be found in test/cctest/test-conversions.cc
.
This library can be built with scons or cmake. The checked-in Makefile simply forwards to scons, and provides a shortcut to run all tests:
make make test
The easiest way to install this library is to use scons
. It builds the static and shared library, and is set up to install those at the correct locations:
scons install
Use the DESTDIR
option to change the target directory:
scons DESTDIR=alternative_directory install
To use cmake run cmake .
in the root directory. This overwrites the existing Makefile.
Use -DBUILD_SHARED_LIBS=ON
to enable the compilation of shared libraries. Note that this disables static libraries. There is currently no way to build both libraries at the same time with cmake.
Use -DBUILD_TESTING=ON
to build the test executable.
cmake . -DBUILD_TESTING=ON make test/cctest/cctest --list | tr -d '<' | xargs test/cctest/cctest