[llvm-commits] [PATCH][Support/StringRef] Add rtrim.

Benjamin Kramer benny.kra at googlemail.com
Thu May 10 00:07:17 PDT 2012


On 10.05.2012, at 01:37, Michael Spencer <bigcheesegs at gmail.com> wrote:

> I need rtrim (right trim) for the YAML parser.
>
> An alternative implementation would be to add rfind_first_not_of and
> then implement in terms of that.

Don't we already have StringRef::find_last_not_of?

-Ben
>
> Patch attached.
>
> - Michael Spencer
> <rtrim.patch>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list