Numbers are always the same in every encoding that you're going to run into on a Palm device.What about numbers? Is char s[10] = "-54" always the same byte string in any encoding, or is it possible that one encoding will not represent numberic characters (and/or '.', '-') the same way as ASCII?
No. And note that since the set of supported encodings can change over time, any such static data would soon be out-of-date. Thus you want to rely on the run-time support if possible.I see the TxtAttrib functions, but is there a header file or something somewhere that shows the number of bytes and value of each character for each supported encoding?
As Ben noted, StrPrintF() will work with any strings that you pass it, since a null byte is always interpreted as a string termination byte, and is never part of a multi-byte character.> > Is there a string library available anywhere for multibyte strings or does> everyone roll their own strlen, atoi, strtok, etc? It'd be nice to seea> class for multibyte chars that overload [] and provides string.h > functionality.AFAIK Text Manager API should provide what you need (although low level).Ya, but I wish there was a multibyte sprintf :)
%C (and %lc) are there to print a single character, which might have a value > 255.
-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
