Martchus
293b18b607
Mark destructor of NativeFileStream as override
2020-12-18 21:09:35 +01:00
Martchus
ee96e03043
Mark formattedPhraseString() as experimental
2020-11-25 17:51:43 +01:00
Martchus
c6095fbaf8
Add formattedPhraseString()
2020-11-18 00:37:43 +01:00
Martchus
07e5752af8
Provide "End" phrases within phraseString()
2020-07-07 12:13:31 +02:00
Martchus
6ed057b932
Add BinaryWriter::write overload for std::string_view
2020-06-26 22:06:44 +02:00
Martchus
2ecc0adceb
Add TODO for AdvancedIniFile
2020-06-04 20:49:25 +02:00
Martchus
668b149647
Initialize AdvancedIniFile::Field by default with IniFileFieldFlags::HasValue
...
The case that there's no equal sign is rather odd so don't make it the default.
2020-05-01 13:58:44 +02:00
Martchus
43550b6d55
Add AdvancedIniFile for better preserving certain aspects like comments
2020-05-01 13:47:06 +02:00
Martchus
08bfdeed5e
Document missing features / caveats of IniFile class
2020-03-15 01:01:34 +01:00
Martchus
1154ed4d1c
Improve exception messages of NativeFileStream
...
So one gets e.g. "open failed: Permission denied" instead of
just "open failed: iostream error".
2020-02-14 17:13:05 +01:00
Martchus
5020214498
Add function to get string representation of phrase
2020-01-14 21:27:46 +01:00
Martchus
c554aebf07
Use type aliases in IniFile
2019-12-27 01:46:21 +01:00
Martchus
07ae1588fa
Add writeFile()
...
Due to the required `file.close()` at then end this is easy
to get wrong. So let's add a helper.
2019-12-15 19:00:15 +01:00
Martchus
83180119c2
Add Phrases::InfoMessage
2019-11-17 22:26:13 +01:00
Martchus
9a95db3773
Add BinaryReader::readRemainingBytes()
2019-10-30 20:29:26 +01:00
Martchus
b693c72eb1
Fix old namespaces being mentioned in the documentation
2019-09-04 18:45:28 +02:00
Martchus
db4cba4fe5
Add NativeFileStream overloads to CopyHelper
...
In a future version these overloads could use native APIs such
as POSIX sendfile() to improve the speed. Libraries such as
tagparser will benefit from this change automatically when in
places where NativeFileStream is already used anyways.
2019-08-13 00:32:59 +02:00
Martchus
5bed21c9d2
Improve NativeFileStream
...
* Expose native file descriptor/handle to be able to
use native APIs like POSIX sendfile()
* Fix using Boost.Iostreams under Windows
* Make it compile
* Workaround issue with append flag
2019-08-13 00:28:25 +02:00
Martchus
6b1a9cec01
Fix build with NativeFileStream for Windows
2019-06-25 10:20:48 +02:00
Martchus
b48b2f5c06
Have everything in one top-level namespace
2019-06-10 21:56:46 +02:00
Martchus
c701fc25ee
Remove directoryEntries()
2019-06-05 23:50:38 +02:00
Martchus
579199fa73
Fix missing std:: in BinaryWriter::writeByte
2019-06-05 23:48:33 +02:00
Martchus
96dda1b862
Prevent use of extra buffer in BinaryReader::readTerminatedString()
2019-06-04 19:40:12 +02:00
Martchus
0f2f98393f
Allow inlining more BinaryReader/BinaryWriter functions
2019-06-04 19:27:49 +02:00
Martchus
d8a70bb795
Fix implicit signedness conversion
2019-06-04 19:12:08 +02:00
Martchus
f95e16bc80
Remove readMultibyteTerminatedString*() functions
2019-06-04 19:10:52 +02:00
Martchus
5a8029692b
Fix some Doxygen warnings
2019-06-01 15:07:08 +02:00
Martchus
9a50d2b8df
Remove types
2019-04-13 20:33:39 +02:00
Marius Kittler
132f936c57
Remove workaround for GCC Bug 66145
2019-04-13 20:33:39 +02:00
Marius Kittler
73ddc55702
Inline some methods of BinaryReader/BinaryWriter
2019-04-13 20:33:39 +02:00
Marius Kittler
07a74d5fa8
Rename openFromFileDescriptor() to open()
2019-04-13 20:33:39 +02:00
Marius Kittler
4449198711
Remove file handle from NativeFileStream
2019-04-13 20:33:39 +02:00
Martchus
62902f98e8
Remove settingsDirectory()
2019-04-13 20:33:39 +02:00
Martchus
da0cf4ff29
Fix build under Android platform >= 24
...
This alters the ABI but it is ok since with that config
a build was previously impossible anyways.
2019-02-04 00:40:50 +01:00
Martchus
ec39e2f5d2
Add Phrases::SubError and Phrases::SubWarning
2018-11-11 22:34:38 +01:00
Martchus
82816d7653
Fix creating new file if using NativeFileStream with ios_base::out
2018-11-02 23:06:30 +01:00
Martchus
7c4cd6ee7d
Set permissions to 644 when creating a file via open()
2018-10-07 19:16:41 +02:00
Martchus
7b04bd8ef5
Fix building NativeFileStream with libc++
...
Note: std::iostream has no default c'tor according to
the standard (although a protected default c'tor is
provided by libstdc++).
2018-10-07 19:13:57 +02:00
Martchus
5356d793fc
Make all tests pass under Windows
...
* Workaround some issues
* Disable some tests (better than not running tests
at all)
2018-10-03 22:37:55 +02:00
Martchus
8e3c40abb5
Make conversion from multi byte to wide string generic
2018-10-03 21:26:41 +02:00
Martchus
c1cc495908
Fix typo
2018-09-30 14:23:37 +02:00
Martchus
e023c1af79
Declare throwIoFailure() as [[noreturn]]
2018-09-30 13:56:25 +02:00
Martchus
749eea2ab6
Support NativeFileStream via Boost.Iostreams
...
So it can also be enabled when not using libstdc++.
2018-09-30 13:55:30 +02:00
Martchus
2186ce15d9
Use using instead of typedef
2018-09-16 00:25:16 +02:00
Martchus
5c9a834236
Implement NativeFileStream under Unix/Linux/Android as well
...
* Like the Windows implementation this is disabled by default and
can be enabled via compile-time switch which will affect the ABI.
* Add support for opening a file from a file descriptor.
2018-09-05 00:21:40 +02:00
Martchus
61f7ce90e1
Improve coding style (after running clang-tidy)
2018-08-12 22:09:22 +02:00
Martchus
d82e7bb869
Fix warning regarding multi-line comment
2018-08-04 15:20:54 +02:00
Martchus
0c7e7eb91d
Fix BinaryReader::read(int32 &one32BitInt)
2018-06-21 23:25:14 +02:00
Martchus
5deb077fe5
Extend Binary{Reader,Writer} to ease binary (de)serialization
...
To implement reflection-enabled binary (de)serialization
in https://github.com/Martchus/reflective-rapidjson .
2018-06-20 23:07:08 +02:00
Martchus
1aa8b387e1
Apply clang-format
2018-05-08 00:35:51 +02:00