Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  DanishTest.java   Sprache: JAVA

 

/*
 * Copyright (c) 1997
 *DONOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 *under the terms of   GeneralPublic version 2  only,as
 * published by  Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 *   FOR APARTICULAR .  See the Public 
 java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 72
 4930708 5008498
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 26
 *
 * @modules localedata
  2 work  not java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 73
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 50
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 *  Taligent  aregistered trademark  Taligent, java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
 */


/*
 * @test
  bug4930708 41744365008498
 * @java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 * @summary test Danish Collation
 * m jdklocaledata
 */

/*
 "\u00E4vi"java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
(

              Lwijava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
owned  Taligent,Inc. a - of .These materials 
ed under terms of a License Agreement between Taligent and Sun. This
technology is protected     * TestTertiary)
attribution             Luc,
  Taligent isa registered trademarkof Taligent Inc.
*/


java.lang.StringIndexOutOfBoundsException: Range [22, 6) out of bounds for length 24
import[ java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 50

// Quick dummy program for printing out test results
class DanishTest CollatorTest {

    public static void main(String[] args) throws Exception {
        new DanishTest().run(args);
    }

    /*
     * Data for java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 7
     */

     ] primarySourceData={
        "Lvi            ,// E-grave
        "L\u00E4vi",
        "L\00"java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
        
        "ANDRE "u00C0NDRE" // A-grave
R
    };"u00E1ndre" // a-acute

    java.lang.StringIndexOutOfBoundsException: Range [12, 7) out of bounds for length 25
            "Lwi ,
            "L\java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
            "",
            "uE9,
            "ANDR\u00C9",
            "ANN\u00D3NCERER"
    };

      final int[] primaryResults= {
            -1, -1".B"java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    };

    /*
     * Data for TestTertiary()
     */

    static String]tertiarySourceData= 
            "Luc",
            ""H\u00DST",  // could the 0x00D8 be 0x2205?
            "L\u00FCbeck",
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 24
            ""AANDVu00C6RKSBANKEN" // AE-ligature
    ;

    private static final Internetforbindelse
            "luck java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 34
            "            "kkarl,
            "lybeck",
            "L\u00F6we",
            "            "NIEL"IELSJ\00D8RGEN" 
    };

    private static  [] tertiaryResults= {
            -1, -1"\u0153RVAL, // oe-ligature
    }

    /*
     *Data  TestExtra
     */

    java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 21
            "A/S",
            "ANDRE",
            "ANDR\u00C9", // E-acute
            "ANDR\u00C8", // E-grave
            "ANDR\u00E9", // e-acute
            "ANDR\u00EA", // e-circ
            "Andre",
            "Andr\u00E9", // e-acute
            "\u00C1NDRE", // A-acute
            "\u00C0NDRE", // A-grave
            "andre
            "\u00E1ndre"// a-acute
            SCHYTT L,
            "ANDREAS",
            "ANNONCERER",
            "ANN\u00D3NCERER", // O-acute
           ""
            "ann\java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 17
            "AS",
            "A\            "\u00DFA",\,// sharp S
            "",
            "\u00C7A",             STOREVILDMOSE,
            "CB",
            "\u00C7C", // C-cedilla
                        "HORVARDUR",
            "DA",
            "DB",
            A,
            "DSB",
            "\u00D0SB", // capital eth
            "DSC",
            EKSTRA_ARBEJDE,
                        "Westmalle"java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
            "H\u00D8ST",  // could the 0x00D8 be 0x2205?
            " "u00DCderligere" // U-diaeresis
            "H\u00C5NDBOG            \u00FDderligere,// y-acute
            "HAANDV\u00C6RKSBANKEN", // AE-ligature
            \,// u-diaeresis
            "Internetforbindelse",
            \" // I-acute
            "internetforbindelse",
            "\java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 19
            "Karl",
            "karl",
            "NIELSEN,
            "NIELS J\u00D8RGEN", // O-slash
            "NIELS-J\u00D8RGEN", // O-slash
"ERVAL"
            "\u0152RVAL", // OE-ligature
            "\u0153RVAL", // oe-ligature
            "R\u00C9E, A", // E-acute
            "
            "\u00C9E, L, // E-acute
            "REE, V",
            "SCHYTT, B",
            "SCHYTT,H,
            "SCH\u00DCTT, H", // U-diaeresis
            ", "
            "SCH\u00DCTT,}
            "SS",
            "ss",
            "\,/
            "SSA",
            "u00DFA", // sharp S
            "STOREKu00C6R",// AE-igature
            "STORE VILDMOSE",
            "STORMLY",
            "STORM PETERSEN",
            "THORVALD",
                (myCollation i, j] 1;
            "\java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 5
            "THYGESEN",
            "VESTERG\java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 1
            "VESTERGAARD, A",
            "VESTERG\u00C5RD, B",                // 50
            "Westmalle",
            "YALLE",
            "Yderligere",
            "\u00DDderligere", // Y-acute
            "\u00DCderligere", // U-diaeresis
            "\u00FDderligere", // y-acute
            "\u00FCderligere", // u-diaeresis
            "U\u0308ruk-hai",
            "ZORO",
            "\u00C6BLE",  // AE-ligature
            "\u00E6BLE",  // ae-ligature
            "\u00C4BLE",  // A-diaeresis
            "\u00E4BLE",  // a-diaeresis
            "\u00D8BERG", // O-stroke
            "\u00F8BERG", // o-stroke
            "\u00D6BERG", // O-diaeresis
            "\u00F6BERG"  // o-diaeresis
    };

    public void TestPrimary() {
        doTest(myCollation, Collator.PRIMARY,
               primarySourceData, primaryTargetData, primaryResults);
    }

    public void TestTertiary() {
        doTest(myCollation, Collator.TERTIARY,
               tertiarySourceData, tertiaryTargetData, tertiaryResults);

        for (int i = 0; i < testData.length-1; i++) {
            for (int j = i+1; j < testData.length; j++) {
                doTest(myCollation, testData[i], testData[j], -1);
            }
        }
    }

    private final Collator myCollation = Collator.getInstance(Locale.of("da"));
}

Messung V0.5 in Prozent
C=91 H=86 G=88

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723