Microsoft.Automata.Rex.RexEngine.Escape C# (CSharp) Method

Escape() public static method

Make an escaped string from a string
public static Escape ( string s ) : string
s string
return string
        public static string Escape(string s)
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("\"");
            foreach (char c in s)
            {
                sb.Append(Escape(c));
            }
            sb.Append("\"");
            return sb.ToString();
        }

Same methods

RexEngine::Escape ( char c ) : string