----- Original Message ----

> From: jesse <je...@fsck.com>
> 
> 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

Um, er.  Damn.  Now I'm wondering how my "leading" and "trailing" trimming 
works with Hebrew.  How are the strings implemented internally?

And then there are languages such as Manchu and Uygher which can be written 
vertically.  http://www.omniglot.com/writing/direction.htm

 
Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Reply via email to