Closed Bug 924012 Opened 11 years ago Closed 11 years ago

Provide a HashString version for char16_t if needed

Categories

(Core :: MFBT, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

Attached patch Patch (v1)Splinter Review
No description provided.
Attachment #814017 - Flags: review?(jwalden+bmo)
Comment on attachment 814017 [details] [diff] [review] Patch (v1) Review of attachment 814017 [details] [diff] [review]: ----------------------------------------------------------------- ::: mfbt/HashFunctions.h @@ +331,5 @@ > +MOZ_WARN_UNUSED_RESULT > +inline uint32_t > +HashString(const char16_t* str) > +{ > + return detail::HashUntilZero(str); I'm mildly saddened that we even have a hash-til-zero, but I guess this is symptomatic of our not considering ranges as pointer-plus-length in general, not something particular here. :-\
Attachment #814017 - Flags: review?(jwalden+bmo) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: