Dave Carrigan schrieb:
I need to create databases on the desktop that are sorted in the same
order that they would be sorted on PalmOS using TxtCompare and
TxtCaselessCompare.

The TxtCompare docs say that it uses up to 6 comparison tables for
sorting. However, I can't find any information on what those tables are.
I do know that a string like "AGE+12345" sorts after "AGE-12345",
whereas with StrCompareAscii the order is reversed.


It seems TxtCompare just uses one table: sortTable[0]. The system itself has six tables, Palmsource and God know what for. I suggest you get yourself the sources of PalmOS 4.0 and read it out there. I don't know if I violate any agreement here... There is all you need: the algorythm itself in TextMgr.c and the loading of the SortTable in IntlMgr.c

Thomas

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

Reply via email to