aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/EphyUtils.cpp')
-rw-r--r--embed/mozilla/EphyUtils.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/embed/mozilla/EphyUtils.cpp b/embed/mozilla/EphyUtils.cpp
index fb3bfabca..3d43cf11e 100644
--- a/embed/mozilla/EphyUtils.cpp
+++ b/embed/mozilla/EphyUtils.cpp
@@ -219,3 +219,16 @@ EphyUtils::CollatePrintSettings (const EmbedPrintInfo *info,
return NS_OK;
}
+
+PRBool
+EphyUtils::StringEquals (nsAString &s1, nsAString &s2)
+{
+ if (s1.Length() != s2.Length())
+ {
+ return FALSE;
+ }
+
+ return (memcmp (s1.BeginReading(),
+ s2.BeginReading(),
+ s2.Length() * sizeof (PRUnichar)) == 0);
+}