Re: How to detect endian-ness in Swift?
Re: How to detect endian-ness in Swift?
- Subject: Re: How to detect endian-ness in Swift?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 23 Jul 2014 15:09:39 +0200
Doesn't swift support only little endian platform anyway ?
Le 23 juil. 2014 à 11:59, Gerriet M. Denkmann <email@hidden> a écrit :
> This compiles without warnings:
>
> #if __LITTLE_ENDIAN__
> let encoding = NSUTF32LittleEndianStringEncoding;
> println("LittleEndian")
> #else
> let encoding = NSUTF32BigEndianStringEncoding;
> println("BigEndian")
> #endif
>
> But it prints "BigEndian", which probably is NOT quite right.
> How to correctly set my encoding?
>
> Gerriet.
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden