find_last_not_of - Find the last character in the string that is not \arg C, or npos if not found.
| 289 | /// find_last_not_of - Find the last character in the string that is not |
| 290 | /// \arg C, or npos if not found. |
| 291 | StringRef::size_type StringRef::find_last_not_of(char C, size_t From) const { |
| 292 | for (size_type i = std::min(From, Length) - 1, e = -1; i != e; --i) |
| 293 | if (Data[i] != C) |
| 294 | return i; |
| 295 | return npos; |
| 296 | } |
| 297 | |
| 298 | /// find_last_not_of - Find the last character in the string that is not in |
| 299 | /// \arg Chars, or npos if not found. |