reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
123 iterator end() const { return Data + Length; } 146 bool empty() const { return Length == 0; } 150 size_t size() const { return Length; } 163 return Data[Length-1]; 172 char *S = A.template Allocate<char>(Length); 174 return StringRef(S, Length); 181 return (Length == RHS.Length && 181 return (Length == RHS.Length && 182 compareMemory(Data, RHS.Data, RHS.Length) == 0); 188 return Length == RHS.Length && compare_lower(RHS) == 0; 188 return Length == RHS.Length && compare_lower(RHS) == 0; 196 if (int Res = compareMemory(Data, RHS.Data, std::min(Length, RHS.Length))) 196 if (int Res = compareMemory(Data, RHS.Data, std::min(Length, RHS.Length))) 200 if (Length == RHS.Length) 200 if (Length == RHS.Length) 202 return Length < RHS.Length ? -1 : 1; 202 return Length < RHS.Length ? -1 : 1; 240 return std::string(Data, Length); 249 assert(Index < Length && "Invalid index!"); 277 return Length >= Prefix.Length && 277 return Length >= Prefix.Length && 278 compareMemory(Data, Prefix.Data, Prefix.Length) == 0; 288 return Length >= Suffix.Length && 288 return Length >= Suffix.Length && 289 compareMemory(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0; 289 compareMemory(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0; 306 size_t FindBegin = std::min(From, Length); 307 if (FindBegin < Length) { // Avoid calling memchr with nullptr. 309 if (const void *P = ::memchr(Data + FindBegin, C, Length - FindBegin)) 366 From = std::min(From, Length); 479 for (size_t i = 0, e = Length; i != e; ++i) 599 Start = std::min(Start, Length); 600 return StringRef(Data + Start, std::min(N, Length - Start)); 700 Start = std::min(Start, Length); 701 End = std::min(std::max(Start, End), Length); 810 return drop_front(std::min(Length, find_first_not_of(Char))); 817 return drop_front(std::min(Length, find_first_not_of(Chars))); 824 return drop_back(Length - std::min(Length, find_last_not_of(Char) + 1)); 824 return drop_back(Length - std::min(Length, find_last_not_of(Char) + 1)); 831 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1)); 831 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));lib/Support/StringRef.cpp
38 if (int Res = ascii_strncasecmp(Data, RHS.Data, std::min(Length, RHS.Length))) 38 if (int Res = ascii_strncasecmp(Data, RHS.Data, std::min(Length, RHS.Length))) 40 if (Length == RHS.Length) 40 if (Length == RHS.Length) 42 return Length < RHS.Length ? -1 : 1; 42 return Length < RHS.Length ? -1 : 1; 47 return Length >= Prefix.Length && 47 return Length >= Prefix.Length && 48 ascii_strncasecmp(Data, Prefix.Data, Prefix.Length) == 0; 53 return Length >= Suffix.Length && 53 return Length >= Suffix.Length && 54 ascii_strncasecmp(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0; 54 ascii_strncasecmp(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0; 64 for (size_t I = 0, E = std::min(Length, RHS.Length); I != E; ++I) { 64 for (size_t I = 0, E = std::min(Length, RHS.Length); I != E; ++I) { 71 bool ld = J < Length && isDigit(Data[J]); 72 bool rd = J < RHS.Length && isDigit(RHS.Data[J]); 88 if (Length == RHS.Length) 88 if (Length == RHS.Length) 90 return Length < RHS.Length ? -1 : 1; 90 return Length < RHS.Length ? -1 : 1; 133 if (From > Length) 137 size_t Size = Length - From; 193 From = std::min(From, Length); 209 if (N > Length) 211 for (size_t i = Length - N + 1, e = 0; i != e;) { 221 if (N > Length) 223 for (size_t i = Length - N + 1, e = 0; i != e;) { 241 for (size_type i = std::min(From, Length), e = Length; i != e; ++i) 241 for (size_type i = std::min(From, Length), e = Length; i != e; ++i) 250 for (size_type i = std::min(From, Length), e = Length; i != e; ++i) 250 for (size_type i = std::min(From, Length), e = Length; i != e; ++i) 266 for (size_type i = std::min(From, Length), e = Length; i != e; ++i) 266 for (size_type i = std::min(From, Length), e = Length; i != e; ++i) 282 for (size_type i = std::min(From, Length) - 1, e = -1; i != e; --i) 291 for (size_type i = std::min(From, Length) - 1, e = -1; i != e; --i) 307 for (size_type i = std::min(From, Length) - 1, e = -1; i != e; --i) 375 if (N > Length) 377 for (size_t i = 0, e = Length - N + 1; i != e; ++i)