Hi All,

I've written a parser which can natively parse any Unicode encoding form 
(UTF-8, UTF16 BE/LE, UTF-32 BE/LE). It takes iterators as input parameters, 
that is (const) pointers to uint8_t, uint16t and uint32_t which are selected 
according the Unicode encoding form of the given input text.

So, the interface looks basically as followed (global free function):

id parse(Iterator first, Iterator last);

where 'Iterator' is one of the mentioned iterator types above, and 'first' is 
the beginning of the text, and 'last' is an iterator representing the end of 
the text. 


Given an NSString as input source, what is the fastest method to "feed" the 
parser?

Also worth mentioning is the possible fact about hidden autoreleased memory 
objects, for instance when retrieving c-strings from the NSString object or 
when converting the NSString's internal encoding to some specified external 
form.


Thanks for tips,

Andreas



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to