SSL TestData.java
Interaktion und PortierbarkeitJAVA
/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT 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 the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions.
*/
/* ******************************************************************************* * Copyright (C) 2003-2004, International Business Machines Corporation and * * others. All Rights Reserved. * *******************************************************************************
*/ import java.text.ParseException;
/** * @author ram * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments
*/ publicclass TestData { publicstaticfinalchar[][] unicodeIn ={
{
0x0644, 0x064A, 0x0647, 0x0645, 0x0627, 0x0628, 0x062A, 0x0643, 0x0644,
0x0645, 0x0648, 0x0634, 0x0639, 0x0631, 0x0628, 0x064A, 0x061F
},
{
0x4ED6, 0x4EEC, 0x4E3A, 0x4EC0, 0x4E48, 0x4E0D, 0x8BF4, 0x4E2D, 0x6587,
), new ConformanceTestCase( "Case folding 8bit U+00DF (german sharp s)", "\u00C3\u009F", "\u0073\u0073", "Nameprep", 0, null
), new ConformanceTestCase( "Non-ASCII multibyte space character U+1680", "\u00E1\u009A\u0080", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Non-ASCII 8bit control character U+0085", "\u00C2\u0085", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Non-ASCII multibyte control character U+180E", "\u00E1\u00A0\u008E", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Non-ASCII control character U+1D175", "\u00F0\u009D\u0085\u00B5", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Plane 0 private use character U+F123", "\u00EF\u0084\u00A3", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Plane 15 private use character U+F1234", "\u00F3\u00B1\u0088\u00B4", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Plane 16 private use character U+10F234", "\u00F4\u008F\u0088\u00B4", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Non-character code point U+8FFFE", "\u00F2\u008F\u00BF\u00BE", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Non-character code point U+10FFFF", "\u00F4\u008F\u00BF\u00BF", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), /* { "Surrogate code U+DF42", "\u00ED\u00BD\u0082", null, "Nameprep", InternationalizedDomainNames.DEFAULT, U_IDNA_PROHIBITED_ERROR },
*/ new ConformanceTestCase( "Non-plain text character U+FFFD", "\u00EF\u00BF\u00BD", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Ideographic description character U+2FF5", "\u00E2\u00BF\u00B5", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Display property character U+0341", "\u00CD\u0081", "\u00CC\u0081", "Nameprep", 0, null
),
new ConformanceTestCase( "Left-to-right mark U+200E", "\u00E2\u0080\u008E", "\u00CC\u0081", "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase(
"Deprecated U+202A", "\u00E2\u0080\u00AA", "\u00CC\u0081", "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Language tagging character U+E0001", "\u00F3\u00A0\u0080\u0081", "\u00CC\u0081", "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Language tagging character U+E0042", "\u00F3\u00A0\u0081\u0082", null, "Nameprep", 0, new ParseException("StringPrep PROHIBITED_ERROR", -1)
), new ConformanceTestCase( "Bidi: RandALCat character U+05BE and LCat characters", "\u0066\u006F\u006F\u00D6\u00BE\u0062\u0061\u0072", null, "Nameprep", 0, new ParseException("StringPrep CHECK_BIDI_ERROR", -1)
), new ConformanceTestCase( "Bidi: RandALCat character U+FD50 and LCat characters", "\u0066\u006F\u006F\u00EF\u00B5\u0090\u0062\u0061\u0072", null, "Nameprep",0 , new ParseException("StringPrep CHECK_BIDI_ERROR", -1)
), new ConformanceTestCase( "Bidi: RandALCat character U+FB38 and LCat characters", "\u0066\u006F\u006F\u00EF\u00B9\u00B6\u0062\u0061\u0072", "\u0066\u006F\u006F \u00d9\u008e\u0062\u0061\u0072", "Nameprep", 0, null
), new ConformanceTestCase( "Bidi: RandALCat without trailing RandALCat U+0627 U+0031", "\u00D8\u00A7\u0031", null, "Nameprep", 0, new ParseException("StringPrep CHECK_BIDI_ERROR", -1)
), new ConformanceTestCase( "Bidi: RandALCat character U+0627 U+0031 U+0628", "\u00D8\u00A7\u0031\u00D8\u00A8", "\u00D8\u00A7\u0031\u00D8\u00A8", "Nameprep", 0, null
), new ConformanceTestCase( "Unassigned code point U+E0002", "\u00F3\u00A0\u0080\u0082", null, "Nameprep", 0, new ParseException("StringPrep UNASSIGNED_ERROR", -1)
),
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.