Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions
nsIUGenCategory Class Reference

#include <nsIUGenCategory.h>

Inheritance diagram for nsIUGenCategory:
Inheritance graph
[legend]
Collaboration diagram for nsIUGenCategory:
Collaboration graph
[legend]

List of all members.

Public Types

enum  nsUGenCategory {
  kUGenCategory_Mark = 1, kUGenCategory_Number = 2, kUGenCategory_Separator = 3, kUGenCategory_Other = 4,
  kUGenCategory_Letter = 5, kUGenCategory_Punctuation = 6, kUGenCategory_Symbol = 7
}
 Read ftp://ftp.unicode.org/Public/UNIDATA/ReadMe-Latest.txt section GENERAL CATEGORY for the detail defintation of the following categories. More...

Public Member Functions

NS_IMETHOD Get (PRUnichar aChar, nsUGenCategory *oResult)=0
 Give a Unichar, return a nsUGenCategory.
NS_IMETHOD Is (PRUnichar aChar, nsUGenCategory aCategory, PRBool *oResult)=0
 Give a Unichar, and a nsUGenCategory, return PR_TRUE if the Unichar is in that category, return PR_FALSE, otherwise.

Detailed Description

Definition at line 50 of file nsIUGenCategory.h.


Member Enumeration Documentation

Read ftp://ftp.unicode.org/Public/UNIDATA/ReadMe-Latest.txt section GENERAL CATEGORY for the detail defintation of the following categories.

Enumerator:
kUGenCategory_Mark 
kUGenCategory_Number 
kUGenCategory_Separator 
kUGenCategory_Other 
kUGenCategory_Letter 
kUGenCategory_Punctuation 
kUGenCategory_Symbol 

Definition at line 61 of file nsIUGenCategory.h.

                {
     kUGenCategory_Mark         = 1, // Mn, Mc, and Me
     kUGenCategory_Number       = 2, // Nd, Nl, and No 
     kUGenCategory_Separator    = 3, // Zs, Zl, and Zp
     kUGenCategory_Other        = 4, // Cc, Cf, Cs, Co, and Cn
     kUGenCategory_Letter       = 5, // Lu, Ll, Lt, Lm, and Lo
     kUGenCategory_Punctuation  = 6, // Pc, Pd, Ps, Pe, Pi, Pf, and Po
     kUGenCategory_Symbol       = 7  // Sm, Sc, Sk, and So
   } nsUGenCategory;

Member Function Documentation

NS_IMETHOD nsIUGenCategory::Get ( PRUnichar  aChar,
nsUGenCategory oResult 
) [pure virtual]

Give a Unichar, return a nsUGenCategory.

Implemented in nsCategoryImp.

NS_IMETHOD nsIUGenCategory::Is ( PRUnichar  aChar,
nsUGenCategory  aCategory,
PRBool oResult 
) [pure virtual]

Give a Unichar, and a nsUGenCategory, return PR_TRUE if the Unichar is in that category, return PR_FALSE, otherwise.

Implemented in nsCategoryImp.


The documentation for this class was generated from the following file: