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

void RuleBasedCollator::setStrength ( ECollationStrength  newStrength  )  [virtual]

Sets the minimum strength to be used in comparison or transformation.

See also:
RuleBasedCollator::getStrength
Parameters:
newStrength the new comparison level.
Deprecated:
ICU 2.6 Use setAttribute(UCOL_STRENGTH...) instead

Implements Collator.

Definition at line 580 of file tblcoll.cpp.

References getUCollationStrength(), U_ZERO_ERROR, UCOL_STRENGTH, and ucollator.

Referenced by CollationIteratorTest::TestStrengthOrder().

{
    checkOwned();
    UErrorCode intStatus = U_ZERO_ERROR;
    UCollationStrength strength = getUCollationStrength(newStrength);
    ucol_setAttribute(ucollator, UCOL_STRENGTH, strength, &intStatus);
}


Generated by  Doxygen 1.6.0   Back to index