ios - concatenate backslash in swift -


this question has answer here:

how concatenate backslash in swift?

i.e. "some string" + "\"

escaping backslash gives me "some string\\" want "some string\"

any ideas on how accomplish this?

edit: don't want print out string, want concatenate backslash. escaping backslash store string 2 backslashes want one.

edit 2: think figured out. used "\"" , seems work me.

the double backslash solution correct (see console output in small sample)

enter image description here


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -