• 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: LLDB: Printing Unicode in the Console
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LLDB: Printing Unicode in the Console


  • Subject: Re: LLDB: Printing Unicode in the Console
  • From: Andreas Grosam <email@hidden>
  • Date: Thu, 15 Mar 2012 09:05:05 +0100

On Mar 13, 2012, at 8:03 PM, Rick Mann wrote:

> Dunno if this would help, but if you add some category methods to NSData to print the data the way you like, you can probably invoke those from LLDB.

Thanks for the tips so far.

For NSData and friends can easily write a category.

But, for void pointers, as in:


void foo(const void* s,  size_t length)
{
	// s points to a byte sequence which is encoded in say, UTF-16LE.
}


How can I print the byte sequence formatted as UTF-16LE as a string to the console?

I would expect LLDB would provide a built-in feature for this.



Andreas
 _______________________________________________
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

References: 
 >LLDB: Printing Unicode in the Console (From: Andreas Grosam <email@hidden>)
 >Re: LLDB: Printing Unicode in the Console (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Instruments shows Mac targets instead of iOS targets. Why?
  • Next by Date: Workspace Specific Environment Variables
  • Previous by thread: Re: LLDB: Printing Unicode in the Console
  • Next by thread: Wrong value for DEVELOPER_FRAMEWORKS_DIR in Xcode 4.3
  • Index(es):
    • Date
    • Thread