Hi Guys:

Based on Ken K.'s advice I use this myIsSingleByteEncoding () but I really
don't like it. Can you suggest a more elegant version? What about a nice
macro? Best regards, Paul

#############################################################################
extern Boolean myIsSingleByteEncoding (void)
{
 UInt32 ftrValue;

 if (FtrGet (sysFtrCreator, sysFtrNumCharEncodingFlags, &ftrValue) == errNone)
  {
  return ((Boolean) ((ftrValue & charEncodingOnlySingleByte) != 0));
  }
 else if (FtrGet (sysFtrCreator, sysFtrNumEncoding, &ftrValue) == errNone)
  {
  return ((Boolean) (ftrValue == charEncodingPalmLatin));
  }
 else
  {
  // must be an older version of Palm OS, thus has to be Latin
  return (true);
  }
}
#############################################################################


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to