com.ibm.icu.lang
Class UCharacterCategory

java.lang.Object
  |
  +--com.ibm.icu.lang.UCharacterCategory

public class UCharacterCategory
extends java.lang.Object

Enumerated Unicode category types from the UnicodeData.txt file. Used as return results from UCharacter Equivalent to icu's UCharCategory. Refer to Unicode Consortium for more information about UnicodeData.txt.

Since:
oct0300
Author:
Syn Wee Quek

Field Summary
static int CHAR_CATEGORY_COUNT
          Character type count
static int COMBINING_SPACING_MARK
          Character type Mc
static int CONNECTOR_PUNCTUATION
          Character type Pc
static int CONTROL
          Character type Cc
static int CURRENCY_SYMBOL
          Character type Sc
static int DASH_PUNCTUATION
          Character type Pd
static int DECIMAL_DIGIT_NUMBER
          Character type Nd
static int ENCLOSING_MARK
          Character type Me
static int END_PUNCTUATION
          Character type Pe
static int FINAL_PUNCTUATION
          Character type Pf
static int FORMAT
          Character type Cf
static int GENERAL_OTHER_TYPES
          Character type Cn Not Assigned (no characters in [UnicodeData.txt] have this property)
static int INITIAL_PUNCTUATION
          Character type Pi
static int LETTER_NUMBER
          Character type Nl
static int LINE_SEPARATOR
          Character type Zl
static int LOWERCASE_LETTER
          Character type Ll
static int MATH_SYMBOL
          Character type Sm
static int MODIFIER_LETTER
          Character type Lm
static int MODIFIER_SYMBOL
          Character type Sk
static int NON_SPACING_MARK
          Character type Mn
static int OTHER_LETTER
          Character type Lo
static int OTHER_NUMBER
          Character type No
static int OTHER_PUNCTUATION
          Character type Po
static int OTHER_SYMBOL
          Character type So
static int PARAGRAPH_SEPARATOR
          Character type Zp
static int PRIVATE_USE
          Character type Co
static int SPACE_SEPARATOR
          Character type Zs
static int START_PUNCTUATION
          Character type Ps
static int SURROGATE
          Character type Cs
static int TITLECASE_LETTER
          Character type Lt
static int UNASSIGNED
          Unassigned character type
static int UPPERCASE_LETTER
          Character type Lu
 
Method Summary
static java.lang.String toString(int category)
          Gets the name of the argument category
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNASSIGNED

public static final int UNASSIGNED
Unassigned character type

GENERAL_OTHER_TYPES

public static final int GENERAL_OTHER_TYPES
Character type Cn Not Assigned (no characters in [UnicodeData.txt] have this property)

UPPERCASE_LETTER

public static final int UPPERCASE_LETTER
Character type Lu

LOWERCASE_LETTER

public static final int LOWERCASE_LETTER
Character type Ll

TITLECASE_LETTER

public static final int TITLECASE_LETTER
Character type Lt

MODIFIER_LETTER

public static final int MODIFIER_LETTER
Character type Lm

OTHER_LETTER

public static final int OTHER_LETTER
Character type Lo

NON_SPACING_MARK

public static final int NON_SPACING_MARK
Character type Mn

ENCLOSING_MARK

public static final int ENCLOSING_MARK
Character type Me

COMBINING_SPACING_MARK

public static final int COMBINING_SPACING_MARK
Character type Mc

DECIMAL_DIGIT_NUMBER

public static final int DECIMAL_DIGIT_NUMBER
Character type Nd

LETTER_NUMBER

public static final int LETTER_NUMBER
Character type Nl

OTHER_NUMBER

public static final int OTHER_NUMBER
Character type No

SPACE_SEPARATOR

public static final int SPACE_SEPARATOR
Character type Zs

LINE_SEPARATOR

public static final int LINE_SEPARATOR
Character type Zl

PARAGRAPH_SEPARATOR

public static final int PARAGRAPH_SEPARATOR
Character type Zp

CONTROL

public static final int CONTROL
Character type Cc

FORMAT

public static final int FORMAT
Character type Cf

PRIVATE_USE

public static final int PRIVATE_USE
Character type Co

SURROGATE

public static final int SURROGATE
Character type Cs

DASH_PUNCTUATION

public static final int DASH_PUNCTUATION
Character type Pd

START_PUNCTUATION

public static final int START_PUNCTUATION
Character type Ps

END_PUNCTUATION

public static final int END_PUNCTUATION
Character type Pe

CONNECTOR_PUNCTUATION

public static final int CONNECTOR_PUNCTUATION
Character type Pc

OTHER_PUNCTUATION

public static final int OTHER_PUNCTUATION
Character type Po

MATH_SYMBOL

public static final int MATH_SYMBOL
Character type Sm

CURRENCY_SYMBOL

public static final int CURRENCY_SYMBOL
Character type Sc

MODIFIER_SYMBOL

public static final int MODIFIER_SYMBOL
Character type Sk

OTHER_SYMBOL

public static final int OTHER_SYMBOL
Character type So

INITIAL_PUNCTUATION

public static final int INITIAL_PUNCTUATION
Character type Pi

FINAL_PUNCTUATION

public static final int FINAL_PUNCTUATION
Character type Pf

CHAR_CATEGORY_COUNT

public static final int CHAR_CATEGORY_COUNT
Character type count
Method Detail

toString

public static java.lang.String toString(int category)
Gets the name of the argument category
Parameters:
category - to retrieve name
Returns:
category name


Copyright (c) 2001 IBM Corporation and others.