void pawsStyles::InheritStyles() { STRING_HASH(bool) alreadyInh, beingInh; STRING_HASH(csRef<iDocumentNode>)::GlobalIterator iter = styles.GetIterator(); while(iter.HasNext()) { csRef<iDocumentNode> style = iter.Next(); beingInh.DeleteAll(); // this needs to be emptied for each recursive run InheritFromParent(style, alreadyInh, beingInh); } }
U_CAPI int32_t U_EXPORT2 uhash_hashIChars(const UHashTok key) { STRING_HASH(uint8_t, key.pointer, uprv_strlen((char*)p), uprv_tolower(*p)); }
/* Used by UnicodeString to compute its hashcode - Not public API. */ U_CAPI int32_t U_EXPORT2 uhash_hashUCharsN(const UChar *str, int32_t length) { STRING_HASH(UChar, str, length, *p); }
U_CAPI int32_t U_EXPORT2 uhash_hashUChars(const UHashTok key) { STRING_HASH(UChar, key.pointer, u_strlen(p), *p); }
U_CAPI int32_t U_EXPORT2 ustr_hashCharsN(const char *str, int32_t length) { STRING_HASH(uint8_t, str, length, *p); }