jdk/test/sun/net/idn/TestData.java
author never
Mon, 12 Jul 2010 22:27:18 -0700
changeset 5926 a36f90d986b6
parent 5506 202f599c92aa
permissions -rw-r--r--
6968385: malformed xml in sweeper logging Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 *******************************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 * Copyright (C) 2003-2004, International Business Machines Corporation and    *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 * others. All Rights Reserved.                                                *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 *******************************************************************************
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.text.ParseException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * @author ram
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * To change the template for this generated type comment go to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * Window>Preferences>Java>Code Generation>Code and Comments
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
public class TestData {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
    public static final char[][] unicodeIn ={
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
            0x0644, 0x064A, 0x0647, 0x0645, 0x0627, 0x0628, 0x062A, 0x0643, 0x0644,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
            0x0645, 0x0648, 0x0634, 0x0639, 0x0631, 0x0628, 0x064A, 0x061F
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
            0x4ED6, 0x4EEC, 0x4E3A, 0x4EC0, 0x4E48, 0x4E0D, 0x8BF4, 0x4E2D, 0x6587,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
            0x0050, 0x0072, 0x006F, 0x010D, 0x0070, 0x0072, 0x006F, 0x0073, 0x0074,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
            0x011B, 0x006E, 0x0065, 0x006D, 0x006C, 0x0075, 0x0076, 0x00ED, 0x010D,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
            0x0065, 0x0073, 0x006B, 0x0079,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
            0x05DC, 0x05DE, 0x05D4, 0x05D4, 0x05DD, 0x05E4, 0x05E9, 0x05D5, 0x05D8,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
            0x05DC, 0x05D0, 0x05DE, 0x05D3, 0x05D1, 0x05E8, 0x05D9, 0x05DD, 0x05E2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
            0x05D1, 0x05E8, 0x05D9, 0x05EA,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
            0x092F, 0x0939, 0x0932, 0x094B, 0x0917, 0x0939, 0x093F, 0x0928, 0x094D,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
            0x0926, 0x0940, 0x0915, 0x094D, 0x092F, 0x094B, 0x0902, 0x0928, 0x0939,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
            0x0940, 0x0902, 0x092C, 0x094B, 0x0932, 0x0938, 0x0915, 0x0924, 0x0947,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
            0x0939, 0x0948, 0x0902,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
            0x306A, 0x305C, 0x307F, 0x3093, 0x306A, 0x65E5, 0x672C, 0x8A9E, 0x3092,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
            0x8A71, 0x3057, 0x3066, 0x304F, 0x308C, 0x306A, 0x3044, 0x306E, 0x304B,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
            0xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
            0xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
            0xC5BC, 0xB9C8, 0xB098, 0xC88B, 0xC744, 0xAE4C,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
            0x043F, 0x043E, 0x0447, 0x0435, 0x043C, 0x0443, 0x0436, 0x0435, 0x043E,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
            0x043D, 0x0438, 0x043D, 0x0435, 0x0433, 0x043E, 0x0432, 0x043E, 0x0440,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
            0x044F, 0x0442, 0x043F, 0x043E, 0x0440, 0x0443, 0x0441, 0x0441, 0x043A,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
            0x0438,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
            0x0050, 0x006F, 0x0072, 0x0071, 0x0075, 0x00E9, 0x006E, 0x006F, 0x0070,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
            0x0075, 0x0065, 0x0064, 0x0065, 0x006E, 0x0073, 0x0069, 0x006D, 0x0070,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
            0x006C, 0x0065, 0x006D, 0x0065, 0x006E, 0x0074, 0x0065, 0x0068, 0x0061,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
            0x0062, 0x006C, 0x0061, 0x0072, 0x0065, 0x006E, 0x0045, 0x0073, 0x0070,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
            0x0061, 0x00F1, 0x006F, 0x006C,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
            0x4ED6, 0x5011, 0x7232, 0x4EC0, 0x9EBD, 0x4E0D, 0x8AAA, 0x4E2D, 0x6587,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
            0x0054, 0x1EA1, 0x0069, 0x0073, 0x0061, 0x006F, 0x0068, 0x1ECD, 0x006B,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
            0x0068, 0x00F4, 0x006E, 0x0067, 0x0074, 0x0068, 0x1EC3, 0x0063, 0x0068,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
            0x1EC9, 0x006E, 0x00F3, 0x0069, 0x0074, 0x0069, 0x1EBF, 0x006E, 0x0067,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
            0x0056, 0x0069, 0x1EC7, 0x0074,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
            0x0033, 0x5E74, 0x0042, 0x7D44, 0x91D1, 0x516B, 0x5148, 0x751F,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
            0x5B89, 0x5BA4, 0x5948, 0x7F8E, 0x6075, 0x002D, 0x0077, 0x0069, 0x0074,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
            0x0068, 0x002D, 0x0053, 0x0055, 0x0050, 0x0045, 0x0052, 0x002D, 0x004D,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
            0x004F, 0x004E, 0x004B, 0x0045, 0x0059, 0x0053,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
            0x0048, 0x0065, 0x006C, 0x006C, 0x006F, 0x002D, 0x0041, 0x006E, 0x006F,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            0x0074, 0x0068, 0x0065, 0x0072, 0x002D, 0x0057, 0x0061, 0x0079, 0x002D,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            0x305D, 0x308C, 0x305E, 0x308C, 0x306E, 0x5834, 0x6240,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
            0x3072, 0x3068, 0x3064, 0x5C4B, 0x6839, 0x306E, 0x4E0B, 0x0032,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
            0x004D, 0x0061, 0x006A, 0x0069, 0x3067, 0x004B, 0x006F, 0x0069, 0x3059,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
            0x308B, 0x0035, 0x79D2, 0x524D,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
            0x30D1, 0x30D5, 0x30A3, 0x30FC, 0x0064, 0x0065, 0x30EB, 0x30F3, 0x30D0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
            0x305D, 0x306E, 0x30B9, 0x30D4, 0x30FC, 0x30C9, 0x3067,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        // test non-BMP code points
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
            0xD800, 0xDF00, 0xD800, 0xDF01, 0xD800, 0xDF02, 0xD800, 0xDF03, 0xD800, 0xDF05,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
            0xD800, 0xDF06, 0xD800, 0xDF07, 0xD800, 0xDF09, 0xD800, 0xDF0A, 0xD800, 0xDF0B,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
            0xD800, 0xDF0D, 0xD800, 0xDF0C, 0xD800, 0xDF1E, 0xD800, 0xDF0F, 0xD800, 0xDF16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
            0xD800, 0xDF15, 0xD800, 0xDF14, 0xD800, 0xDF12, 0xD800, 0xDF10, 0xD800, 0xDF20,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
            0xD800, 0xDF21,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        // Greek
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
            0x03b5, 0x03bb, 0x03bb, 0x03b7, 0x03bd, 0x03b9, 0x03ba, 0x03ac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        // Maltese
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
            0x0062, 0x006f, 0x006e, 0x0121, 0x0075, 0x0073, 0x0061, 0x0127,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
            0x0127, 0x0061
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        // Russian
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
            0x043f, 0x043e, 0x0447, 0x0435, 0x043c, 0x0443, 0x0436, 0x0435,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
            0x043e, 0x043d, 0x0438, 0x043d, 0x0435, 0x0433, 0x043e, 0x0432,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
            0x043e, 0x0440, 0x044f, 0x0442, 0x043f, 0x043e, 0x0440, 0x0443,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            0x0441, 0x0441, 0x043a, 0x0438
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    public static final String[] asciiIn = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        "xn--egbpdaj6bu4bxfgehfvwxn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        "xn--ihqwcrb4cv8a8dqg056pqjye",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        "xn--Proprostnemluvesky-uyb24dma41a",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        "xn--4dbcagdahymbxekheh6e0a7fei0b",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
        "xn--i1baa7eci9glrd9b2ae1bj0hfcgg6iyaf8o0a1dig0cd",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        "xn--n8jok5ay5dzabd5bym9f0cm5685rrjetr6pdxa",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    /*  "xn--989aomsvi5e83db1d2a355cv1e0vak1dwrv93d5xbh15a0dt30a5jpsd879ccm6fea98c",*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        "xn--b1abfaaepdrnnbgefbaDotcwatmq2g4l",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        "xn--PorqunopuedensimplementehablarenEspaol-fmd56a",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        "xn--ihqwctvzc91f659drss3x8bo0yb",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
        "xn--TisaohkhngthchnitingVit-kjcr8268qyxafd2f1b9g",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
        "xn--3B-ww4c5e180e575a65lsy2b",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
        "xn---with-SUPER-MONKEYS-pc58ag80a8qai00g7n9n",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
        "xn--Hello-Another-Way--fc4qua05auwb3674vfr0b",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        "xn--2-u9tlzr9756bt3uc0v",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        "xn--MajiKoi5-783gue6qz075azm5e",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        "xn--de-jg4avhby1noc0d",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        "xn--d9juau41awczczp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
        "XN--097CCDEKGHQJK",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
        "XN--db8CBHEJLGH4E0AL",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
        "xn--hxargifdar",                       // Greek
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
        "xn--bonusaa-5bb1da",                   // Maltese
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
        "xn--b1abfaaepdrnnbgefbadotcwatmq2g4l", // Russian (Cyrillic)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
       };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    public static final String[] domainNames = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        "slip129-37-118-146.nc.us.ibm.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        "saratoga.pe.utexas.edu",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
        "dial-120-45.ots.utexas.edu",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        "woo-085.dorms.waller.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
        "hd30-049.hil.compuserve.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        "pem203-31.pe.ttu.edu",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        "56K-227.MaxTNT3.pdq.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        "dial-36-2.ots.utexas.edu",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        "slip129-37-23-152.ga.us.ibm.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
        "ts45ip119.cadvision.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
        "sdn-ts-004txaustP05.dialsprint.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        "bar-tnt1s66.erols.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
        "101.st-louis-15.mo.dial-access.att.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        "h92-245.Arco.COM",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
        "dial-13-2.ots.utexas.edu",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
        "net-redynet29.datamarkets.com.ar",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        "ccs-shiva28.reacciun.net.ve",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
        "7.houston-11.tx.dial-access.att.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        "ingw129-37-120-26.mo.us.ibm.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        "dialup6.austintx.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        "dns2.tpao.gov.tr",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        "slip129-37-119-194.nc.us.ibm.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
        "cs7.dillons.co.uk.203.119.193.in-addr.arpa",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        "swprd1.innovplace.saskatoon.sk.ca",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
        "bikini.bologna.maraut.it",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
        "node91.subnet159-198-79.baxter.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        "cust19.max5.new-york.ny.ms.uu.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        "balexander.slip.andrew.cmu.edu",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        "pool029.max2.denver.co.dynip.alter.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        "cust49.max9.new-york.ny.ms.uu.net",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
        "s61.abq-dialin2.hollyberry.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    public static final String[] domainNames1Uni = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
        "\u0917\u0928\u0947\u0936.sanjose.ibm.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        "www.\u0121.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
        //"www.\u00E0\u00B3\u00AF.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
        "www.\u00C2\u00A4.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
        "www.\u00C2\u00A3.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
        // "\\u0025", //'%' (0x0025) produces U_IDNA_STD3_ASCII_RULES_ERROR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
        // "\\u005C\\u005C", //'\' (0x005C) produces U_IDNA_STD3_ASCII_RULES_ERROR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
        //"@",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        //"\\u002F",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
        //"www.\\u0021.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
        //"www.\\u0024.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
        //"\\u003f",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        // These yeild U_IDNA_PROHIBITED_ERROR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        //"\\u00CF\\u0082.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
        //"\\u00CE\\u00B2\\u00C3\\u009Fss.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
        //"\\u00E2\\u0098\\u00BA.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
        "\u00C3\u00BC.com"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    public static final String[] domainNamesToASCIIOut = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
        "xn--31b8a2bwd.sanjose.ibm.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
        "www.xn--vea.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
        //"www.xn--3 -iia80t.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
        "www.xn--bba7j.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
        "www.xn--9a9j.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
       // "\u0025",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
       // "\u005C\u005C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
       // "@",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
       // "\u002F",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
       // "www.\u0021.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
       // "www.\u0024.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
       // "\u003f",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
        "xn--14-ria7423a.com"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
    public static final String[] domainNamesToUnicodeOut = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
        "\u0917\u0928\u0947\u0936.sanjose.ibm.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
        "www.\u0121.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
        //"www.\u00E0\u0033\u0020\u0304.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
        "www.\u00E2\u00A4.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
        "www.\u00E2\u00A3.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
       // "\u0025",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
       // "\u005C\u005C",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
       // "@",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
       // "\u002F",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
       // "www.\u0021.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
       // "www.\u0024.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
       // "\u003f",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
        "\u00E3\u0031\u2044\u0034.com"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
    public static class ErrorCase{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
        public char[] unicode;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
        public String ascii;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
        public Exception expected;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
        public boolean useSTD3ASCIIRules;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
        public boolean testToUnicode;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
        public boolean testLabel;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
        ErrorCase(char[] uniIn, String asciiIn, Exception ex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
                   boolean std3, boolean testToUni, boolean testlabel){
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
            unicode = uniIn;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
            ascii = asciiIn;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
            expected = ex;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
            useSTD3ASCIIRules = std3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
            testToUnicode = testToUni;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
            testLabel = testlabel;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
    public static final ErrorCase[] errorCases = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
        new ErrorCase( new char[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
            0x0077, 0x0077, 0x0077, 0x002e, /* www. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
            0xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
            0x070F,/*prohibited*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
            0xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
            0x002e, 0x0063, 0x006f, 0x006d, /* com. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
        },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
        "www.XN--8mb5595fsoa28orucya378bqre2tcwop06c5qbw82a1rffmae0361dea96b.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
        new ParseException("StringPrep PROHIBITED_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
        false, true, true),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
        new ErrorCase( new char[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
                0x0077, 0x0077, 0x0077, 0x002e, /* www. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
                0xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
                0x0221, 0x0234/*Unassigned code points*/,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
                0x002e, 0x0063, 0x006f, 0x006d, /* com. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
            "www.XN--6lA2Bz548Fj1GuA391Bf1Gb1N59Ab29A7iA.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
            new ParseException("StringPrep UNASSIGNED_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
            false, true, true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
       new ErrorCase( new char[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
                0x0077, 0x0077, 0x0077, 0x002e, /* www. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
                0xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
                0x0644, 0x064A, 0x0647,/*Arabic code points. Cannot mix RTL with LTR*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
                0xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
                0x002e, 0x0063, 0x006f, 0x006d, /* com. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
            "www.xn--ghBGI4851OiyA33VqrD6Az86C4qF83CtRv93D5xBk15AzfG0nAgA0578DeA71C.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
            new ParseException("StringPrep CHECK_BIDI_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
            false, true, true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
        new ErrorCase( new char[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
                0x0077, 0x0077, 0x0077, 0x002e, /* www. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
                /* labels cannot begin with an HYPHEN */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
                0x002D, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
                0x002E,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
                0xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
                0x002e, 0x0063, 0x006f, 0x006d, /* com. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
            "www.xn----b95Ew8SqA315Ao5FbuMlnNmhA.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
            new ParseException("StringPrep STD3_ASCII_RULES_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
            true, true, false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
        new ErrorCase( new char[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
                /* correct ACE-prefix followed by unicode */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
                0x0077, 0x0077, 0x0077, 0x002e, /* www. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
                0x0078, 0x006e, 0x002d,0x002d,  /* ACE Prefix */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
                0x002D, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
                0x002D,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
                0xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
                0x002e, 0x0063, 0x006f, 0x006d, /* com. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
            /* wrong ACE-prefix followed by valid ACE-encoded ASCII */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
            "www.XY-----b91I0V65S96C2A355Cw1E5yCeQr19CsnP1mFfmAE0361DeA96B.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
            new ParseException("StringPrep ACE_PREFIX_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
            false, false, false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
        /* cannot verify U_IDNA_VERIFICATION_ERROR */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
        new ErrorCase( new char[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
            0x0077, 0x0077, 0x0077, 0x002e, /* www. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
            0xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
            0xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
            0xC5BC, 0xB9C8, 0xB098, 0xC88B, 0xC744, 0xAE4C,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
            0x002e, 0x0063, 0x006f, 0x006d, /* com. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
          },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
          "www.xn--989AoMsVi5E83Db1D2A355Cv1E0vAk1DwRv93D5xBh15A0Dt30A5JpSD879Ccm6FeA98C.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
          new ParseException("StringPrep LABEL_TOO_LONG_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
          false, true, true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
        new ErrorCase( new char[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
            0x0077, 0x0077, 0x0077, 0x002e, /* www. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
            0x0030, 0x0644, 0x064A, 0x0647, 0x0031, /* Arabic code points squashed between EN codepoints */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
            0x002e, 0x0063, 0x006f, 0x006d, /* com. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
          },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
          "www.xn--01-tvdmo.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
          new ParseException("StringPrep CHECK_BIDI_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
          false, true, true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
        new ErrorCase( new char[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
            0x0077, 0x0077, 0x0077, 0x002e, // www.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
            0x206C, 0x0644, 0x064A, 0x0647, 0x206D, // Arabic code points squashed between BN codepoints
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
            0x002e, 0x0063, 0x006f, 0x006d, // com.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
          },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
          "www.XN--ghbgi278xia.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
          new ParseException("StringPrep PROHIBITED_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
          false, true, true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
        new ErrorCase( new char[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
            0x0077, 0x0077, 0x0077, 0x002e, // www.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
            0x002D, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, // HYPHEN at the start of label
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
            0x002e, 0x0063, 0x006f, 0x006d, // com.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
          },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
          "www.-abcde.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
          new ParseException("StringPrep STD3_ASCII_RULES_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
          true, true, false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
        new ErrorCase( new char[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
            0x0077, 0x0077, 0x0077, 0x002e, // www.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
            0x0041, 0x0042, 0x0043, 0x0044, 0x0045,0x002D, // HYPHEN at the end of the label
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
            0x002e, 0x0063, 0x006f, 0x006d, // com.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
          },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
          "www.abcde-.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
          new ParseException("StringPrep STD3_ASCII_RULES_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
          true, true, false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
        new ErrorCase( new char[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
            0x0077, 0x0077, 0x0077, 0x002e, // www.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
            0x0041, 0x0042, 0x0043, 0x0044, 0x0045,0x0040, // Containing non LDH code point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
            0x002e, 0x0063, 0x006f, 0x006d, // com.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
          },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
          "www.abcde@.com",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
          new ParseException("StringPrep STD3_ASCII_RULES_ERROR", -1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
          true, true, false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
        ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
     public static final class ConformanceTestCase{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
         String comment;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
         String input;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
         String output;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
         String profile;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
         int flags;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
         Exception expected;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
         private static byte[] getBytes(String in){
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
             if(in==null){
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
                 return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
             }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
             byte[] bytes = new byte[in.length()];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
             for(int i=0; i < in.length();i++){
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
                 bytes[i] = (byte)in.charAt(i);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
             }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
             return bytes;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
         ConformanceTestCase(String comt, String in, String out,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
                              String prof, int flg, Exception ex)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
                              {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
             try{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
                 comment = comt;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
                 byte[] bytes = getBytes(in);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
                 input = new String(bytes,"UTF-8");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
                 bytes = getBytes(out);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
                 output = (bytes==null)? null : new String(bytes,"UTF-8");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
                 profile = prof;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
                 flags = flg;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
                 expected = ex;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
             }catch (Exception e){
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
                 e.printStackTrace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
                 throw new RuntimeException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
             }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
       }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
       public static final ConformanceTestCase[] conformanceTestCases =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
       {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
           "Case folding ASCII U+0043 U+0041 U+0046 U+0045",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
           "\u0043\u0041\u0046\u0045", "\u0063\u0061\u0066\u0065",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
           null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
           "Case folding 8bit U+00DF (german sharp s)",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
           "\u00C3\u009F", "\u0073\u0073",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
           null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
           "Non-ASCII multibyte space character U+1680",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
           "\u00E1\u009A\u0080", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
           "Non-ASCII 8bit control character U+0085",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
           "\u00C2\u0085", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
           "Non-ASCII multibyte control character U+180E",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
           "\u00E1\u00A0\u008E", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
           "Non-ASCII control character U+1D175",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
           "\u00F0\u009D\u0085\u00B5", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
           "Plane 0 private use character U+F123",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
           "\u00EF\u0084\u00A3", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
           "Plane 15 private use character U+F1234",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
           "\u00F3\u00B1\u0088\u00B4", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
           "Plane 16 private use character U+10F234",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
           "\u00F4\u008F\u0088\u00B4", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
           "Non-character code point U+8FFFE",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
           "\u00F2\u008F\u00BF\u00BE", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
           "Non-character code point U+10FFFF",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
           "\u00F4\u008F\u00BF\u00BF", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
     /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
         {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
           "Surrogate code U+DF42",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
           "\u00ED\u00BD\u0082", null, "Nameprep", InternationalizedDomainNames.DEFAULT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
           U_IDNA_PROHIBITED_ERROR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
         },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
           "Non-plain text character U+FFFD",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
           "\u00EF\u00BF\u00BD", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
           "Ideographic description character U+2FF5",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
           "\u00E2\u00BF\u00B5", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
           "Display property character U+0341",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
           "\u00CD\u0081", "\u00CC\u0081",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
           null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
           "Left-to-right mark U+200E",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
           "\u00E2\u0080\u008E", "\u00CC\u0081",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
           "Deprecated U+202A",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
           "\u00E2\u0080\u00AA", "\u00CC\u0081",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
           "Language tagging character U+E0001",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
           "\u00F3\u00A0\u0080\u0081", "\u00CC\u0081",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
           "Language tagging character U+E0042",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
           "\u00F3\u00A0\u0081\u0082", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
           new ParseException("StringPrep PROHIBITED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
           "Bidi: RandALCat character U+05BE and LCat characters",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
           "\u0066\u006F\u006F\u00D6\u00BE\u0062\u0061\u0072", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
           new ParseException("StringPrep CHECK_BIDI_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
           "Bidi: RandALCat character U+FD50 and LCat characters",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
           "\u0066\u006F\u006F\u00EF\u00B5\u0090\u0062\u0061\u0072", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
           "Nameprep",0 ,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
           new ParseException("StringPrep CHECK_BIDI_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
           "Bidi: RandALCat character U+FB38 and LCat characters",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
           "\u0066\u006F\u006F\u00EF\u00B9\u00B6\u0062\u0061\u0072", "\u0066\u006F\u006F \u00d9\u008e\u0062\u0061\u0072",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
           null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
           "Bidi: RandALCat without trailing RandALCat U+0627 U+0031",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
           "\u00D8\u00A7\u0031", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
           new ParseException("StringPrep CHECK_BIDI_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
           "Bidi: RandALCat character U+0627 U+0031 U+0628",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
           "\u00D8\u00A7\u0031\u00D8\u00A8", "\u00D8\u00A7\u0031\u00D8\u00A8",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
           null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
         new ConformanceTestCase(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
           "Unassigned code point U+E0002",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
           "\u00F3\u00A0\u0080\u0082", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
           "Nameprep", 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
           new ParseException("StringPrep UNASSIGNED_ERROR", -1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
         ),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
    /*  // Invalid UTF-8
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
         {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
           "Larger test (shrinking)",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
           "X\u00C2\u00AD\u00C3\u00DF\u00C4\u00B0\u00E2\u0084\u00A1\u006a\u00cc\u008c\u00c2\u00a0\u00c2"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
           "\u00aa\u00ce\u00b0\u00e2\u0080\u0080", "xssi\u00cc\u0087""tel\u00c7\u00b0 a\u00ce\u00b0 ",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
           "Nameprep",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
           InternationalizedDomainNames.DEFAULT, U_ZERO_ERROR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
         },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
           "Larger test (expanding)",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
           "X\u00C3\u00DF\u00e3\u008c\u0096\u00C4\u00B0\u00E2\u0084\u00A1\u00E2\u0092\u009F\u00E3\u008c\u0080",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
           "xss\u00e3\u0082\u00ad\u00e3\u0083\u00ad\u00e3\u0083\u00a1\u00e3\u0083\u00bc\u00e3\u0083\u0088"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
           "\u00e3\u0083\u00ab""i\u00cc\u0087""tel\u0028""d\u0029\u00e3\u0082\u00a2\u00e3\u0083\u0091"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
           "\u00e3\u0083\u00bc\u00e3\u0083\u0088"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
           "Nameprep",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
           InternationalizedDomainNames.DEFAULT, U_ZERO_ERROR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
         },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
      */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
}