summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/runtime/UString.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/runtime/UString.h')
-rw-r--r--JavaScriptCore/runtime/UString.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/JavaScriptCore/runtime/UString.h b/JavaScriptCore/runtime/UString.h
index a97e0d7..4364021 100644
--- a/JavaScriptCore/runtime/UString.h
+++ b/JavaScriptCore/runtime/UString.h
@@ -202,7 +202,10 @@ namespace JSC {
return !JSC::operator==(s1, s2);
}
- int compare(const UString&, const UString&);
+ inline int codePointCompare(const UString& s1, const UString& s2)
+ {
+ return codePointCompare(s1.rep(), s2.rep());
+ }
// Rule from ECMA 15.2 about what an array index is.
// Must exactly match string form of an unsigned integer, and be less than 2^32 - 1.