* Compare the variable and value based on the given comparator. */
| 1891 | * Compare the variable and value based on the given comparator. |
| 1892 | */ |
| 1893 | static bool OrderConditionCompare(OrderConditionComparator occ, int variable, int value) |
| 1894 | { |
| 1895 | switch (occ) { |
| 1896 | case OrderConditionComparator::Equal: return variable == value; |
| 1897 | case OrderConditionComparator::NotEqual: return variable != value; |
| 1898 | case OrderConditionComparator::LessThan: return variable < value; |
| 1899 | case OrderConditionComparator::LessThanOrEqual: return variable <= value; |
| 1900 | case OrderConditionComparator::MoreThan: return variable > value; |
| 1901 | case OrderConditionComparator::MoreThanOrEqual: return variable >= value; |
| 1902 | case OrderConditionComparator::IsTrue: return variable != 0; |
| 1903 | case OrderConditionComparator::IsFalse: return variable == 0; |
| 1904 | default: NOT_REACHED(); |
| 1905 | } |
| 1906 | } |
| 1907 | |
| 1908 | static bool OrderConditionCompare(OrderConditionComparator occ, ConvertibleThroughBase auto variable, int value) |
| 1909 | { |
no test coverage detected