Add startsWith, endsWith, removePrefix, removeSuffix to folly::Range
Summary: Yes, I know about boost::starts_with, but I think the convenience is worth it. Also, I've written then equivalent of removePrefix / removeSuffix way too many times. Test Plan: test added Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D1106425
Showing
Please register or sign in to comment