• 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
Weird problems with escaping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird problems with escaping


  • Subject: Weird problems with escaping
  • From: Mark Munz <email@hidden>
  • Date: Mon, 19 Apr 2004 10:59:38 -0600

I'm running into a weird problem with escaping. When I using a string like the following:

@"\\x11|\\x{1212}"

it shows up in the debugger as "\\xD1|\\xD0|\\x{1011}|\\x{2022}" (double backslashes)

However, if I use a single backslash:

@"\x11|\x{1212}"

The compiler complains that the second entry doesn't have a valid hex value (trying to interpret \xHH).

Am I missing something obvious here? It in the first example, the compiler isn't escaping (\\ should be single \) and in the second example, the compiler is escaping (choking on \x{2022}). There doesn't seem to be a way to get a string that is "\x11|\x{1212}".

Any insight is appreciated.

Mark Munz
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: fobjc-exceptions generates new warnings?
  • Next by Date: Re: xcode chokes on #include<somefile.lxx>
  • Previous by thread: fobjc-exceptions generates new warnings?
  • Next by thread: Cocoa and Boost.Python
  • Index(es):
    • Date
    • Thread