Lines Matching refs:polarity
1711 // polarity = 0, 3 is normal: x xor y
1712 // polarity = 1, 2: x xor ~y == x === y
1714 void UnicodeSet::exclusiveOr(const UChar32* other, int32_t otherLen, int8_t polarity) {
1727 if (polarity == 1 || polarity == 2) {
1759 // polarity = 0 is normal: x union y
1760 // polarity = 2: x union ~y
1761 // polarity = 1: ~x union y
1762 // polarity = 3: ~x union ~y
1764 void UnicodeSet::add(const UChar32* other, int32_t otherLen, int8_t polarity) {
1778 // polarity bit 1 means a is second, bit 2 means b is.
1780 switch (polarity) {
1793 polarity ^= 1;
1802 polarity ^= 2;
1815 polarity ^= 1;
1817 polarity ^= 2;
1829 polarity ^= 1; // factored common code
1831 polarity ^= 2;
1835 buffer[k++] = a; a = list[i++]; polarity ^= 1;
1838 polarity ^= 2;
1842 polarity ^= 1;
1844 polarity ^= 2;
1851 polarity ^= 2;
1854 polarity ^= 1;
1858 polarity ^= 1;
1860 polarity ^= 2;
1872 // polarity = 0 is normal: x intersect y
1873 // polarity = 2: x intersect ~y == set-minus
1874 // polarity = 1: ~x intersect y
1875 // polarity = 3: ~x intersect ~y
1877 void UnicodeSet::retain(const UChar32* other, int32_t otherLen, int8_t polarity) {
1891 // polarity bit 1 means a is second, bit 2 means b is.
1893 switch (polarity) {
1897 polarity ^= 1;
1900 polarity ^= 2;
1905 polarity ^= 1;
1907 polarity ^= 2;
1914 polarity ^= 1;
1918 polarity ^= 2;
1923 polarity ^= 1;
1925 polarity ^= 2;
1931 polarity ^= 1;
1935 polarity ^= 2;
1939 polarity ^= 1;
1941 polarity ^= 2;
1947 polarity ^= 2;
1951 polarity ^= 1;
1955 polarity ^= 1;
1957 polarity ^= 2;