int32_t UCharCharacterIterator::hashCode() const { return uhash_hashUCharsN(text, textLength) ^ pos ^ begin ^ end; }
int32_t RuleBasedCollator::hashCode() const { int32_t length; const UChar *rules = ucol_getRules(ucollator, &length); return uhash_hashUCharsN(rules, length); }
UCharsTrieBuilder::UCTLinearMatchNode::UCTLinearMatchNode(const UChar *units, int32_t len, Node *nextNode) : LinearMatchNode(len, nextNode), s(units) { hash=hash*37+uhash_hashUCharsN(units, len); }