From b9c0d53ed34d1b098b8335f28b05570899dda623 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Wed, 26 Mar 2014 20:13:01 +0100 Subject: [PATCH] No time for comments --- .../src/de/example/collation/CollationExample.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Allgemeines/UNICODECollation/src/de/example/collation/CollationExample.java b/Allgemeines/UNICODECollation/src/de/example/collation/CollationExample.java index 1d728b1..40feeee 100644 --- a/Allgemeines/UNICODECollation/src/de/example/collation/CollationExample.java +++ b/Allgemeines/UNICODECollation/src/de/example/collation/CollationExample.java @@ -19,7 +19,14 @@ public class CollationExample { final Collator es_ESCollator = Collator.getInstance(new Locale("es","ES")); final Collator fr_FRCollator = Collator.getInstance(Locale.FRANCE); + // String.compareTo and String.compareToIgnoreCase are using UNICODE + // values directly + //final String test = "GUS"; + //test.compareToIgnoreCase("gus"); + + es_ESCollator.setStrength(Collator.TERTIARY); Collections.sort(wordsListES, es_ESCollator); + fr_FRCollator.setStrength(Collator.TERTIARY); Collections.sort(wordsListFR, fr_FRCollator); System.out.println("Words list ES: " + wordsListES); -- 2.1.4