0N/A/*
2362N/A * Copyright (c) 1996, 2001, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A/*
0N/A * (C) Copyright Taligent, Inc. 1996,1997 - All Rights Reserved
0N/A * (C) Copyright IBM Corp. 1996, 1997 - All Rights Reserved
0N/A *
0N/A * The original version of this source code and documentation is copyrighted
0N/A * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
0N/A * materials are provided under terms of a License Agreement between Taligent
0N/A * and Sun. This technology is protected by multiple US and International
0N/A * patents. This notice and attribution to Taligent may not be removed.
0N/A * Taligent is a registered trademark of Taligent, Inc.
0N/A *
0N/A */
0N/A
0N/Apackage java.text;
0N/A/**
0N/A * CollationRules contains the default en_US collation rules as a base
0N/A * for building other collation tables.
0N/A * <p>Note that decompositions are done before these rules are used,
0N/A * so they do not have to contain accented characters, such as A-grave.
0N/A * @see RuleBasedCollator
0N/A * @see LocaleElements
0N/A * @author Helena Shih, Mark Davis
0N/A */
0N/Afinal class CollationRules {
0N/A final static String DEFAULTRULES = new String(
0N/A "" // no FRENCH accent order by default, add in French Delta
0N/A // IGNORABLES (up to first < character)
0N/A // COMPLETELY IGNORE format characters
0N/A + "='\u200B'=\u200C=\u200D=\u200E=\u200F"
0N/A // Control Characters
0N/A + "=\u0000 =\u0001 =\u0002 =\u0003 =\u0004" //null, .. eot
0N/A + "=\u0005 =\u0006 =\u0007 =\u0008 ='\u0009'" //enq, ...
0N/A + "='\u000b' =\u000e" //vt,, so
0N/A + "=\u000f ='\u0010' =\u0011 =\u0012 =\u0013" //si, dle, dc1, dc2, dc3
0N/A + "=\u0014 =\u0015 =\u0016 =\u0017 =\u0018" //dc4, nak, syn, etb, can
0N/A + "=\u0019 =\u001a =\u001b =\u001c =\u001d" //em, sub, esc, fs, gs
0N/A + "=\u001e =\u001f =\u007f" //rs, us, del
0N/A //....then the C1 Latin 1 reserved control codes
0N/A + "=\u0080 =\u0081 =\u0082 =\u0083 =\u0084 =\u0085"
0N/A + "=\u0086 =\u0087 =\u0088 =\u0089 =\u008a =\u008b"
0N/A + "=\u008c =\u008d =\u008e =\u008f =\u0090 =\u0091"
0N/A + "=\u0092 =\u0093 =\u0094 =\u0095 =\u0096 =\u0097"
0N/A + "=\u0098 =\u0099 =\u009a =\u009b =\u009c =\u009d"
0N/A + "=\u009e =\u009f"
0N/A // IGNORE except for secondary, tertiary difference
0N/A // Spaces
0N/A + ";'\u0020';'\u00A0'" // spaces
0N/A + ";'\u2000';'\u2001';'\u2002';'\u2003';'\u2004'" // spaces
0N/A + ";'\u2005';'\u2006';'\u2007';'\u2008';'\u2009'" // spaces
0N/A + ";'\u200A';'\u3000';'\uFEFF'" // spaces
0N/A + ";'\r' ;'\t' ;'\n';'\f';'\u000b'" // whitespace
0N/A
0N/A // Non-spacing accents
0N/A
0N/A + ";\u0301" // non-spacing acute accent
0N/A + ";\u0300" // non-spacing grave accent
0N/A + ";\u0306" // non-spacing breve accent
0N/A + ";\u0302" // non-spacing circumflex accent
0N/A + ";\u030c" // non-spacing caron/hacek accent
0N/A + ";\u030a" // non-spacing ring above accent
0N/A + ";\u030d" // non-spacing vertical line above
0N/A + ";\u0308" // non-spacing diaeresis accent
0N/A + ";\u030b" // non-spacing double acute accent
0N/A + ";\u0303" // non-spacing tilde accent
0N/A + ";\u0307" // non-spacing dot above/overdot accent
0N/A + ";\u0304" // non-spacing macron accent
0N/A + ";\u0337" // non-spacing short slash overlay (overstruck diacritic)
0N/A + ";\u0327" // non-spacing cedilla accent
0N/A + ";\u0328" // non-spacing ogonek accent
0N/A + ";\u0323" // non-spacing dot-below/underdot accent
0N/A + ";\u0332" // non-spacing underscore/underline accent
0N/A // with the rest of the general diacritical marks in binary order
0N/A + ";\u0305" // non-spacing overscore/overline
0N/A + ";\u0309" // non-spacing hook above
0N/A + ";\u030e" // non-spacing double vertical line above
0N/A + ";\u030f" // non-spacing double grave
0N/A + ";\u0310" // non-spacing chandrabindu
0N/A + ";\u0311" // non-spacing inverted breve
0N/A + ";\u0312" // non-spacing turned comma above/cedilla above
0N/A + ";\u0313" // non-spacing comma above
0N/A + ";\u0314" // non-spacing reversed comma above
0N/A + ";\u0315" // non-spacing comma above right
0N/A + ";\u0316" // non-spacing grave below
0N/A + ";\u0317" // non-spacing acute below
0N/A + ";\u0318" // non-spacing left tack below
0N/A + ";\u0319" // non-spacing tack below
0N/A + ";\u031a" // non-spacing left angle above
0N/A + ";\u031b" // non-spacing horn
0N/A + ";\u031c" // non-spacing left half ring below
0N/A + ";\u031d" // non-spacing up tack below
0N/A + ";\u031e" // non-spacing down tack below
0N/A + ";\u031f" // non-spacing plus sign below
0N/A + ";\u0320" // non-spacing minus sign below
0N/A + ";\u0321" // non-spacing palatalized hook below
0N/A + ";\u0322" // non-spacing retroflex hook below
0N/A + ";\u0324" // non-spacing double dot below
0N/A + ";\u0325" // non-spacing ring below
0N/A + ";\u0326" // non-spacing comma below
0N/A + ";\u0329" // non-spacing vertical line below
0N/A + ";\u032a" // non-spacing bridge below
0N/A + ";\u032b" // non-spacing inverted double arch below
0N/A + ";\u032c" // non-spacing hacek below
0N/A + ";\u032d" // non-spacing circumflex below
0N/A + ";\u032e" // non-spacing breve below
0N/A + ";\u032f" // non-spacing inverted breve below
0N/A + ";\u0330" // non-spacing tilde below
0N/A + ";\u0331" // non-spacing macron below
0N/A + ";\u0333" // non-spacing double underscore
0N/A + ";\u0334" // non-spacing tilde overlay
0N/A + ";\u0335" // non-spacing short bar overlay
0N/A + ";\u0336" // non-spacing long bar overlay
0N/A + ";\u0338" // non-spacing long slash overlay
0N/A + ";\u0339" // non-spacing right half ring below
0N/A + ";\u033a" // non-spacing inverted bridge below
0N/A + ";\u033b" // non-spacing square below
0N/A + ";\u033c" // non-spacing seagull below
0N/A + ";\u033d" // non-spacing x above
0N/A + ";\u033e" // non-spacing vertical tilde
0N/A + ";\u033f" // non-spacing double overscore
0N/A //+ ";\u0340" // non-spacing grave tone mark == \u0300
0N/A //+ ";\u0341" // non-spacing acute tone mark == \u0301
0N/A + ";\u0342;"
0N/A //+ "\u0343;" // == \u0313
0N/A + "\u0344;\u0345;\u0360;\u0361" // newer
0N/A + ";\u0483;\u0484;\u0485;\u0486" // Cyrillic accents
0N/A
0N/A + ";\u20D0;\u20D1;\u20D2" // symbol accents
0N/A + ";\u20D3;\u20D4;\u20D5" // symbol accents
0N/A + ";\u20D6;\u20D7;\u20D8" // symbol accents
0N/A + ";\u20D9;\u20DA;\u20DB" // symbol accents
0N/A + ";\u20DC;\u20DD;\u20DE" // symbol accents
0N/A + ";\u20DF;\u20E0;\u20E1" // symbol accents
0N/A
0N/A + ",'\u002D';\u00AD" // dashes
0N/A + ";\u2010;\u2011;\u2012" // dashes
0N/A + ";\u2013;\u2014;\u2015" // dashes
0N/A + ";\u2212" // dashes
0N/A
0N/A // other punctuation
0N/A
0N/A + "<'\u005f'" // underline/underscore (spacing)
0N/A + "<\u00af" // overline or macron (spacing)
0N/A + "<'\u002c'" // comma (spacing)
0N/A + "<'\u003b'" // semicolon
0N/A + "<'\u003a'" // colon
0N/A + "<'\u0021'" // exclamation point
0N/A + "<\u00a1" // inverted exclamation point
0N/A + "<'\u003f'" // question mark
0N/A + "<\u00bf" // inverted question mark
0N/A + "<'\u002f'" // slash
0N/A + "<'\u002e'" // period/full stop
0N/A + "<\u00b4" // acute accent (spacing)
0N/A + "<'\u0060'" // grave accent (spacing)
0N/A + "<'\u005e'" // circumflex accent (spacing)
0N/A + "<\u00a8" // diaresis/umlaut accent (spacing)
0N/A + "<'\u007e'" // tilde accent (spacing)
0N/A + "<\u00b7" // middle dot (spacing)
0N/A + "<\u00b8" // cedilla accent (spacing)
0N/A + "<'\u0027'" // apostrophe
0N/A + "<'\"'" // quotation marks
0N/A + "<\u00ab" // left angle quotes
0N/A + "<\u00bb" // right angle quotes
0N/A + "<'\u0028'" // left parenthesis
0N/A + "<'\u0029'" // right parenthesis
0N/A + "<'\u005b'" // left bracket
0N/A + "<'\u005d'" // right bracket
0N/A + "<'\u007b'" // left brace
0N/A + "<'\u007d'" // right brace
0N/A + "<\u00a7" // section symbol
0N/A + "<\u00b6" // paragraph symbol
0N/A + "<\u00a9" // copyright symbol
0N/A + "<\u00ae" // registered trademark symbol
0N/A + "<'\u0040'" // at sign
0N/A + "<\u00a4" // international currency symbol
0N/A + "<\u0e3f" // baht sign
0N/A + "<\u00a2" // cent sign
0N/A + "<\u20a1" // colon sign
0N/A + "<\u20a2" // cruzeiro sign
0N/A + "<'\u0024'" // dollar sign
0N/A + "<\u20ab" // dong sign
0N/A + "<\u20ac" // euro sign
0N/A + "<\u20a3" // franc sign
0N/A + "<\u20a4" // lira sign
0N/A + "<\u20a5" // mill sign
0N/A + "<\u20a6" // naira sign
0N/A + "<\u20a7" // peseta sign
0N/A + "<\u00a3" // pound-sterling sign
0N/A + "<\u20a8" // rupee sign
0N/A + "<\u20aa" // new shekel sign
0N/A + "<\u20a9" // won sign
0N/A + "<\u00a5" // yen sign
0N/A + "<'\u002a'" // asterisk
0N/A + "<'\\'" // backslash
0N/A + "<'\u0026'" // ampersand
0N/A + "<'\u0023'" // number sign
0N/A + "<'\u0025'" // percent sign
0N/A + "<'\u002b'" // plus sign
0N/A + "<\u00b1" // plus-or-minus sign
0N/A + "<\u00f7" // divide sign
0N/A + "<\u00d7" // multiply sign
0N/A + "<'\u003c'" // less-than sign
0N/A + "<'\u003d'" // equal sign
0N/A + "<'\u003e'" // greater-than sign
0N/A + "<\u00ac" // end of line symbol/logical NOT symbol
0N/A + "<'\u007c'" // vertical line/logical OR symbol
0N/A + "<\u00a6" // broken vertical line
0N/A + "<\u00b0" // degree symbol
0N/A + "<\u00b5" // micro symbol
0N/A
0N/A // NUMERICS
0N/A
0N/A + "<0<1<2<3<4<5<6<7<8<9"
0N/A + "<\u00bc<\u00bd<\u00be" // 1/4,1/2,3/4 fractions
0N/A
0N/A // NON-IGNORABLES
0N/A + "<a,A"
0N/A + "<b,B"
0N/A + "<c,C"
0N/A + "<d,D"
0N/A + "<\u00F0,\u00D0" // eth
0N/A + "<e,E"
0N/A + "<f,F"
0N/A + "<g,G"
0N/A + "<h,H"
0N/A + "<i,I"
0N/A + "<j,J"
0N/A + "<k,K"
0N/A + "<l,L"
0N/A + "<m,M"
0N/A + "<n,N"
0N/A + "<o,O"
0N/A + "<p,P"
0N/A + "<q,Q"
0N/A + "<r,R"
0N/A + "<s, S & SS,\u00DF" // s-zet
0N/A + "<t,T"
0N/A + "& TH, \u00DE &TH, \u00FE " // thorn
0N/A + "<u,U"
0N/A + "<v,V"
0N/A + "<w,W"
0N/A + "<x,X"
0N/A + "<y,Y"
0N/A + "<z,Z"
0N/A + "&AE,\u00C6" // ae & AE ligature
0N/A + "&AE,\u00E6"
0N/A + "&OE,\u0152" // oe & OE ligature
0N/A + "&OE,\u0153"
0N/A );
0N/A}