Home | History | Annotate | Download | only in common

Lines Matching refs:polarity

1630 // polarity = 0, 3 is normal: x xor y
1631 // polarity = 1, 2: x xor ~y == x === y
1633 void UnicodeSet::exclusiveOr(const UChar32* other, int32_t otherLen, int8_t polarity) {
1646 if (polarity == 1 || polarity == 2) {
1678 // polarity = 0 is normal: x union y
1679 // polarity = 2: x union ~y
1680 // polarity = 1: ~x union y
1681 // polarity = 3: ~x union ~y
1683 void UnicodeSet::add(const UChar32* other, int32_t otherLen, int8_t polarity) {
1697 // polarity bit 1 means a is second, bit 2 means b is.
1699 switch (polarity) {
1712 polarity ^= 1;
1721 polarity ^= 2;
1734 polarity ^= 1;
1736 polarity ^= 2;
1748 polarity ^= 1; // factored common code
1750 polarity ^= 2;
1754 buffer[k++] = a; a = list[i++]; polarity ^= 1;
1757 polarity ^= 2;
1761 polarity ^= 1;
1763 polarity ^= 2;
1770 polarity ^= 2;
1773 polarity ^= 1;
1777 polarity ^= 1;
1779 polarity ^= 2;
1791 // polarity = 0 is normal: x intersect y
1792 // polarity = 2: x intersect ~y == set-minus
1793 // polarity = 1: ~x intersect y
1794 // polarity = 3: ~x intersect ~y
1796 void UnicodeSet::retain(const UChar32* other, int32_t otherLen, int8_t polarity) {
1810 // polarity bit 1 means a is second, bit 2 means b is.
1812 switch (polarity) {
1816 polarity ^= 1;
1819 polarity ^= 2;
1824 polarity ^= 1;
1826 polarity ^= 2;
1833 polarity ^= 1;
1837 polarity ^= 2;
1842 polarity ^= 1;
1844 polarity ^= 2;
1850 polarity ^= 1;
1854 polarity ^= 2;
1858 polarity ^= 1;
1860 polarity ^= 2;
1866 polarity ^= 2;
1870 polarity ^= 1;
1874 polarity ^= 1;
1876 polarity ^= 2;