equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 |
24 |
25 /** |
25 /** |
26 * @test |
26 * @test |
27 * @bug 7037261 7070436 7198195 8032446 8072600 |
27 * @bug 7037261 7070436 7198195 8032446 8072600 8221431 |
28 * @summary Check j.l.Character.isLowerCase/isUppercase/isAlphabetic/isIdeographic |
28 * @summary Check j.l.Character.isLowerCase/isUppercase/isAlphabetic/isIdeographic |
|
29 * @library /lib/testlibrary/java/lang |
29 */ |
30 */ |
30 |
31 |
31 import java.util.regex.*; |
32 import java.util.regex.*; |
32 import java.util.*; |
33 import java.util.*; |
33 import java.io.*; |
34 import java.io.*; |
34 import static java.lang.Character.*; |
35 import static java.lang.Character.*; |
35 |
36 |
36 public class CheckProp { |
37 public class CheckProp { |
37 |
38 |
38 public static void main(String[] args) throws IOException { |
39 public static void main(String[] args) throws IOException { |
39 File fPropList = new File(System.getProperty("test.src", "."), "PropList.txt"); |
40 File fPropList = UCDFiles.PROP_LIST.toFile(); |
40 int i, j; |
41 int i, j; |
41 BufferedReader sbfr = new BufferedReader(new FileReader(fPropList)); |
42 BufferedReader sbfr = new BufferedReader(new FileReader(fPropList)); |
42 Matcher m = Pattern.compile("(\\p{XDigit}+)(?:\\.{2}(\\p{XDigit}+))?\\s*;\\s+(\\w+)\\s+#.*").matcher(""); |
43 Matcher m = Pattern.compile("(\\p{XDigit}+)(?:\\.{2}(\\p{XDigit}+))?\\s*;\\s+(\\w+)\\s+#.*").matcher(""); |
43 Map<String, ArrayList<Integer>> propMap = new LinkedHashMap<>(); |
44 Map<String, ArrayList<Integer>> propMap = new LinkedHashMap<>(); |
44 |
45 |