Logo Search packages:      
Sourcecode: icu version File versions  Download package

int32_t RuleBasedCollator::getMaxExpansion ( int32_t  order  )  const

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

Parameters:
order a 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:
order a 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 480 of file tblcoll.cpp.

References ucollator.

Referenced by CollationAPITest::TestMaxExpansion().

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


Generated by  Doxygen 1.6.0   Back to index