qt6-bb10/src/corelib/io
Karsten Heimrich 0564ebdb36 Unify behavior for long path or UNC prefix removal
Split the code out of QDir::fromNativeSeparator into a separate
reusable function to remove the above-mentioned prefixes. Fixes
and unifies behavior if the prefix was given with slashes instead
of backslashes. Add a couple more test cases.

Fixes: QTBUG-93868
Pick-to: 5.15 6.0 6.1
Change-Id: Ibd94ae283e2fb113f9c2db97475fbc7d89522bbf
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2021-06-05 01:16:06 +02:00
..
forkfd_qt.cpp forkfd: Add C11 and C++11 atomic support 2019-08-20 16:56:55 -07:00
qabstractfileengine.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qabstractfileengine_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qbuffer.cpp Doc/QtBase: replace some 0 with \nullptr 2020-01-26 17:52:02 +01:00
qbuffer.h Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qdataurl.cpp
qdataurl_p.h
qdebug.cpp Consolidate debug string generation 2021-05-31 21:50:07 +03:00
qdebug.h QDebug: code tidies 2021-05-12 23:04:57 +02:00
qdebug_p.h Consolidate debug string generation 2021-05-31 21:50:07 +03:00
qdir.cpp Unify behavior for long path or UNC prefix removal 2021-06-05 01:16:06 +02:00
qdir.h Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qdir_p.h Standardize on unique_ptr to hold QAbstractFileEngine 2019-07-28 12:16:22 +00:00
qdiriterator.cpp QDir(Iterator): code tidies 2021-05-16 11:42:05 +02:00
qdiriterator.h Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qfile.cpp QFile: code tidies 2021-05-17 11:07:35 +02:00
qfile.h Fix some qdoc warnings: std::filesystem::path getters 2020-09-22 20:56:07 +02:00
qfile_p.h QFile: code tidies 2021-05-17 11:07:35 +02:00
qfiledevice.cpp QFileDevice: code tidies 2021-05-14 21:26:40 +02:00
qfiledevice.h Turn QFileDevice::MemoryMapFlags into a proper QFlag 2020-09-02 21:53:42 +00:00
qfiledevice_p.h QFile: hold engine by unique_ptr 2019-07-19 17:08:45 +02:00
qfileinfo.cpp QFileInfo: code tidies 2021-05-13 17:57:50 +02:00
qfileinfo.h QFileInfo: mark constructors as explicit 2020-11-15 18:30:16 +01:00
qfileinfo_p.h Standardize on unique_ptr to hold QAbstractFileEngine 2019-07-28 12:16:22 +00:00
qfileselector.cpp Remove winrt 2020-06-06 20:25:49 +02:00
qfileselector.h
qfileselector_p.h
qfilesystemengine.cpp Port QDir, QFile from QStringRef to QStringView 2020-06-12 15:50:17 +02:00
qfilesystemengine_mac.mm Fix compile error on iOS 2020-05-02 18:53:03 +02:00
qfilesystemengine_p.h Avoid use of Q_UNUSED by eliminating the parameter names 2020-07-03 21:10:09 +02:00
qfilesystemengine_unix.cpp Call statx() with AT_NO_AUTOMOUNT 2021-04-08 17:57:36 +00:00
qfilesystemengine_win.cpp Unify behavior for long path or UNC prefix removal 2021-06-05 01:16:06 +02:00
qfilesystementry.cpp Unify behavior for long path or UNC prefix removal 2021-06-05 01:16:06 +02:00
qfilesystementry_p.h Unify behavior for long path or UNC prefix removal 2021-06-05 01:16:06 +02:00
qfilesystemiterator_p.h Use Q_DISABLE_COPY_MOVE for private classes 2018-12-12 07:23:54 +00:00
qfilesystemiterator_unix.cpp Convert a couple of APIs to use views 2020-10-06 11:16:36 +02:00
qfilesystemiterator_win.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qfilesystemmetadata_p.h QFileSystemMetaData: code tidies 2021-05-17 00:11:28 +02:00
qfilesystemwatcher.cpp Adjust code format, add space after 'if' 2020-11-16 12:53:37 +00:00
qfilesystemwatcher.h Modernize the "filesystemwatcher" feature 2018-09-27 08:18:55 +00:00
qfilesystemwatcher_fsevents.mm Fix race in QFseventsFileSystemWatcher destructor 2020-07-24 09:47:57 +00:00
qfilesystemwatcher_fsevents_p.h Use QList instead of QVector in corelib 2020-06-25 22:30:59 +02:00
qfilesystemwatcher_inotify.cpp fix: Optimize the performance of the inotify file system monitoring program。 2021-04-30 09:37:03 +00:00
qfilesystemwatcher_inotify_p.h Modernize the "filesystemwatcher" feature 2018-09-27 08:18:55 +00:00
qfilesystemwatcher_kqueue.cpp Introduce QSocketNotifier::activate(QSocketDescriptor, QSN::Type) 2020-04-16 13:52:11 +02:00
qfilesystemwatcher_kqueue_p.h Add override to addPaths and removePaths in kqueue filesystem watcher 2021-04-26 17:35:55 +00:00
qfilesystemwatcher_p.h Remove winrt 2020-06-06 20:25:49 +02:00
qfilesystemwatcher_polling.cpp Don't store iterators on QHash while erasing 2020-04-01 21:33:57 +01:00
qfilesystemwatcher_polling_p.h Modernize the "filesystemwatcher" feature 2018-09-27 08:18:55 +00:00
qfilesystemwatcher_win.cpp QFileSystemWatcher: use nullptr, instead of 0 2020-10-20 01:25:38 +02:00
qfilesystemwatcher_win_p.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qfsfileengine.cpp QFSFileEngine: code tidies 2021-05-17 00:11:26 +02:00
qfsfileengine_iterator.cpp
qfsfileengine_iterator_p.h
qfsfileengine_p.h Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qfsfileengine_unix.cpp Cleanup leftover QWS 2021-04-14 13:00:12 +09:00
qfsfileengine_win.cpp Windows QFSFileEngine: avoid some QFlags implicit conversions 2021-05-17 11:07:13 +02:00
qiodevice.cpp QIODevice: code tidies 2021-05-16 17:22:38 +02:00
qiodevice.h Documentation: Fix broken links to QIODeviceBase::OpenMode 2021-04-21 15:01:13 +02:00
qiodevice_p.h Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qiodevicebase.h Disentangle QIODevice dependencies 2020-08-15 20:55:31 +02:00
qipaddress.cpp Allow surrogate pairs for various "single character" locale data 2020-02-17 14:55:24 +01:00
qipaddress_p.h Make QIPAddressUtils::toString() const-correct for IPv6 2019-06-15 18:40:37 +02:00
qlockfile.cpp QLockFile: don't use the local timezone to compare file times 2021-04-26 04:42:30 +00:00
qlockfile.h Add std::chrono overloads for QLockFile functions 2021-04-01 15:38:08 +02:00
qlockfile_p.h
qlockfile_unix.cpp QLockFile/Unix: remove the " (deleted)" suffix from kernel-supplied names 2021-04-26 04:42:32 +00:00
qlockfile_win.cpp Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qloggingcategory.cpp Clarify that QLoggingCategory works independent of compiler build type 2021-05-27 14:28:17 +02:00
qloggingcategory.h Unify QLoggingCategory's two constructors 2020-07-27 11:19:59 +02:00
qloggingregistry.cpp Rename QLibraryInfo::location() to path() 2020-09-12 23:35:56 +02:00
qloggingregistry_p.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qnoncontiguousbytedevice.cpp Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qnoncontiguousbytedevice_p.h Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qprocess.cpp QProcess: untangle platform-specific details 2021-06-04 14:50:47 +03:00
qprocess.h QProcess: remove outdated references to QProcessManager 2020-12-09 19:30:04 +00:00
qprocess_darwin.mm
qprocess_p.h QProcess: untangle platform-specific details 2021-06-04 14:50:47 +03:00
qprocess_unix.cpp QProcess: untangle platform-specific details 2021-06-04 14:50:47 +03:00
qprocess_win.cpp QProcess: untangle platform-specific details 2021-06-04 14:50:47 +03:00
qresource.cpp Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08:00
qresource.h Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qresource_iterator.cpp
qresource_iterator_p.h
qresource_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qsavefile.cpp QSaveFile: code tidies 2021-05-16 17:22:30 +02:00
qsavefile.h
qsavefile_p.h
qsettings.cpp Use Core library for qmake instead of the Bootstrap library 2021-02-25 16:08:43 +01:00
qsettings.h Use Core library for qmake instead of the Bootstrap library 2021-02-25 16:08:43 +01:00
qsettings_mac.cpp Deprecate QVariant::Type 2020-10-23 09:58:57 +02:00
qsettings_p.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qsettings_wasm.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qsettings_win.cpp Deprecate QVariant::Type 2020-10-23 09:58:57 +02:00
qstandardpaths.cpp Remove usage of deprecated QStandardPaths::DataLocation 2020-10-23 11:36:47 +02:00
qstandardpaths.h Remove usage of deprecated QStandardPaths::DataLocation 2020-10-23 11:36:47 +02:00
qstandardpaths_android.cpp Fix build error when using -qtnamespace flag 2021-04-23 14:31:04 +03:00
qstandardpaths_haiku.cpp
qstandardpaths_mac.mm QStandardPaths: Add translation comment for macOS-specific item 2021-02-24 13:17:33 +01:00
qstandardpaths_unix.cpp QStandardPaths: Don't change permissions of XDG_RUNTIME_DIR 2020-11-30 19:16:21 +03:00
qstandardpaths_win.cpp Remove usage of deprecated QStandardPaths::DataLocation 2020-10-23 11:36:47 +02:00
qstorageinfo.cpp QStorageInfo: Make comparison operators hidden friends 2020-10-29 09:48:52 +01:00
qstorageinfo.h QStorageInfo: Make comparison operators hidden friends 2020-10-29 09:48:52 +01:00
qstorageinfo_mac.cpp
qstorageinfo_p.h Remove winrt 2020-06-06 20:25:49 +02:00
qstorageinfo_unix.cpp Fix a compiler warning on Android 2020-10-08 22:32:59 +02:00
qstorageinfo_win.cpp QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
qtemporarydir.cpp
qtemporarydir.h
qtemporaryfile.cpp Fix QSaveFile and QTemporaryFile issues with windows network shares 2021-05-11 13:22:44 +02:00
qtemporaryfile.h QTemporaryFile: purge deprecated API 2020-07-20 16:06:28 +02:00
qtemporaryfile_p.h Initialize variables to make coverity happy 2019-07-05 09:33:50 +02:00
qurl.cpp Fix QUrl::fromLocalFile with long path prefix 2021-05-19 21:38:38 +02:00
qurl.h QUrl: use QFlags::toInt / qToUnderlying 2021-05-23 21:54:29 +02:00
qurl_p.h Purge redundant recoding of URL fragments from QByteArray 2020-07-27 11:25:49 +02:00
qurlidna.cpp Try to workaround bogus compiler warning in gcc 9 for ARMv7 2020-07-06 21:31:40 +02:00
qurlquery.cpp Use (new) erase()/erase_if() algorithms 2020-12-05 00:47:44 +01:00
qurlquery.h Whitespace cleanup in corelib/io 2020-10-20 21:09:00 +02:00
qurlrecode.cpp Fix -Wmaybe-uninitialized warnings 2020-09-26 11:40:21 +02:00
qwindowspipereader.cpp QLocalSocket/Win: fix closed state detection in waitFor...() functions 2021-05-18 20:03:47 +00:00
qwindowspipereader_p.h QLocalSocket/Win: implement duplex communication in blocking mode 2021-05-06 21:06:44 +03:00
qwindowspipewriter.cpp QWindowsPipe{Reader|Writer}: restructure signals 2021-04-15 19:00:42 +00:00
qwindowspipewriter_p.h QWindowsPipe{Reader|Writer}: restructure signals 2021-04-15 19:00:42 +00:00