develooper Front page | perl.perl6.internals.unicode | Postings from February 2001

Re: string encoding

Thread Previous | Thread Next
From:
Hong Zhang
Date:
February 16, 2001 16:42
Subject:
Re: string encoding
Message ID:
057b01c0987b$badaba70$2d031dc0@wora


> On Fri, Feb 16, 2001 at 02:39:10PM -0800, Hong Zhang wrote:
> > But you can not use memcmp() to compare binary order of two UTF-32
> > strings on little endian machines, even both strings are using
> > the same endian.
>
> Yes, you can.

Yes and no. You can use for eq(), but not for cmp(). On little endian
machine, the memcmp() will first compare the least significant byte, not
most.

Hong


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About