Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky

This commit is contained in:
jaggernaut@netscape.com
2003-07-14 07:37:39 +00:00
parent 2fda88e791
commit dd7e889afb
44 changed files with 132 additions and 191 deletions

View File

@@ -52,6 +52,7 @@
#include "nsIDOMDocumentView.h"
#include "nsIContent.h"
#include "nsTextEditUtils.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nsHTMLCSSUtils.h"
#include "nsColor.h"
@@ -1234,7 +1235,7 @@ nsHTMLCSSUtils::IsCSSEquivalentToHTMLInlineStyleSet(nsIDOMNode * aNode,
}
else if (nsEditProperty::tt == aHTMLProperty) {
aIsSet = Substring(valueString, 0, 9).Equals(NS_LITERAL_STRING("monospace"));
aIsSet = StringBeginsWith(valueString, NS_LITERAL_STRING("monospace"));
}
else if ((nsEditProperty::font == aHTMLProperty) && aHTMLAttribute