Thomas Fussell
04ebd7ef9d
fix warnings, bump copyright, fix typo, update npm libs
2021-08-22 08:23:18 -04:00
Thomas Fussell
70eb0d4e66
undef min and max, fixes #545
2021-02-21 08:00:10 -04:00
Thomas Fussell
0039eab40d
fix gcc 4.8.2 build problems
2021-01-03 09:33:43 -05:00
JCrawfy
9d9d5de511
add missing include
2020-04-26 15:27:51 +12:00
JCrawfy
d30e705f83
fix most (all?) the places where string<->double conversions are performed
...
strod / stod / to_string and all related friends are dependant on current locale for how they format a number
2020-04-25 14:00:58 +12:00
Joel Bodenmann
4e0333ac91
Remove superfluous semicolon
2020-03-25 13:16:02 +01:00
JCrawfy
f4d00acb9f
resolve warnings
2020-03-02 13:32:39 +13:00
JCrawfy
e8cb8d9bc6
fix compiler error
2020-03-01 23:23:20 +13:00
JCrawfy
ee593c2673
bug fixes, move the faster serialisation into the numeric header
...
serialisation ends up roughly 2x improvement going from sstream to snprintf
Run on (4 X 3500 MHz CPU s)
CPU Caches:
L1 Data 32K (x4)
L1 Instruction 32K (x4)
L2 Unified 262K (x4)
L3 Unified 6291K (x1)
-------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
-------------------------------------------------------------------------------------------------------------
RandFloatStrs/double_from_string_sstream 968 ns 977 ns 640000
RandFloatStrs/double_from_string_strtod 272 ns 270 ns 2488889
RandFloatStrs/double_from_string_strtod_fixed 272 ns 270 ns 2488889
RandFloatStrs/double_from_string_strtod_fixed_const_ref 273 ns 270 ns 2488889
RandFloatStrs/double_from_string_std_from_chars 193 ns 195 ns 3446154
RandFloatCommaStrs/double_from_string_strtod_fixed_comma_ref 272 ns 273 ns 2635294
RandFloatCommaStrs/double_from_string_strtod_fixed_comma_const_ref 276 ns 273 ns 2635294
RandFloats/string_from_double_sstream 1311 ns 1318 ns 497778
RandFloats/string_from_double_sstream_cached 1076 ns 1050 ns 640000
RandFloats/string_from_double_snprintf 601 ns 600 ns 1120000
RandFloats/string_from_double_snprintf_fixed 600 ns 600 ns 1120000
RandFloats/string_from_double_std_to_chars 117 ns 117 ns 5600000
RandFloatsComma/string_from_double_snprintf_fixed_comma 600 ns 600 ns 1120000
2020-03-01 22:01:14 +13:00
Thomas Fussell
e8ee585897
bump copyright year to 2020
2020-02-08 12:12:59 -05:00
Thomas Fussell
a560756b35
use clang-format, fix some small warnings
2019-12-26 12:03:12 -05:00
JCrawfy
613d7b6086
add missing include
2019-11-18 21:39:33 +13:00
JCrawfy
7621b2807a
fix wrong iterator bug
2019-11-18 20:43:58 +13:00
JCrawfy
d69a5dea75
scan and replace '.' with ',' when decimal separator is comma
2019-11-18 19:55:13 +13:00
JCrawfy
2eb88c23d6
move numeric utils into the public headers
...
resolves #398
2019-11-18 19:25:02 +13:00
Crzyrndm
b2a514fdbf
Include without relying on include directories
2018-08-18 17:55:32 +12:00
Crzyrndm
6aa10131a2
Fixing compile errors
2018-08-18 16:51:53 +12:00
Crzyrndm
19aad52500
fuzzy floating point comparison with optional
2018-08-18 16:31:56 +12:00
Crzyrndm
4487b988e7
Define fp equality function
...
-- Based on checks and defaults used by various testing frameworks (primarily GTest and Catch)
-- Moved the header into detail where it should have been to start with (oops)
2018-08-14 22:48:28 +12:00
Thomas Fussell
0af7ad88e1
Merge branch 'tasmail-master-shared-strings-performance' into dev
...
remove less than comparators
fix conflicts
2018-07-23 00:10:16 -04:00
Crzyrndm
9e981abe05
Only add diagnostics to GCC, Clang doesn't know the warning
2018-07-21 13:30:52 +12:00
Crzyrndm
fede2d3168
fix Clang CI warnings
2018-07-21 12:33:58 +12:00
Crzyrndm
ad24d9485d
Resolve CI warning about using an uninitialised variable
2018-07-21 12:19:15 +12:00
Crzyrndm
b004d0863c
address CI build failure
...
Issue #300
Previous CI fix didn't work, try with type aliasing instead
Issue #300
This reverts commit c87c0e3975
.
gcc 6 ok, msvc 14 choked
Issue #300
noexcept(condition) doesn't seem to work on msvs 2015
Issue #300
Merge remote-tracking branch 'origin/dev-optional-no-default-ctor' into dev-resolve-simple-issues
ensure uniqueness (uglify) and undefine compatibility macro
2018-07-21 12:19:15 +12:00
Crzyrndm
07d648fe8b
Implementation of optional using std::aligned_storage
...
Issue #300
-- test for no default constructor required enabled
-- Passes all tests locally
2018-07-21 12:19:15 +12:00
Crzyrndm
34e8f274de
optional exception check, primarily adding noexcept to signatures
...
-- also reordered the assignments in set/clear to ensure "has_value_" doesn't change if the assignment operator of T throws
2018-07-21 12:19:15 +12:00
Crzyrndm
eda102ee9d
testing current optional implementation against target behaviour
...
Issue #300
-- NOTE: construction from no_default currently wont compile so is commented out (L:113)
-- NOTE: dll import/export of template classes is probably unnecessary (the header is already required) and doesn't work in the general case (explicit instantiations are required for at least MSVC)
2018-07-21 12:19:14 +12:00
Crzyrndm
ddab6551b0
Add tests for functionality added to implement declared functionality
2018-07-13 17:14:07 +12:00
Crzyrndm
3d9e887d4a
unimplemented functions under utils/
2018-07-13 17:14:05 +12:00
Crzyrndm
a8fa6637fe
fix workbook::operator== always returning false, add tests for workbook::load
...
workbook::operator== was comparing the value of the raw pointer held by two std::unique_ptr's. By definition, this is always false in a well behaved program (if it's true, things go bang...). This then led to adding equality operators to nearly every other struct/class in xlnt to support workbook::operator==
workbook::load and the non-default ctors for loading data from a file are tested using the now functional equality operator
NOTE: a large number of copy ctors need updates/fixing. Many should be defaulted
2018-07-03 14:05:07 +12:00
Crzyrndm
e0d62b0835
Cleanup from review
2018-06-26 20:32:59 +12:00
Thomas Fussell
50850ffb8a
work on round-tripping for #230
2018-04-24 17:58:17 -04:00
Andrii Tkachenko
3246d602c2
xLnt. Implemented operator less for: rich_text, rich_text_run, color, font, optional.
2018-02-08 08:05:41 +01:00
Thomas Fussell
90633d0e8e
copyright year bump (2018)
2018-01-22 09:38:48 -05:00
Thomas Fussell
12007fe2d8
change cell numeric value type from long double to double, closes #201
2017-09-08 21:05:34 -04:00
Thomas Fussell
abdd1be7c8
move arrow logic to xlntpyarrow for now
2017-07-18 14:20:46 -07:00
Thomas Fussell
33399a5390
now we're getting somewhere! xlntpyarrow.xlsx2arrow returns an Arrow table that can be converted to a pandas DataFrame now
2017-07-15 10:39:36 -07:00
Thomas Fussell
5b95b3d463
begin implementing xlsx2arrow, fix msvc warnings, other stuff
2017-07-14 22:18:11 -07:00
Thomas Fussell
0be7563f8b
ignore arrow warnings and foward declare arrow
2017-07-12 00:03:26 -07:00
Thomas Fussell
5c033905fb
I see no good reason to make the arrow interface a separate lib. Let's just make it optionally compiled in the main target.
2017-07-11 20:55:08 -07:00
Thomas Fussell
be11002a93
fix clang warnings
2017-04-23 11:53:52 -04:00
Thomas Fussell
835e36d6ae
initial commit withou cxxtest
2017-04-13 14:51:35 -04:00
Thomas Fussell
46df18c12b
improve unicode tests
2017-04-13 10:58:40 -04:00
Thomas Fussell
83d2d18d1f
finish documenting all headers (well enough). closes #28
2017-03-30 23:52:57 -04:00
Thomas Fussell
e617d140f0
implement unhandled_switch_case exception
2017-03-20 19:20:48 -04:00
Thomas Fussell
82d5f623de
document some things
2017-01-26 19:57:19 -05:00
Thomas Fussell
a2bfdee2f2
intermediate commit
2017-01-21 09:04:10 -05:00
Thomas Fussell
72470c6371
hardcode enum serialization/deserialization, improve metadata property comsumption
2017-01-16 13:05:19 -05:00
Thomas Fussell
571c0103b5
continue work on workbook metadata properties
2017-01-15 19:08:57 -05:00
Thomas Fussell
45428c7f2b
update copyright dates for 2017
2017-01-02 20:35:18 -05:00