Escape() 정적인 개인적인 메소드

static private Escape ( string aText ) : string
aText string
리턴 string
        public override string ToString(string aPrefix)
        {
            string text = "{ ";

            using (Dictionary <string, JSONNode> .Enumerator enumerator = this.m_Dict.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    KeyValuePair <string, JSONNode> current = enumerator.get_Current();
                    if (text.get_Length() > 3)
                    {
                        text += ", ";
                    }
                    text = text + "\n" + aPrefix + "   ";
                    string text2 = text;
                    text = string.Concat(new string[]
                    {
                        text2,
                        "\"",
                        JSONNode.Escape(current.get_Key()),
                        "\" : ",
                        current.get_Value().ToString(aPrefix + "   ")
                    });
                }
            }
            text = text + "\n" + aPrefix + "}";
            return(text);
        }
예제 #2
0
        public override string ToString()
        {
            string text = "{";

            foreach (KeyValuePair <string, JSONNode> item in m_Dict)
            {
                if (text.Length > 2)
                {
                    text += ", ";
                }
                string text2 = text;
                text = text2 + "\"" + JSONNode.Escape(item.Key) + "\":" + item.Value.ToString();
            }
            return(text + "}");
        }
        public override string ToString()
        {
            string str = "{";

            foreach (KeyValuePair <string, JSONNode> mDict in this.m_Dict)
            {
                if (str.Length > 2)
                {
                    str = string.Concat(str, ", ");
                }
                string str1 = str;
                str = string.Concat(new string[] { str1, "\"", JSONNode.Escape(mDict.Key), "\":", mDict.Value.ToString() });
            }
            str = string.Concat(str, "}");
            return(str);
        }
예제 #4
0
        // Token: 0x060002D1 RID: 721 RVA: 0x0000C0AC File Offset: 0x0000A2AC
        internal override void WriteToStringBuilder(StringBuilder aSB, int aIndent, int aIndentInc, JSONTextMode aMode)
        {
            aSB.Append('{');
            bool flag = true;

            if (this.inline)
            {
                aMode = JSONTextMode.Compact;
            }
            foreach (KeyValuePair <string, JSONNode> keyValuePair in this.m_Dict)
            {
                if (!flag)
                {
                    aSB.Append(',');
                }
                flag = false;
                if (aMode == JSONTextMode.Indent)
                {
                    aSB.AppendLine();
                }
                if (aMode == JSONTextMode.Indent)
                {
                    aSB.Append(' ', aIndent + aIndentInc);
                }
                aSB.Append('"').Append(JSONNode.Escape(keyValuePair.Key)).Append('"');
                if (aMode == JSONTextMode.Compact)
                {
                    aSB.Append(':');
                }
                else
                {
                    aSB.Append(" : ");
                }
                keyValuePair.Value.WriteToStringBuilder(aSB, aIndent + aIndentInc, aIndentInc, aMode);
            }
            if (aMode == JSONTextMode.Indent)
            {
                aSB.AppendLine().Append(' ', aIndent);
            }
            aSB.Append('}');
        }
예제 #5
0
        public override String ToString()
        {
            String text = "{";

            foreach (KeyValuePair <String, JSONNode> keyValuePair in this.m_Dict)
            {
                if (text.Length > 2)
                {
                    text += ", ";
                }
                String text2 = text;
                text = String.Concat(new String[]
                {
                    text2,
                    "\"",
                    JSONNode.Escape(keyValuePair.Key),
                    "\":",
                    keyValuePair.Value.ToString()
                });
            }
            text += "}";
            return(text);
        }
예제 #6
0
        public override string ToString(string aPrefix)
        {
            string text = "{ ";

            foreach (KeyValuePair <string, JSONNode> keyValuePair in this.m_Dict)
            {
                if (text.Length > 3)
                {
                    text += ", ";
                }
                text = text + "\n" + aPrefix + "   ";
                string text2 = text;
                text = string.Concat(new string[]
                {
                    text2,
                    "\"",
                    JSONNode.Escape(keyValuePair.Key),
                    "\" : ",
                    keyValuePair.Value.ToString(aPrefix + "   ")
                });
            }
            text = text + "\n" + aPrefix + "}";
            return(text);
        }
예제 #7
0
 public override String ToString(String aPrefix)
 {
     return("\"" + JSONNode.Escape(this.m_Data) + "\"");
 }
예제 #8
0
 public override string ToString()
 {
     return("\"" + JSONNode.Escape(this.m_Data) + "\"");
 }
예제 #9
0
 public override string ToString(string aPrefix)
 {
     return("\"" + JSONNode.Escape(m_Data) + "\"");
 }
예제 #10
0
 internal override void WriteToStringBuilder(StringBuilder aSB, int aIndent, int aIndentInc, JSONTextMode aMode)
 {
     aSB.Append('"').Append(JSONNode.Escape(m_Data)).Append('"');
 }
예제 #11
0
 public override string ToString(string aPrefix)
 {
     return(string.Concat("\"", JSONNode.Escape(this.m_Data), "\""));
 }