Bug 114288: Add nsStringComparator parameter to nsAString::Equals to mirror Compare and provide a way to do CaseInsensitive Equals. r=dbaron, sr=jst
git-svn-id: svn://10.0.0.236/trunk@110154 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -127,9 +127,9 @@ nsAString::SetIsVoid( PRBool )
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsAString::Equals( const char_type* rhs ) const
|
||||
nsAString::Equals( const char_type* rhs, const nsStringComparator& aComparator ) const
|
||||
{
|
||||
return Equals(nsDependentString(rhs));
|
||||
return Equals(nsDependentString(rhs), aComparator);
|
||||
}
|
||||
|
||||
|
||||
@@ -648,9 +648,9 @@ nsACString::SetIsVoid( PRBool )
|
||||
}
|
||||
|
||||
PRBool
|
||||
nsACString::Equals( const char_type* rhs ) const
|
||||
nsACString::Equals( const char_type* rhs, const nsCStringComparator& aComparator ) const
|
||||
{
|
||||
return Equals(nsDependentCString(rhs));
|
||||
return Equals(nsDependentCString(rhs), aComparator);
|
||||
}
|
||||
|
||||
nsACString::char_type
|
||||
|
||||
Reference in New Issue
Block a user