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

PatternEntry Class Reference

Utility class for normalizing and merging patterns for collation. More...

#include <ptnentry.h>

List of all members.

Public Methods

void appendQuotedExtension (UnicodeString& toAddTo) const
 Gets the extension, quoted if necessary, of this pattern entry. More...

void appendQuotedChars (UnicodeString& toAddTo) const
 Gets the current chars, quoted if necessary, of this pattern entry.

UBool equals (const PatternEntry& other) const
 Compares two pattern entry objects. More...

int32_t getStrength (void) const
 Gets the strength of this entry. More...

const UnicodeStringgetExtension (UnicodeString& ext) const
 Gets the extension characters. More...

const UnicodeStringgetChars (UnicodeString& chars) const
 Gets the core characters. More...

UnicodeStringtoString (UnicodeString&) const
 For debugging only.


Friends

class  MergeCollation
class  PointerToPatternEntry
class  VectorOfPointersToPatternEntry
class  Parser


Detailed Description

Utility class for normalizing and merging patterns for collation.

This is to be used with MergeCollation for adding patterns to an existing rule table.

Definition at line 34 of file ptnentry.h.


Member Function Documentation

void PatternEntry::appendQuotedChars ( UnicodeString & toAddTo ) const
 

Gets the current chars, quoted if necessary, of this pattern entry.

void PatternEntry::appendQuotedExtension ( UnicodeString & toAddTo ) const
 

Gets the extension, quoted if necessary, of this pattern entry.

Parameters:
toAddTo   the result string buffer.

UBool PatternEntry::equals ( const PatternEntry & other ) const
 

Compares two pattern entry objects.

Parameters:
other   the other pattern entry object.
Returns:
TRUE if the pattern entry objects are the same, FALSE otherwise.

const UnicodeString & PatternEntry::getChars ( UnicodeString & chars ) const
 

Gets the core characters.

Parameters:
the   char string reference.
Returns:
the char string of this pattern entry.

const UnicodeString & PatternEntry::getExtension ( UnicodeString & ext ) const
 

Gets the extension characters.

Parameters:
the   extension string reference.
Returns:
the extension chars of this pattern entry.

int32_t PatternEntry::getStrength ( void ) const
 

Gets the strength of this entry.

Returns:
the strength of this pattern entry.

UnicodeString & PatternEntry::toString ( UnicodeString & ) const
 

For debugging only.


Friends And Related Function Documentation

class MergeCollation [friend]
 

Definition at line 37 of file ptnentry.h.

class Parser [friend]
 

Definition at line 109 of file ptnentry.h.

class PointerToPatternEntry [friend]
 

Definition at line 38 of file ptnentry.h.

class VectorOfPointersToPatternEntry [friend]
 

Definition at line 39 of file ptnentry.h.


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