#include <mergecol.h>
Public Methods | |
MergeCollation ( const UnicodeString& pattern, Normalizer::EMode decompMode, UErrorCode& success) | |
Creates a merged collation table from a pattern string. More... | |
MergeCollation ( const MergeCollation& other) | |
Copy constructor. | |
~MergeCollation () | |
Destructor. | |
const MergeCollation& | operator= (const MergeCollation& other) |
Assignment operator. | |
UnicodeString& | getPattern (UnicodeString& pattern) const |
Recovers current pattern from this merged collation object. More... | |
UnicodeString& | getPattern (UnicodeString& pattern, UBool withWhiteSpace) const |
Recovers current pattern with white spaces. More... | |
UnicodeString& | emitPattern (UnicodeString& pattern) const |
Emits the pattern for collation builder. More... | |
UnicodeString& | emitPattern (UnicodeString& pattern, UBool withWhiteSpace) const |
Emits the pattern for collation builder. More... | |
void | setPattern (const UnicodeString& pattern, Normalizer::EMode decompMode, UErrorCode& status) |
Sets the pattern. More... | |
void | addPattern (const UnicodeString& pattern, Normalizer::EMode decompMode, UErrorCode& status) |
Adds a pattern to the current merge collation object. More... | |
int32_t | getCount (void) const |
Gets count of separate entries in the merge collation object. More... | |
const PatternEntry* | getItemAt (UTextOffset index) const |
Gets the specified pattern entry out of the merge collation object. More... |
Patterns are strings of the form <entry>*, where <entry> has the form:
<pattern> := <entry>* <entry> := <separator><chars>{"/"<extension>} <separator> := "=", ",", ";", "<", "&" <chars>, and <extension> are both arbitrary strings.
Unquoted whitespaces are ignored. 'xxx' can be used to quote characters.
One difference from Collation is that & is used to reset to a current point. Or, in other words, it introduces a new sequence which is to be added to the old.
That is: "a < b < c < d" is the same as "a < b & b < c & c < d" OR "a < b < d & b < c" XXX: make '' be a single quote.
Definition at line 61 of file mergecol.h.
|
Creates a merged collation table from a pattern string.
|
|
Copy constructor.
|
|
Destructor.
|
|
Adds a pattern to the current merge collation object.
|
|
Emits the pattern for collation builder.
|
|
Emits the pattern for collation builder.
Definition at line 212 of file mergecol.h. |
|
Gets count of separate entries in the merge collation object.
|
|
Gets the specified pattern entry out of the merge collation object.
|
|
Recovers current pattern with white spaces.
|
|
Recovers current pattern from this merged collation object.
Definition at line 207 of file mergecol.h. |
|
Assignment operator.
|
|
Sets the pattern.
|