The PalmOS routines StrCompare and StrCaselessCompare work by using tables
that are indexed by the value of a single character (i.e., 0-255). This is
so they can work correctly for "accented" and other special characters that
are outside of the A-z value range. For example, StrCaselessCompare calls
GetCharCaselessValue to get a pointer to this array of UInt8 values.
In my program, I need to get access to these values so that I can do
efficient searching; for various reasons, I can't just call the standard
StrCaselessCompare function and get things to work right. So, I'd like to
call GetCharCaselessValue (or GetCharSortValue) and access the array
directly, even though this is not a publicly documented API function.
Is this a good idea, or am I leaving myself open for trouble? Another
possibility is to duplicate the table(s) in my own code, although this adds
256 bytes per table to my program.
Doug Gordon
GHCS Software
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/