Bug 17010 - Need UTF16/String version of getPropertyID gperf lookup function
Summary: Need UTF16/String version of getPropertyID gperf lookup function
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-25 14:22 PST by Eric Seidel (no email)
Modified: 2008-01-25 14:22 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2008-01-25 14:22:12 PST
Need UTF16/String version of getPropertyID gperf lookup function

Currently callers need to do a malloc to convert from our UTF16 strings into an ascii string to do the lookup.  We could instead use a fixed-sized stack buffer to avoid the malloc.  If the string is larger than the buffer then we just return fail.  We can ASSERT that the buffer is large enough to hold any property name if we really want to get fancy.