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.
18 KiB
18 KiB