Home | History | Annotate | Download | only in common

Lines Matching refs:polarity

1632 // polarity = 0, 3 is normal: x xor y
1633 // polarity = 1, 2: x xor ~y == x === y
1635 void UnicodeSet::exclusiveOr(const UChar32* other, int32_t otherLen, int8_t polarity) {
1648 if (polarity == 1 || polarity == 2) {
1680 // polarity = 0 is normal: x union y
1681 // polarity = 2: x union ~y
1682 // polarity = 1: ~x union y
1683 // polarity = 3: ~x union ~y
1685 void UnicodeSet::add(const UChar32* other, int32_t otherLen, int8_t polarity) {
1699 // polarity bit 1 means a is second, bit 2 means b is.
1701 switch (polarity) {
1714 polarity ^= 1;
1723 polarity ^= 2;
1736 polarity ^= 1;
1738 polarity ^= 2;
1750 polarity ^= 1; // factored common code
1752 polarity ^= 2;
1756 buffer[k++] = a; a = list[i++]; polarity ^= 1;
1759 polarity ^= 2;
1763 polarity ^= 1;
1765 polarity ^= 2;
1772 polarity ^= 2;
1775 polarity ^= 1;
1779 polarity ^= 1;
1781 polarity ^= 2;
1793 // polarity = 0 is normal: x intersect y
1794 // polarity = 2: x intersect ~y == set-minus
1795 // polarity = 1: ~x intersect y
1796 // polarity = 3: ~x intersect ~y
1798 void UnicodeSet::retain(const UChar32* other, int32_t otherLen, int8_t polarity) {
1812 // polarity bit 1 means a is second, bit 2 means b is.
1814 switch (polarity) {
1818 polarity ^= 1;
1821 polarity ^= 2;
1826 polarity ^= 1;
1828 polarity ^= 2;
1835 polarity ^= 1;
1839 polarity ^= 2;
1844 polarity ^= 1;
1846 polarity ^= 2;
1852 polarity ^= 1;
1856 polarity ^= 2;
1860 polarity ^= 1;
1862 polarity ^= 2;
1868 polarity ^= 2;
1872 polarity ^= 1;
1876 polarity ^= 1;
1878 polarity ^= 2;