On Mon, Jan 12, 2009 at 07:01:25AM -0800, Ovid wrote: > > > > I could optionally make the following work: > > > > > > > > $string.trim(:leading<0>); > > > > $string.trim(:trailing<0>); > > Alternatively, those could be ltrim() and rtrim(). 'left' and 'right' are probably not the right names for functions which trim leading and/or trailing space, since their meanings get somewhat ambiguous if a language renders right-to-left instead of left-to-right or vice-versa -jesse
- [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method Carl Mäsak
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim metho... jesse
- Re: [PATCH] Add .trim m... Ovid
- Re: [PATCH] Add .trim m... Gianni Ceccarelli
- Re: [PATCH] Add .trim m... jason switzer
- Re: [PATCH] Add .trim m... Ovid
- Re: [PATCH] Add .trim m... jason switzer
- Re: [PATCH] Add .trim metho... Aristotle Pagaltzis
- Re: [PATCH] Add .trim m... Jonathan Worthington
- Re: [PATCH] Add .trim metho... Geoffrey Broadwell
- Re: [PATCH] Add .trim m... Ovid
- Re: [PATCH] Add .trim m... Larry Wall