Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

UnicodeClassMapping Class Reference

This class maps characters to state change inputs for WordBreakTable. More...

#include <unicdcm.h>

List of all members.

Public Types

typedef TextBoundaryData::Type Type

Public Methods

 UnicodeClassMapping (Type* mappedValue, int32_t mappedValue_length, const SpecialMapping* exceptionChars, int32_t exceptionChars_length, const UBool* hasException, Type* asiiValues )
 Create a mapping given a mapping from categories and a list of exceptions. More...

Type mappedChar (UChar ch) const
 Map a character to a state change input for WordBreakTable. More...


Detailed Description

This class maps characters to state change inputs for WordBreakTable.

If the character appears in the exception list, the mapping there is retuned, otherwise the mapping returned by IUnicode::type is returned.

Note in this implementation characters from 0x0040 to 0x009f always use the mapping returned by IUnicode::type and never the exception list.

Definition at line 38 of file unicdcm.h.


Member Typedef Documentation

typedef TextBoundaryData::Type UnicodeClassMapping::Type
 

Definition at line 41 of file unicdcm.h.


Constructor & Destructor Documentation

UnicodeClassMapping::UnicodeClassMapping ( Type * mappedValue,
int32_t mappedValue_length,
const SpecialMapping * exceptionChars,
int32_t exceptionChars_length,
const UBool * hasException,
Type * asiiValues )
 

Create a mapping given a mapping from categories and a list of exceptions.

Both the mapping list and exceptionChars list must be sorted in ascending order.


Member Function Documentation

Type UnicodeClassMapping::mappedChar ( UChar ch ) const
 

Map a character to a state change input for WordBreakTable.

Parameters:
ch   the character to map.
Returns:
the mapped value.


The documentation for this class was generated from the following file:
Generated at Tue Dec 5 17:56:30 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000