System.Globalization.Message.Encode C# (CSharp) 메소드

Encode() 개인적인 메소드

Encodes a string line of text suitable for msgstr
private Encode ( string text ) : string
text string
리턴 string
        private string Encode(string text)
        {
            return (text ?? string.Empty).Replace("\"", "\\\\").Replace("\n", "\\n\"\n\"");
        }