[Webkit-unassigned] [Bug 45591] Add WTF::equal for StringImpl and char* with explicit length
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 25 17:33:13 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=45591
Alexey Proskuryakov <ap at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |CONFIGURATION CHANGED
--- Comment #4 from Alexey Proskuryakov <ap at webkit.org> ---
We have such functions now.
WTF_EXPORT_PRIVATE bool equal(const StringImpl*, const LChar*, unsigned);
WTF_EXPORT_PRIVATE bool equal(const StringImpl*, const UChar*, unsigned);
ALWAYS_INLINE bool equal(const StringImpl* a, ASCIILiteral b) { return equal(a, b.characters8(), b.length()); }
inline bool equal(const StringImpl* a, const char* b, unsigned length) { return equal(a, reinterpret_cast<const LChar*>(b), length); }
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220726/b09c64f0/attachment.htm>
More information about the webkit-unassigned
mailing list