Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebCoreUnicode* functions question




Le 17 mai 05, à 18:56, Darin Adler a écrit :

On May 17, 2005, at 12:08 AM, Nicolas Normand wrote:

the functions <x-tad-bigger>WebCoreUnicodeDigitValueFunction</x-tad-bigger>, <x-tad-bigger>WebCoreUnicodeDirection</x-tad-bigger>, <x-tad-bigger>WebCoreUnicodeMirroredFunction</x-tad-bigger>, <x-tad-bigger>WebCoreUnicodeMirroredCharFunction</x-tad-bigger>, <x-tad-bigger>WebCoreUnicodeLowerFunction</x-tad-bigger> and <x-tad-bigger>WebCoreUnicodeUpperFunction</x-tad-bigger> are declared in WebCoreUnicode.h.

WebCoreUnicode.cpp doesn't contain any code for them. Where these functions are supposed to be defined ?
The concept here (kinda weak, likely to change in the future) is that the WebCore client sets the global function pointers to point to functions that implement these operations. Currently WebKit has functions for these -- I think the future direction here is that we'll just call ICU functions directly instead of having these WebCoreUnicode functions.

    -- Darin

Ok, so the correct way to use WebCoreUnicode is to do something like this (with the correct type cast, of course):
<x-tad-bigger> WebCoreUnicodeDirectionFunction = u_charDirection;</x-tad-bigger>// given that UCharDirection enum returned by u_charDirection is exactly matched to WebCoreUnicodeDirection enum<x-tad-bigger>
WebCoreUnicodeLowerFunction = u_tolower;
etc.
</x-tad-bigger>

Well, it works,

thanks Darin,

Nicolas Normand
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webcore-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webcore-dev/email@hidden

This email sent to email@hidden

References: 
 >WebCoreUnicode* functions question (From: Nicolas Normand <email@hidden>)
 >Re: WebCoreUnicode* functions question (From: Darin Adler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.