[PATCH] D25299: Add StringRef::find_lower and contains_lower
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 6 10:44:40 PDT 2016
zturner updated this revision to Diff 73821.
zturner added a comment.
Actually I don't see why we shouldn't just use `startswith_lower`. It basically does exactly what you're saying. Updated the code to use this approach. While I'm in here, I think we might as well add `rfind_lower` to maintain API symmetry, so I went ahead and did that too.
https://reviews.llvm.org/D25299
Files:
include/llvm/ADT/StringRef.h
lib/Support/StringRef.cpp
unittests/ADT/StringRefTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25299.73821.patch
Type: text/x-patch
Size: 7745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161006/eea5097b/attachment.bin>
More information about the llvm-commits
mailing list