Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internationalization Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWUCollationKey

Module:  Internationalization Module   Group:  Unicode String Processing


Does Not Inherit

Local Index

Members

Header File

#include <rw/i18n/RWUCollationKey.h> 

Description

RWUCollationKey stores preprocessed comparison information for a Unicode string, and can be used to speed repeated string comparisons. For example, you might choose to use collation keys when sorting a set of strings.

To create a valid RWUCollationKey, call RWUCollator::getCollationKey(). Generating a key is a non-trivial operation, since it involves determining the collation elements and weights for an entire string. Comparing two RWUCollationKey objects, however, is fast.


NOTE -- Collation keys can only meaningfully be compared if they are created by the same collator, or by collators with the same attributes.

Example

Related Classes

RWUCollator

Public Constructors

RWUCollationKey(void);
RWUCollationKey(const RWUCollationKey &original);

Public Destructor

~RWUCollationKey(void);

Public Member Operators

RWUCollationKey&
operator=(const RWUCollationKey &rhs);
bool
operator==(const RWUCollationKey& rhs) const;
bool
operator!=(const RWUCollationKey& rhs) const;
bool
operator<(const RWUCollationKey& rhs) const;

Public Member Functions

RWUString
getString(void) const;
unsigned
hash() const;
bool
isValid(void) const;


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.