зеркало из https://github.com/mozilla/gecko-dev.git
Added a comment about nsString.Find() which is currently only case-significant. We really want to have a case-insignificant Find().
This commit is contained in:
Родитель
d2971bcdb2
Коммит
592a18a6b2
|
@ -341,6 +341,10 @@ FindDataSource::doMatch(nsIRDFLiteral *literal, char *matchMethod, char *matchTe
|
|||
if (nsnull == str) return(found);
|
||||
nsAutoString value(str);
|
||||
|
||||
// XXX Note: nsString.Find() is currently only case-significant.
|
||||
// We really want a case insignificant Find() for all
|
||||
// the comparisons below.
|
||||
|
||||
if (!PL_strcmp(matchMethod, "contains"))
|
||||
{
|
||||
if (value.Find(matchText) >= 0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче