Files
clang-p2996/llvm/lib/Support/StringRef.cpp
Benjamin Kramer 2f851f26ea [ADT] Forward some StringRef::find overloads to std::string_view
These are identical in terms of functionality and performance (checked
libc++ and libstdc++). We could do the same for rfind, but that actually
has a off-by one on its position argument.

StringRef::find(StringRef) seems to be quite a bit more optimized than
the standard library one, so leave it alone.
2023-01-15 21:20:55 +01:00

18 KiB