Logo Search packages:      
Sourcecode: icu version File versions

UCollationResult Collator::compare ( UCharIterator sIter,
UCharIterator tIter,
UErrorCode status 
) const [virtual, inherited]

Compares two strings using the Collator. Returns whether the first one compares less than/equal to/greater than the second one. This version takes UCharIterator input.

Parameters:
sIterthe first ("source") string iterator
tIterthe second ("target") string iterator
statusICU status
Returns:
UCOL_LESS, UCOL_EQUAL or UCOL_GREATER ICU 4.2

Reimplemented in RuleBasedCollator.

Definition at line 433 of file coll.cpp.

References U_SUCCESS, U_UNSUPPORTED_ERROR, and UCOL_EQUAL.

                                                             {
    if(U_SUCCESS(status)) {
        // Not implemented in the base class.
        status = U_UNSUPPORTED_ERROR;
    }
    return UCOL_EQUAL;
}

Generated by  Doxygen 1.6.0   Back to index