Berthold Stoeger cf7c54bd56 core: turn a memblock in the parser to std::string
This avoid memory-management troubles. Had to convert a few
of the parsers (cochran, datatrak, liquivision) to C++.
Also had to convert libdivecomputer.c. This was less
painful than expected.

std::string is used because parts of the code assumes
that the data is null terminated after the last character
of the data. std::string does precisely that.

One disadvantage is that std::string clears its memory
when resizing / initializing. Thus we read the file onto
freshly cleared data, which some might thing is a
performance regression. Until someone shows me that this
matters, I don't care.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-03-10 11:01:42 +13:00
..
2024-01-07 16:01:55 -08:00
2024-03-10 11:01:42 +13:00
2024-03-10 11:01:42 +13:00
2024-02-23 09:46:16 -08:00
2017-04-29 13:32:55 -07:00
2024-01-17 14:23:19 -08:00
2020-09-29 16:13:03 -07:00
2022-11-08 10:43:47 -08:00
2023-06-12 08:04:30 -07:00
2021-07-23 11:22:43 -07:00
2021-07-23 11:22:43 -07:00
2018-10-21 19:55:09 +03:00
2023-04-14 21:20:23 +02:00
2024-01-17 14:23:19 -08:00
2024-01-17 14:23:19 -08:00
2024-03-10 11:01:42 +13:00
2024-03-10 11:01:42 +13:00
2024-01-23 19:24:53 +01:00
2022-03-12 08:28:32 -08:00
2023-04-14 21:20:23 +02:00
2024-01-23 19:24:53 +01:00
2024-03-10 11:01:42 +13:00
2019-12-13 07:04:00 -05:00
2024-03-10 11:01:42 +13:00
2024-03-10 11:01:42 +13:00
2024-03-07 07:55:23 -05:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2024-01-06 10:55:24 -08:00