Skip to content
Commit 974c67e7 authored by Chandler Carruth's avatar Chandler Carruth
Browse files

[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
parent 5e550186
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment