diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2016-07-31 02:19:13 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2016-07-31 02:19:13 +0000 |
| commit | 974c67e7c6101328c3791e560fa187227a525065 (patch) | |
| tree | 408707ad1302650258a6b172e72909e99ea17c96 /llvm/lib/Support/DeltaAlgorithm.cpp | |
| parent | 5e5501861a268e09bb5307ca41112f91e49bc08d (diff) | |
| download | bcm5719-llvm-974c67e7c6101328c3791e560fa187227a525065.tar.gz bcm5719-llvm-974c67e7c6101328c3791e560fa187227a525065.zip | |
[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
Diffstat (limited to 'llvm/lib/Support/DeltaAlgorithm.cpp')
0 files changed, 0 insertions, 0 deletions

