Lines Matching refs:rhs
53 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { in compare() argument
54 int deltaInt = int(lhs.len) - int(rhs.len); in compare()
57 deltaInt = lhs.flags - rhs.flags; in compare()
60 if (lhs.radius < rhs.radius) return -1; in compare()
61 if (lhs.radius > rhs.radius) return +1; in compare()
63 if (lhs.typeface < rhs.typeface) return -1; in compare()
64 if (lhs.typeface > rhs.typeface) return +1; in compare()
66 if (lhs.textSize < rhs.textSize) return -1; in compare()
67 if (lhs.textSize > rhs.textSize) return +1; in compare()
69 if (lhs.italicStyle < rhs.italicStyle) return -1; in compare()
70 if (lhs.italicStyle > rhs.italicStyle) return +1; in compare()
72 if (lhs.scaleX < rhs.scaleX) return -1; in compare()
73 if (lhs.scaleX > rhs.scaleX) return +1; in compare()
75 if (lhs.text != rhs.text) { in compare()
77 if (!rhs.text) return +1; in compare()
79 deltaInt = memcmp(lhs.text, rhs.text, lhs.len); in compare()
83 if (lhs.positions != rhs.positions) { in compare()
85 if (!rhs.positions) return +1; in compare()
87 return memcmp(lhs.positions, rhs.positions, lhs.len << 2); in compare()