| commit | f114b40c7310d04b984dd0b0800718f74382d991 | [log] [tgz] |
|---|---|---|
| author | Vedant Kumar <vsk@apple.com> | Tue Feb 16 01:48:39 2016 +0000 |
| committer | Vedant Kumar <vsk@apple.com> | Tue Feb 16 01:48:39 2016 +0000 |
| tree | 773ea7e1e1a8b95c9bfc5204eebe8d5e10a5a89b | |
| parent | 975ce8fab505b29c9a49f6d1f0d84193f81d3661 [diff] |
[ADT] Add StringRef::{l,r}trim(char) overloads (NFC)
Add support for trimming a single kind of character from a StringRef.
This makes the common case of trimming null bytes much neater. It's also
probably a bit speedier too, since it avoids creating a std::bitset in
find_{first,last}_not_of.
llvm-svn: 260925