Logo Search packages:      
Sourcecode: icu version File versions

int32_t RuleBasedCollator::getMaxExpansion ( int32_t  order ) const

Return the maximum length of any expansion sequences that end with the specified comparison order.

Parameters:
ordera collation order returned by previous or next.
Returns:
maximum size of the expansion sequences ending with the collation element or 1 if collation element does not occur at the end of any expansion sequence
See also:
CollationElementIterator::getMaxExpansion ICU 2.0

Return the maximum length of any expansion sequences that end with the specified comparison order.

Parameters:
ordera collation order returned by previous or next.
Returns:
the maximum length of any expansion seuences ending with the specified order or 1 if collation order does not occur at the end of any expansion sequence.
See also:
CollationElementIterator::getMaxExpansion

Definition at line 508 of file tblcoll.cpp.

References ucollator.

Referenced by CollationAPITest::TestMaxExpansion().

{
    uint8_t result;
    UCOL_GETMAXEXPANSION(ucollator, (uint32_t)order, result);
    return result;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index