Re: Convert Charatcers
Re: Convert Charatcers
- Subject: Re: Convert Charatcers
- From: Ondra Cada <email@hidden>
- Date: Tue, 9 Mar 2004 20:49:39 +0100
On Tuesday, Mar 9, 2004, at 18:55 Europe/Prague, Allan Odgaard wrote:
Hint: if efficiency matters, you can a) sort the table alphabetically
and use binary search to find the code and b) use strncmp so that the
name passed to map_name_to_char doesn't need to be null-terminated.
c) instead of the plain-C solution go Cocoa, using an NSDictionary
created from a XML or plist-format file, which would also--well, IMHO,
of course--allow for much cleaner code and much easier maintenance and
upgrading.
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.