> > Jason Wrote: > > A couple questions about multibyte strings... > > Do all the characters in the same encoding use the same number of bytes per > > character, or is it possible for an encoding to use 3 bytes for one > > character, 1 for another, etc? > Jan Wrote: > Unicode (not used on Palm) uses constant char length 2 By, multibyte strings > have veriable char length. MB strings are shorter, but more difficult to > process.
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? 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? > > 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 see a > > 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 :) -Jason -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
