Lines Matching refs:lhs
52 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) {
53 int deltaInt = int(lhs.len) - int(rhs.len);
56 deltaInt = lhs.flags - rhs.flags;
59 if (lhs.radius < rhs.radius) return -1;
60 if (lhs.radius > rhs.radius) return +1;
62 if (lhs.typeface < rhs.typeface) return -1;
63 if (lhs.typeface > rhs.typeface) return +1;
65 if (lhs.textSize < rhs.textSize) return -1;
66 if (lhs.textSize > rhs.textSize) return +1;
68 if (lhs.italicStyle < rhs.italicStyle) return -1;
69 if (lhs.italicStyle > rhs.italicStyle) return +1;
71 if (lhs.scaleX < rhs.scaleX) return -1;
72 if (lhs.scaleX > rhs.scaleX) return +1;
74 if (lhs.text != rhs.text) {
75 if (!lhs.text) return -1;
78 deltaInt = memcmp(lhs.text, rhs.text, lhs.len);
82 if (lhs.positions != rhs.positions) {
83 if (!lhs.positions) return -1;
86 return memcmp(lhs.positions, rhs.positions, lhs.len << 2);