Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2014-01-30 | fs/AllocatedPath: add conversion constructor from Path | Max Kellermann | 1 | -0/+2 | |
2014-01-30 | fs/DirectoryReader: GetEntry() returns Path, not AllocatedPath | Max Kellermann | 1 | -3/+3 | |
Reduce overhead, don't duplicate the string. | |||||
2014-01-30 | fs/AllocatedPath: add Build() overlays with Path arguments | Max Kellermann | 1 | -0/+10 | |
2014-01-24 | Config*: move to config/ | Max Kellermann | 1 | -1/+1 | |
2014-01-13 | copyright year 2014 | Max Kellermann | 20 | -20/+20 | |
2013-12-08 | fs: implemented standard directories API | Denis Krjuchkov | 2 | -0/+358 | |
2013-12-08 | TextFile: move to fs subsystem | Denis Krjuchkov | 2 | -0/+138 | |
2013-12-05 | fs/FileSystem.hxx: don't define CheckAccess() with mode on Windows | Denis Krjuchkov | 1 | -8/+2 | |
2013-12-05 | fs/FileSystem.hxx: add CheckAccess without mode parameter | Denis Krjuchkov | 1 | -0/+14 | |
2013-12-05 | fs/Traits.cxx: don't return drive path without trailing separator | Denis Krjuchkov | 1 | -0/+4 | |
2013-12-05 | fs/Traits.hxx: introduce PathTraitsXXX::IsDrive function | Denis Krjuchkov | 1 | -2/+16 | |
2013-12-05 | fs/Charset.cxx: replace \ with / when converting path to UTF-8 on Windows | Denis Krjuchkov | 1 | -3/+24 | |
2013-12-05 | fs/Traits.hxx: add shorter forms of PathTraitsXXX::Build() | Denis Krjuchkov | 1 | -0/+10 | |
2013-12-05 | fs/Traits.hxx: add PathTraitsUTF8::GetLength for consistency | Denis Krjuchkov | 1 | -0/+5 | |
2013-12-05 | fs/AllocatedPath.cxx: don't use g_path_get_dirname | Denis Krjuchkov | 1 | -1/+1 | |
2013-12-05 | fs/Traits: implement GetBase/GetParent/Build using templates | Denis Krjuchkov | 2 | -22/+88 | |
2013-12-05 | fs/Traits.cxx: don't return empty string if parent dir is root | Denis Krjuchkov | 1 | -3/+5 | |
2013-12-05 | fs/Traits.hxx: add FindLastSeparator function to PathTraitsXXX | Denis Krjuchkov | 1 | -0/+19 | |
2013-12-05 | fs/Traits: improve compatibility between PathTraitsFS and PathTraitsUTF8 | Denis Krjuchkov | 2 | -9/+14 | |
2013-12-05 | fs/Traits.hxx: add gcc_nonnull_all where applicable | Denis Krjuchkov | 1 | -3/+3 | |
2013-12-05 | fs/Traits: split PathTraits type into PathTraitsFS and PathTraitsUTF8 | Denis Krjuchkov | 7 | -66/+71 | |
2013-12-03 | AllocatedPath.hxx: use move constructor | Denis Krjuchkov | 1 | -1/+1 | |
2013-12-03 | fs/AllocatedPath: use PathTraits::BuildFS | Denis Krjuchkov | 2 | -10/+14 | |
2013-12-03 | fs/Traits.hxx: implement BuildFS() method | Denis Krjuchkov | 2 | -0/+35 | |
2013-12-03 | fs/Traits.hxx: move definition of AllocatedPath::string to PathTraits | Denis Krjuchkov | 2 | -2/+2 | |
2013-12-03 | fs/Traits.hxx: add GetLengthFS() | Denis Krjuchkov | 1 | -0/+6 | |
There is no GetLengthUTF8() because strlen or std::string::size() could be used instead. | |||||
2013-12-03 | fs/AllocatedPath.hxx: add FromFS(std::string) method | Denis Krjuchkov | 1 | -0/+11 | |
2013-12-03 | fs/Traits.hxx: don't use g_path_is_absolute | Denis Krjuchkov | 1 | -9/+7 | |
2013-12-03 | fs/Traits.hxx: simplify code | Denis Krjuchkov | 1 | -7/+3 | |
- Move definition of SEPARATOR_UTF8 out of #ifdef - Remove duplicated check in IsSeparatorUTF8 | |||||
2013-11-28 | include cleanup using iwyu | Max Kellermann | 7 | -16/+0 | |
2013-10-28 | *: use nullptr instead of NULL | Max Kellermann | 2 | -7/+7 | |
2013-10-21 | GetBaseUTF8 | Max Kellermann | 2 | -0/+62 | |
2013-10-21 | fs/AllocatedPath: don't include glib.h | Max Kellermann | 1 | -4/+0 | |
2013-10-17 | fs/Path: rename to AllocatedPath | Max Kellermann | 7 | -174/+392 | |
The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object. | |||||
2013-10-17 | fs/Path: move definitions to struct PathTraits | Max Kellermann | 4 | -90/+129 | |
2013-10-17 | fs/Path: include clenaup | Max Kellermann | 1 | -1/+1 | |
2013-10-17 | fs/Charset: GetFSCharset() returns "utf-8" by default | Max Kellermann | 2 | -3/+3 | |
If fs_charset is empty, i.e. we're using the default "utf-8", GetFSCharset() should return exactly that instead of an empty std::string. | |||||
2013-10-17 | fs/Charset: default filesystem charset is UTF-8 | Max Kellermann | 2 | -6/+7 | |
Implement a fast path for UTF-8 which leaves fs_charset empty, and don't assign a value to fs_charset if there's no configuration. | |||||
2013-10-17 | fs/Charset: don't allow nullptr arguments | Max Kellermann | 3 | -7/+8 | |
2013-10-17 | fs/Path: move configuration code to Config.cxx | Max Kellermann | 6 | -132/+271 | |
2013-10-17 | fs/Path: move path_domain to Domain.hxx | Max Kellermann | 4 | -5/+50 | |
2013-10-17 | fs/Path: make fs_charset static | Max Kellermann | 1 | -1/+1 | |
2013-10-17 | fs/Path: include cleanup | Max Kellermann | 1 | -1/+0 | |
2013-10-17 | fs/Limits: convert macro to "constexpr" | Max Kellermann | 3 | -12/+11 | |
2013-10-17 | fs/Path: move MPD_PATH_MAX to Limits.hxx | Max Kellermann | 4 | -14/+42 | |
2013-10-15 | gcc.h: rename to Compiler.h | Max Kellermann | 2 | -2/+2 | |
2013-10-15 | *: use WIN32 instead of G_OS_WIN32 | Max Kellermann | 1 | -3/+3 | |
2013-10-14 | fs/Path: add method IsAbsolute() | Max Kellermann | 1 | -0/+31 | |
2013-10-14 | fs/Path: add separator constants/functions | Max Kellermann | 2 | -2/+48 | |
2013-10-14 | fs/Path: add method RelativeFS() | Max Kellermann | 2 | -0/+31 | |
Move code from map_fs_to_utf8(). |