Logo Search packages:      
Sourcecode: icu version File versions

int32_t RuleBasedCollator::hashCode ( void   ) const [virtual]

Generates the hash code for the rule-based collation object.

the hash code. ICU 2.0

Create a hash code for this collation. Just hash the main rule table -- that should be good enough for almost any use.

Implements Collator.

Definition at line 643 of file tblcoll.cpp.

References ucollator.

    int32_t length;
    const UChar *rules = ucol_getRules(ucollator, &length);
    return uhash_hashUCharsN(rules, length);

Generated by  Doxygen 1.6.0   Back to index