Esempio n. 1
0
// Test if both paths refer to the same item
// Ignores case and slash direction
bool CTSVNPath::IsEquivalentToWithoutCase(const CTSVNPath& rhs) const
{
    // Try and find a slash direction which avoids having to convert
    // both filenames
    if(!m_sBackslashPath.IsEmpty())
    {
        // *We've* got a \ path - make sure that the RHS also has a \ path
        rhs.EnsureBackslashPathSet();
        return ArePathStringsEqual(m_sBackslashPath, rhs.m_sBackslashPath);
    }
    else
    {
        // Assume we've got a fwdslash path and make sure that the RHS has one
        rhs.EnsureFwdslashPathSet();
        return ArePathStringsEqual(m_sFwdslashPath, rhs.m_sFwdslashPath);
    }
}
Esempio n. 2
0
int CTSVNPath::CompareWithCase(const CTSVNPath& left, const CTSVNPath& right)
{
    left.EnsureFwdslashPathSet();
    right.EnsureFwdslashPathSet();
    return left.m_sFwdslashPath.Compare(right.m_sFwdslashPath);
}