DoubleQuote() public static method

public static DoubleQuote ( string str ) : string
str string
return string
Example #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);
 }
Example #2
0
 public string ForgeToolTip()
 {
     if (ToolTip != null)
     {
         return("," + StringEscaper.DoubleQuote($"__{ToolTip}"));
     }
     return(string.Empty);
 }
Example #3
0
        public override string ForgeRawLine()
        {
            StringBuilder b = new StringBuilder();

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

            b.Append(",");
            b.Append(StringEscaper.DoubleQuote(Value));
            b.Append(ForgeToolTip());
            return(b.ToString());
        }
Example #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());
        }
Example #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());
        }
Example #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());
        }
Example #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());
        }
Example #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());
        }