< prev index next >

src/java.base/share/classes/jdk/internal/icu/lang/UCharacter.java

Print this page
rev 57619 : [mq]: 8174270
   1 /*
   2  * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /**
  27 *******************************************************************************
  28 * Copyright (C) 1996-2014, International Business Machines Corporation and
  29 * others. All Rights Reserved.
  30 *******************************************************************************
  31 */
  32 
  33 package sun.text.normalizer;






  34 
  35 /**
  36  * <p>The UCharacter class provides extensions to the
  37  * <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Character.html">
  38  * java.lang.Character</a> class. These extensions provide support for
  39  * more Unicode properties and together with the <a href=../text/UTF16.html>UTF16</a>
  40  * class, provide support for supplementary characters (those with code
  41  * points above U+FFFF).
  42  * Each ICU release supports the latest version of Unicode available at that time.
  43  *
  44  * <p>Code points are represented in these API using ints. While it would be
  45  * more convenient in Java to have a separate primitive datatype for them,
  46  * ints suffice in the meantime.
  47  *
  48  * <p>To use this class please add the jar file name icu4j.jar to the
  49  * class path, since it contains data files which supply the information used
  50  * by this file.<br>
  51  * E.g. In Windows <br>
  52  * <code>set CLASSPATH=%CLASSPATH%;$JAR_FILE_PATH/ucharacter.jar</code>.<br>
  53  * Otherwise, another method would be to copy the files uprops.dat and


   1 /*
   2  * Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /**
  27 *******************************************************************************
  28 * Copyright (C) 1996-2014, International Business Machines Corporation and
  29 * others. All Rights Reserved.
  30 *******************************************************************************
  31 */
  32 
  33 package jdk.internal.icu.lang;
  34 
  35 import jdk.internal.icu.impl.UBiDiProps;
  36 import jdk.internal.icu.impl.UCharacterProperty;
  37 import jdk.internal.icu.text.Normalizer2;
  38 import jdk.internal.icu.text.UTF16;
  39 import jdk.internal.icu.util.VersionInfo;
  40 
  41 /**
  42  * <p>The UCharacter class provides extensions to the
  43  * <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Character.html">
  44  * java.lang.Character</a> class. These extensions provide support for
  45  * more Unicode properties and together with the <a href=../text/UTF16.html>UTF16</a>
  46  * class, provide support for supplementary characters (those with code
  47  * points above U+FFFF).
  48  * Each ICU release supports the latest version of Unicode available at that time.
  49  *
  50  * <p>Code points are represented in these API using ints. While it would be
  51  * more convenient in Java to have a separate primitive datatype for them,
  52  * ints suffice in the meantime.
  53  *
  54  * <p>To use this class please add the jar file name icu4j.jar to the
  55  * class path, since it contains data files which supply the information used
  56  * by this file.<br>
  57  * E.g. In Windows <br>
  58  * <code>set CLASSPATH=%CLASSPATH%;$JAR_FILE_PATH/ucharacter.jar</code>.<br>
  59  * Otherwise, another method would be to copy the files uprops.dat and


< prev index next >