Max Kellermann
|
4964eda167
|
fs/StandardDirectory: use std::string_view instead of StringView
|
2022-07-04 15:04:31 +02:00 |
|
Max Kellermann
|
d256d3dabe
|
util/StringCompare: use std::string_view instead of StringView
|
2022-05-31 13:24:45 +02:00 |
|
Max Kellermann
|
a5fa43b526
|
fs/io: move to io/
|
2021-12-03 14:35:41 +01:00 |
|
Max Kellermann
|
f9c4d88b12
|
fs/io/TextFile: add interface LineReader
|
2021-12-03 14:20:29 +01:00 |
|
Rosen Penev
|
29ae84e199
|
manual braced init
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
2021-11-22 23:30:04 -08:00 |
|
Rosen Penev
|
250011f016
|
return by braced init list
shorter
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
2021-11-22 23:28:08 -08:00 |
|
Max Kellermann
|
c5bf7948ff
|
fs/StandardDirectory: use the RUNTIME_DIRECTORY environment variable
|
2021-10-26 09:30:16 +02:00 |
|
Max Kellermann
|
b9f7127691
|
fs/StandardDirectory: add GetAppRuntimeDir()
|
2021-10-26 09:30:16 +02:00 |
|
Max Kellermann
|
1e6f5f012c
|
fs/StandardDirectory: add GetUserRuntimeDir()
|
2021-10-26 09:30:16 +02:00 |
|
Max Kellermann
|
225d85fd9b
|
fs/StandardDirectory: use "if" with initializer
|
2021-10-26 09:29:57 +02:00 |
|
Max Kellermann
|
1bb22f118d
|
fs/StandardDirectory: add more pure/const attributes
|
2021-10-26 09:04:20 +02:00 |
|
Max Kellermann
|
f510564d9d
|
more [[gnu::...]] attributes
|
2021-10-13 12:07:05 +02:00 |
|
Max Kellermann
|
56997290d7
|
io/BufferedOutputStream: add method Discard()
|
2021-08-27 12:06:36 +02:00 |
|
Max Kellermann
|
d2f84f3df8
|
io/BufferedOutputStream: allow specifying the buffer size
|
2021-08-27 12:06:20 +02:00 |
|
Max Kellermann
|
9da28e5c73
|
io/BufferedOutputStream: more API documentation
|
2021-08-27 12:06:02 +02:00 |
|
Max Kellermann
|
d1f9b06f84
|
io/BufferedOutputStream: add WriteT()
|
2021-08-27 12:05:26 +02:00 |
|
Max Kellermann
|
f9f3306db9
|
io/BufferedOutputStream: use std::size_t
|
2021-08-27 12:05:06 +02:00 |
|
Max Kellermann
|
19d19cd737
|
fs/io/BufferedOutputStream: avoid including windows.h
Include the most specific header documented by MSDN instead.
|
2021-08-27 12:04:44 +02:00 |
|
Max Kellermann
|
bd893e6336
|
Merge tag 'v0.22.10'
release v0.22.10
|
2021-08-06 18:21:59 +02:00 |
|
Max Kellermann
|
1761fb14af
|
fs/Traits: add PathTraitsUTF8::IsAbsoluteOrHasScheme()
|
2021-08-05 20:09:06 +02:00 |
|
Max Kellermann
|
c97aabe43a
|
Merge branch 'v0.22.x'
|
2021-08-05 15:17:07 +02:00 |
|
Max Kellermann
|
809a18913a
|
fs/Traits: add overload GetParent(string_view)
|
2021-07-16 08:30:34 +02:00 |
|
Max Kellermann
|
6f539cfcd6
|
Partition, ...: use libfmt for logging
|
2021-06-24 21:40:11 +02:00 |
|
Max Kellermann
|
96707c0426
|
Merge tag 'v0.22.7'
release v0.22.7
|
2021-05-19 18:43:19 +02:00 |
|
Max Kellermann
|
bcf0fdd3a8
|
meson.build: define NOUSER on Windows for lighter windows.h
A few exceptions are needed for sources which include COM header
(directly or indirectly).
This fixes lots of shadow warnings, see
https://github.com/MusicPlayerDaemon/MPD/issues/1150
|
2021-05-19 18:02:49 +02:00 |
|
Max Kellermann
|
c64a3b5dbb
|
fs/Glob: un-inline the Windows version to reduce header dependencies
|
2021-05-19 17:41:23 +02:00 |
|
Max Kellermann
|
16c38c438f
|
fs/Glob: use defaulted move constructor
|
2021-05-19 17:40:23 +02:00 |
|
Max Kellermann
|
48cc4a6ced
|
fs/Glob: remove redundant #ifdefs
|
2021-05-19 17:40:03 +02:00 |
|
Max Kellermann
|
a169a05e41
|
win32, ...: avoid including windows.h
Include the most specific header documented by MSDN instead.
|
2021-05-19 17:25:32 +02:00 |
|
Max Kellermann
|
dc9103befe
|
util/AllocatedString: remove Null(), IsNull()
|
2021-03-04 18:05:29 +01:00 |
|
Max Kellermann
|
cfb7f8ab84
|
util/AllocatedString: rename to BasicAllocatedString
To make things simpler, AllocatedString is now a non-template class.
|
2021-03-04 18:03:56 +01:00 |
|
Max Kellermann
|
ddd9f20a0b
|
fs/io/GunzipReader: document that the constructor throws
|
2021-02-04 17:29:00 +01:00 |
|
Max Kellermann
|
065a0c09f8
|
fs/io/StdioOutputStream: include cleanup
|
2021-01-21 21:13:40 +01:00 |
|
Max Kellermann
|
12ff5a547f
|
fs/io/FileOutputStream: add noexcept
|
2021-01-21 21:04:19 +01:00 |
|
Max Kellermann
|
3bc45fbf68
|
util/AllocatedString: remove Null(), IsNull()
|
2021-01-21 20:12:05 +01:00 |
|
Max Kellermann
|
c70b63c183
|
util/AllocatedString: rename to BasicAllocatedString
To make things simpler, AllocatedString is now a non-template class.
|
2021-01-21 18:04:03 +01:00 |
|
Max Kellermann
|
5348f8c9c8
|
copyright year 2021
|
2021-01-01 19:54:28 +01:00 |
|
Max Kellermann
|
bf97d13d0b
|
fs/Traits: add GetPathSuffix()
|
2020-10-28 14:29:46 +01:00 |
|
Max Kellermann
|
6f1a4a73b7
|
fs/Traits: add GetFilenameSuffix()
|
2020-10-27 19:14:31 +01:00 |
|
Rosen Penev
|
e4dad42ca1
|
use std chr functions
The ones in std have overloads for const char/char.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
2020-05-30 13:36:53 +02:00 |
|
Max Kellermann
|
9815d10137
|
system/FileDescriptor: move to io/
|
2020-05-05 14:27:03 +02:00 |
|
Max Kellermann
|
97f7270aa8
|
fs/FileSystem: remove unused function FOpen()
|
2020-05-05 14:19:29 +02:00 |
|
Max Kellermann
|
0b3acc3eec
|
Merge tag 'v0.21.23'
release v0.21.23
|
2020-04-23 18:01:23 +02:00 |
|
Max Kellermann
|
fdb28eb0c4
|
fs/NarrowPath: preserve nullptr in Path operator
Fixes Path::IsNull() checks on Windows.
|
2020-04-23 17:10:28 +02:00 |
|
Max Kellermann
|
f13f66487a
|
fs/Charset: pass std::string_view to PathToUTF8()
|
2020-04-08 23:04:37 +02:00 |
|
Max Kellermann
|
0080eee857
|
fs/Traits: add Relative() overload with std::string_view
|
2020-04-03 19:45:01 +02:00 |
|
Max Kellermann
|
2429cc8778
|
fs/Traits: convert first Relative() parameter to std::string_view
|
2020-04-03 19:29:29 +02:00 |
|
Max Kellermann
|
7a58b8c3e8
|
fs/AllocatedPath: pass std::string_view to FromUTF8()
|
2020-04-03 16:21:41 +02:00 |
|
Max Kellermann
|
56b4b010d6
|
fs/FileSystem, ...: use AllocatedPath::FromFS(string_view)
|
2020-04-03 16:13:15 +02:00 |
|
Max Kellermann
|
a269fc988b
|
fs/Charset: enable RVO in FixSeparators()
|
2020-04-03 16:12:51 +02:00 |
|