[ADT] Add 'consume_front' and 'consume_back' methods to StringRef which
are very handy when parsing text. They are essentially a combination of startswith and a self-modifying drop_front, or endswith and drop_back respectively. Differential Revision: https://reviews.llvm.org/D22723 llvm-svn: 277288
Loading
Please sign in to comment