c++ @-quoting

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

c++ @-quoting

 
0
  #1
Feb 5th, 2009
in C# if you add @ before your string literals the escape sequences are not processed, so :

you can use :
  1. @"c:\Docs\Source\a.txt" // rather than "c:\\Docs\\Source\\a.txt"
is there any c++ equivalent of doing that?

Thanks
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 320
Reputation: cikara21 is an unknown quantity at this point 
Solved Threads: 63
cikara21's Avatar
cikara21 cikara21 is offline Offline
Posting Whiz

Re: c++ @-quoting

 
-1
  #2
Feb 5th, 2009
yeah i guess...
  1. "c:/Docs/Source/a.txt"
.:-cikara21-:.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,047
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: c++ @-quoting

 
3
  #3
Feb 5th, 2009
Originally Posted by serkan sendur View Post
is there any c++ equivalent of doing that?
Nope
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 9
Reputation: dewyatt is an unknown quantity at this point 
Solved Threads: 1
dewyatt dewyatt is offline Offline
Newbie Poster

Re: c++ @-quoting

 
-1
  #4
Feb 5th, 2009
No, there isn't.
I wish there was.

But like cikara21 pointed out, you can use forward slashes for directory strings, if that's your only concern.
You should really always use forward slashes anyways as they are more cross-platform I believe (Windows can go either way, Linux/Unix usually require forward slashes).
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: c++ @-quoting

 
1
  #5
Feb 5th, 2009
No my question was about not processing escape characters, it was not about file paths. But thanks for the answers, it is also good to know what not to search for.
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 320
Reputation: cikara21 is an unknown quantity at this point 
Solved Threads: 63
cikara21's Avatar
cikara21 cikara21 is offline Offline
Posting Whiz

Re: c++ @-quoting

 
0
  #6
Feb 5th, 2009
Originally Posted by dewyatt View Post
No, there isn't.
I wish there was.
yeah..really sorry for that..
Last edited by cikara21; Feb 5th, 2009 at 10:17 pm.
.:-cikara21-:.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC