[mkgmap-dev] [mkgmap-svn] Commit r4829: - document that getCollator creates a new instance of SrtCollator
From Ticker Berkin rwb-mkgmap at jagit.co.uk on Fri Dec 3 15:26:08 GMT 2021
Hi Gerd My view is that should work towards collator.compare everywhere, initially leaving the strength unchanged or to match usage elsewhere for similar entities. This might give slightly different results compared with MapInstall, but the question is "Does it work"? If it doesn't, maybe the sortkeys will need extending to handle IDENTICAL. If it does work, then start fixing the reasons why SECONDARY can't work without other changes elsewhere. Ticker On Fri, 2021-12-03 at 12:03 +0000, Gerd Petermann wrote: > Hi Ticker, > > thanks for the hint. So it's probably better to throw an exception in > setStrength()? > > Gerd > > > ________________________________________ > Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag > von Ticker Berkin <rwb-mkgmap at jagit.co.uk> > Gesendet: Freitag, 3. Dezember 2021 11:39 > An: mkgmap-dev at lists.mkgmap.org.uk; mkgmap-svn at lists.mkgmap.org.uk > 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 mkgmap-svn-leave at lists.mkgmap.org.uk > > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-svn > > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] [mkgmap-svn] Commit r4829: - document that getCollator creates a new instance of SrtCollator
- Next message: [mkgmap-dev] mkgmap-faster-mp-r4803
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list