Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » How to setup right sorting in my application?
Re: How to setup right sorting in my application? [message #29266 is a reply to message #28055] Wed, 13 October 2010 19:02 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Quite simple:

"compare" - provide the routine that does the correct ordering of two words (c style returns -1: a<b, 0: a==b, 1: a>b).

"getletterindex" - this is quite specific - in czech language (and perhaps others), there is a "composed letter" "ch" which is conidered a specific letter when e.g. creating indexes of books (hence the name). More over, some letters with/without diacritical markings are considered the same for index purposes. getletterindex thus returns the "letter" the word belongs to.

To provide your own algorithms, simply GetLanguageInfo for required language, replace compare and or getletterindex functions and us SetLanguageInfo for program-wide replacement. (And then send me your compare function so that I can put it into Core Smile


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: --export-tr does not work
Next Topic: Compile error about ctrllib.t
Goto Forum:
  


Current Time: Wed May 15 03:13:27 CEST 2024

Total time taken to generate the page: 0.01603 seconds