• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting four char code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting four char code


  • Subject: Re: Converting four char code
  • From: Andrew Pinski <email@hidden>
  • Date: Mon, 10 Feb 2003 20:21:42 -0800

'AAPL'&0xFF == 'L'
('AAPL'>>8)&0xFF == 'P'
('AAPL'>>16)&0xFF == 'A'
('AAPL'>>24)&0xFF == 'A'

Note I used 'AAPL' as that is apple's ticker id.

Thanks,
Andrew Pinski

On Monday, Feb 10, 2003, at 19:37 US/Pacific, Greg Hulands wrote:

Hi,
Can anyone tell me how to convert a four-char code into 4 chars?

eg.

'APPL' into 'A' 'P' 'P' 'L'


Thanks,
Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Converting four char code (From: Greg Hulands <email@hidden>)

  • Prev by Date: Re: Converting four char code
  • Next by Date: Re: Converting four char code
  • Previous by thread: Re: Converting four char code
  • Next by thread: Re: Converting four char code
  • Index(es):
    • Date
    • Thread