Kagamin wrote:
> You need only match 3-char strings?
> Try this hack
> 
> bool cmp3c(string a, string etalon) pure
> {
>   if(a.length!=3)return false;
>   return *cast(short*)a.ptr==*cast(short*)b.ptr && a[2]==b[2];
> }
        This doesn't work on some architectures if a.ptr or b.ptr is odd...

                Jerome
-- 
mailto:jeber...@free.fr
http://jeberger.free.fr
Jabber: jeber...@jabber.fr

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to