DoubleQuote() 공개 정적인 메소드

public static DoubleQuote ( string str ) : string
str string
리턴 string
예제 #1
0
 /// <summary>
 /// This function should only be called from child class
 /// Note : this function includes first ','
 /// </summary>
 /// <returns></returns>
 public virtual string ForgeRawLine()
 {
     if (ToolTip != null)
     {
         return("," + StringEscaper.DoubleQuote($"__{ToolTip}"));
     }
     return(string.Empty);
 }
예제 #2
0
 public string ForgeToolTip()
 {
     if (ToolTip != null)
     {
         return("," + StringEscaper.DoubleQuote($"__{ToolTip}"));
     }
     return(string.Empty);
 }
예제 #3
0
        public override string ForgeRawLine()
        {
            StringBuilder b = new StringBuilder();

            b.Append(",");
            b.Append(StringEscaper.DoubleQuote(Url));
            b.Append(base.ForgeRawLine());
            return(b.ToString());
        }
예제 #4
0
        public override string ForgeRawLine()
        {
            StringBuilder b = new StringBuilder();

            b.Append(",");
            b.Append(StringEscaper.DoubleQuote(Value));
            b.Append(ForgeToolTip());
            return(b.ToString());
        }
예제 #5
0
        public override string ForgeRawLine()
        {
            StringBuilder b = new StringBuilder();

            b.Append(",");
            b.Append(StringEscaper.DoubleQuote(SectionName));
            b.Append(",");
            b.Append(Picture == null ? "0" : StringEscaper.DoubleQuote(Picture));
            b.Append(HideProgress ? ",True" : ",False");
            b.Append(base.ForgeRawLine());
            return(b.ToString());
        }
예제 #6
0
        public override string ForgeRawLine()
        {
            StringBuilder b = new StringBuilder();

            if (!string.IsNullOrWhiteSpace(Url))
            {
                b.Append(",");
                b.Append(StringEscaper.DoubleQuote(Url));
            }
            b.Append(base.ForgeRawLine());
            return(b.ToString());
        }
예제 #7
0
        public override string ForgeRawLine()
        {
            StringBuilder b = new StringBuilder();

            b.Append(Value ? ",True" : ",False");
            if (SectionName != null)
            {
                b.Append(",_");
                b.Append(StringEscaper.DoubleQuote(SectionName));
                b.Append("_");
                b.Append(HideProgress ? ",True" : ",False");
            }
            b.Append(base.ForgeRawLine());
            return(b.ToString());
        }
예제 #8
0
        public override string ForgeRawLine()
        {
            StringBuilder b = new StringBuilder();

            foreach (string item in Items)
            {
                b.Append(",");
                b.Append(StringEscaper.DoubleQuote(item));
            }
            if (SectionName != null)
            {
                b.Append(",_");
                b.Append(StringEscaper.DoubleQuote(SectionName));
                b.Append("_");
                b.Append(HideProgress ? ",True" : ",False");
            }
            b.Append(ForgeToolTip());
            return(b.ToString());
        }
예제 #9
0
        public string ForgeRawLine(bool includeKey)
        {
            StringBuilder b = new StringBuilder();

            if (includeKey)
            {
                b.Append(Key);
                b.Append("=");
            }
            b.Append(StringEscaper.DoubleQuote(Text));
            b.Append(",");
            b.Append(Visibility ? "1," : "0,");
            b.Append((int)Type);
            b.Append(",");
            b.Append(X);
            b.Append(",");
            b.Append(Y);
            b.Append(",");
            b.Append(Width);
            b.Append(",");
            b.Append(Height);
            b.Append(Info.ForgeRawLine());
            return(b.ToString());
        }