示例#1
0
文件: uchriter.cpp 项目: Botyto/Core
int32_t
UCharCharacterIterator::hashCode() const
{
    return uhash_hashUCharsN(text, textLength) ^ pos ^ begin ^ end;
}
示例#2
0
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);
}