开发者

Avoiding escape sequence processing in ActionScript?

开发者 https://www.devze.com 2022-12-10 19:28 出处:网络
I need to mimic C# functionality of the @ symbol when it precedes a string. @\"C:\\A\\File\\Path\"开发者_开发问答 for example

I need to mimic C# functionality of the @ symbol when it precedes a string.

@"C:\A\File\Path"开发者_开发问答 for example

What is the best way to do this? Also there are some sites that will escape larger strings for you so that they survive the processing but I could not find one for Actionscript.

Help?


No, unfortunately there is no support for verbatim string literals in actionscript. You are going to have to escape them manually. Even calling string.replace("\", "\\") doesn't work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号