Hi Ticker, thanks for the hint. So it's probably better to throw an exception in setStrength()?
Gerd ________________________________________ Von: mkgmap-dev <[email protected]> im Auftrag von Ticker Berkin <[email protected]> Gesendet: Freitag, 3. Dezember 2021 11:39 An: [email protected]; [email protected] Betreff: Re: [mkgmap-dev] [mkgmap-svn] Commit r4829: - document that getCollator creates a new instance of SrtCollator Hi Gerd Beware that the sort with keys (as used in all of Mdr) only sorts to the TERTIARY level, so doing a IDENTICAL scan (either with collator or .equals()) can give strange results as IDENTICAL entries might not be adjacent. Ticker On Fri, 2021-12-03 at 10:04 +0000, svn commit wrote: > Version mkgmap-r4829 was committed by gerd on Fri, 03 Dec 2021 > BRANCH: mdr2 > - document that getCollator creates a new instance of SrtCollator > - force and document that the SrtCollator constructor sets strength > to TERTIARY > - if strength is set to IDENTICAL return String.compareTo() instead > of 0 when strings are TERTIARY equal (just for experiments) > > http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4829 > _______________________________________________ > mkgmap-svn mailing list > To unsubscribe send an mail to [email protected] > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-svn _______________________________________________ mkgmap-dev mailing list [email protected] https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list [email protected] https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
