mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refs #787, utility functions for shared files
* entity to shared file, shared file for DB Info * CUrl path function * removed redundant code in CDbInfo::getEntity() and fixed CEntityFlags::singleEntityByName
This commit is contained in:
@@ -161,6 +161,11 @@ namespace BlackMisc
|
||||
return url;
|
||||
}
|
||||
|
||||
bool CUrl::pathEndsWith(const QString ending, Qt::CaseSensitivity cs) const
|
||||
{
|
||||
return m_path.endsWith(ending, cs);
|
||||
}
|
||||
|
||||
CUrl CUrl::withAppendedQuery(const QString &query) const
|
||||
{
|
||||
if (query.isEmpty()) { return *this; }
|
||||
|
||||
Reference in New Issue
Block a user