yangxu998 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Left and Right trim on Splitter #661

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all.

I was looking for a way to use trimming in Splitter only from the left or 
right. I finally Splitter added 4 new methods for trimming from right and left. 
I think it is applicable to all other users of your libraries.

Modified class com.google.common.base.Splitter is attached.

Original issue reported on code.google.com by libor.on...@gmail.com on 14 Jul 2011 at 7:00

Attachments:

GoogleCodeExporter commented 9 years ago
This kind of thing can usually be done by including whitespace in your 
delimiter regex or by passing the returned pieces to the CharMatcher.trim* 
family of methods. I don't think it is necessary to add these new methods to 
Splitter.

Original comment by kevinb@google.com on 15 Jul 2011 at 1:52

GoogleCodeExporter commented 9 years ago
OK, thanks for the reply.

Libor.

*Libor Ondrušek*
libor.ondrusek@gmail.com <mailto:libor.ondrusek@gmail.com>
librucha.cz <http://www.librucha.cz>
**

Original comment by libor.on...@gmail.com on 15 Jul 2011 at 6:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09