diff options
author | Jean-François Rameau <jframeau@cvs.gnome.org> | 2005-06-03 04:53:01 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-06-03 04:53:01 +0800 |
commit | de0fd87c4d972b0890f579c05c6c63dd574f7c97 (patch) | |
tree | ec898d29b1002ea21d98aff713d1236979f41bac /embed/mozilla/EphyUtils.cpp | |
parent | 6a44754e277e0c7e84f989bd72d0050804d11591 (diff) | |
download | gsoc2013-epiphany-de0fd87c4d972b0890f579c05c6c63dd574f7c97.tar gsoc2013-epiphany-de0fd87c4d972b0890f579c05c6c63dd574f7c97.tar.gz gsoc2013-epiphany-de0fd87c4d972b0890f579c05c6c63dd574f7c97.tar.bz2 gsoc2013-epiphany-de0fd87c4d972b0890f579c05c6c63dd574f7c97.tar.lz gsoc2013-epiphany-de0fd87c4d972b0890f579c05c6c63dd574f7c97.tar.xz gsoc2013-epiphany-de0fd87c4d972b0890f579c05c6c63dd574f7c97.tar.zst gsoc2013-epiphany-de0fd87c4d972b0890f579c05c6c63dd574f7c97.zip |
nsEmbedString doesn't support Equals method. So add some bits to test two
2005-06-02 Jean-François Rameau <jframeau@cvs.gnome.org>
* embed/mozilla/EphyUtils.h:
* embed/mozilla/EphyUtils.cpp:
nsEmbedString doesn't support Equals method. So add some bits
to test two nsEmbedString. See https://bugzilla.mozilla.org/show_bug.cgi?id=296286
(merged from HEAD).
Diffstat (limited to 'embed/mozilla/EphyUtils.cpp')
-rw-r--r-- | embed/mozilla/EphyUtils.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/embed/mozilla/EphyUtils.cpp b/embed/mozilla/EphyUtils.cpp index 0888ed674..4abc6eb09 100644 --- a/embed/mozilla/EphyUtils.cpp +++ b/embed/mozilla/EphyUtils.cpp @@ -216,3 +216,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); +} |