Lines Matching defs:RHS
41 static int ascii_strncasecmp(const char *LHS, const char *RHS, size_t Length) {
44 unsigned char RHC = ascii_tolower(RHS[I]);
52 int StringRef::compare_lower(StringRef RHS) const {
53 if (int Res = ascii_strncasecmp(Data, RHS.Data, min(Length, RHS.Length)))
55 if (Length == RHS.Length)
57 return Length < RHS.Length ? -1 : 1;
73 int StringRef::compare_numeric(StringRef RHS) const {
74 for (size_t I = 0, E = min(Length, RHS.Length); I != E; ++I) {
76 if (ascii_isdigit(Data[I]) && ascii_isdigit(RHS.Data[I])) {
82 bool rd = J < RHS.Length && ascii_isdigit(RHS.Data[J]);
89 if (int Res = compareMemory(Data + I, RHS.Data + I, J - I))
95 if (Data[I] != RHS.Data[I])
96 return (unsigned char)Data[I] < (unsigned char)RHS.Data[I] ? -1 : 1;
98 if (Length == RHS.Length)
100 return Length < RHS.Length ? -1 : 1;