Merge pull request #485 from uu1101/uriprefix

Allow serving the web interface under a subpath
Fix #480
Fix #138
This commit is contained in:
Alexey Sokolov
2014-02-17 00:44:37 +00:00
32 changed files with 175 additions and 82 deletions

View File

@@ -1092,6 +1092,14 @@ bool CString::TrimSuffix(const CString& sSuffix) {
}
}
bool CString::StartsWith(const CString& sPrefix) const {
return Left(sPrefix.length()).Equals(sPrefix);
}
bool CString::EndsWith(const CString& sSuffix) const {
return Right(sSuffix.length()).Equals(sSuffix);
}
CString CString::TrimPrefix_n(const CString& sPrefix) const {
CString sRet = *this;