They are essentially a combination of startswith and a self-modifying
drop_front, or endswith and drop_back respectively.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks Pete & George, submitted with your fixes
include/llvm/ADT/StringRef.h | ||
---|---|---|
452 | I suspect I'll want to just use them for optional consuming some times... But I think your suggestion is right. IF the pattern becomes anonying to make explicit, can always drop it. |
Do we want LLVM_ATTRIBUTE_UNUSED_RESULT on these, as well?