[llvm-commits] [llvm] r156652 - in /llvm/trunk: include/llvm/ADT/StringRef.h lib/Support/StringRef.cpp unittests/ADT/StringRefTest.cpp
Michael Spencer
bigcheesegs at gmail.com
Fri May 11 15:22:44 PDT 2012
On Fri, May 11, 2012 at 3:17 PM, Chandler Carruth <chandlerc at google.com> wrote:
> One more nit I missed in my pass: these need doxygen comments. =]
I thought I added them... Fixing.
- Michael Spencer
> On Fri, May 11, 2012 at 3:08 PM, Michael J. Spencer <bigcheesegs at gmail.com>
> wrote:
>>
>> + StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const {
>> + return drop_front(std::min(Length, find_first_not_of(Chars)));
>> + }
>> +
>> + StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const {
>> + return drop_back(Length - std::min(Length, find_last_not_of(Chars)
>> + 1));
>> + }
>> +
>> + StringRef trim(StringRef Chars = " \t\n\v\f\r") const {
>> + return ltrim(Chars).rtrim(Chars);
>> + }
>> +
>
>
More information about the llvm-commits
mailing list