< prev index next >
src/java.base/share/classes/jdk/internal/icu/text/UnicodeSet.java
Print this page
rev 57619 : [mq]: 8174270
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2020, 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. Oracle designates this
@@ -27,17 +27,24 @@
*******************************************************************************
* Copyright (C) 1996-2015, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
-package sun.text.normalizer;
+package jdk.internal.icu.text;
-import java.io.IOException;
import java.text.ParsePosition;
import java.util.ArrayList;
import java.util.TreeSet;
+import jdk.internal.icu.impl.BMPSet;
+import jdk.internal.icu.impl.UCharacterProperty;
+import jdk.internal.icu.impl.UnicodeSetStringSpan;
+import jdk.internal.icu.impl.Utility;
+import jdk.internal.icu.lang.UCharacter;
+import jdk.internal.icu.util.OutputInt;
+import jdk.internal.icu.util.VersionInfo;
+
/**
* A mutable set of Unicode characters and multicharacter strings.
* Objects of this class represent <em>character classes</em> used
* in regular expressions. A character specifies a subset of Unicode
* code points. Legal code points are U+0000 to U+10FFFF, inclusive.
@@ -280,11 +287,11 @@
* <p>To replace, count elements, or delete spans, see {@link com.ibm.icu.text.UnicodeSetSpanner UnicodeSetSpanner}.
*
* @author Alan Liu
* @stable ICU 2.0
*/
-class UnicodeSet {
+public class UnicodeSet {
private static final int LOW = 0x000000; // LOW <= all valid values. ZERO for codepoints
private static final int HIGH = 0x110000; // HIGH > all valid values. 10000 for code units.
// 110000 for codepoints
< prev index next >