public static string UnEscape(string s)
 {
     XStringFormatHelper._ResetSB();
     XStringFormatHelper._SB.Append(s);
     XStringFormatHelper._UnEscape();
     return(XStringFormatHelper._SB.ToString());
 }
예제 #2
0
        protected override void WriteLine(string[] Fields, BinaryWriter writer)
        {
            base.Write <string>(writer, Fields[this.ColMap[0]], CVSReader.stringParse);
            string text = Fields[this.ColMap[1]];

            text = XStringFormatHelper.Escape(text);
            base.Write <string>(writer, text, CVSReader.stringParse);
        }
 public static string FormatUI(string name, ulong uid, List <ulong> paramList = null)
 {
     XStringFormatHelper._ResetSB();
     XStringFormatHelper._SB.Append(XStringFormatHelper._EscapedLeftBracket).Append("ui=").Append(name).Append(XStringFormatHelper.EscapedSeparator).Append(uid);
     if (paramList != null)
     {
         for (int i = 0; i < paramList.Count; i++)
         {
             XStringFormatHelper._SB.Append(XStringFormatHelper.EscapedSeparator).Append(paramList[i]);
         }
     }
     XStringFormatHelper._SB.Append(XStringFormatHelper._EscapedRightBracket);
     return(XStringFormatHelper._SB.ToString());
 }
 public static string FormatSpeactate(string name, int liveid, int type)
 {
     XStringFormatHelper._ResetSB();
     XStringFormatHelper._SB.Append(XStringFormatHelper._EscapedLeftBracket).Append("sp=").Append(name).Append(XStringFormatHelper.EscapedSeparator).Append(liveid).Append(XStringFormatHelper.EscapedSeparator).Append(type).Append(XStringFormatHelper._EscapedRightBracket);
     return(XStringFormatHelper._SB.ToString());
 }
 public static string FormatPk(string name, ulong uid)
 {
     XStringFormatHelper._ResetSB();
     XStringFormatHelper._SB.Append(XStringFormatHelper._EscapedLeftBracket).Append("pk=").Append(name).Append(XStringFormatHelper.EscapedSeparator).Append(uid).Append(XStringFormatHelper._EscapedRightBracket);
     return(XStringFormatHelper._SB.ToString());
 }
 public static string FormatName(string name, ulong uid, string color = "00ffff")
 {
     XStringFormatHelper._ResetSB();
     XStringFormatHelper._SB.Append(XStringFormatHelper._EscapedLeftBracket).Append("nm=").Append(name).Append(XStringFormatHelper.EscapedSeparator).Append(color).Append(XStringFormatHelper.EscapedSeparator).Append(uid).Append(XStringFormatHelper._EscapedRightBracket);
     return(XStringFormatHelper._SB.ToString());
 }
 public static string FormatItem(string name, string itemquality, ulong uid)
 {
     XStringFormatHelper._ResetSB();
     XStringFormatHelper._SB.Append(XStringFormatHelper._EscapedLeftBracket).Append("it=").Append(name).Append(XStringFormatHelper.EscapedSeparator).Append(itemquality).Append(XStringFormatHelper.EscapedSeparator).Append(uid).Append(XStringFormatHelper._EscapedRightBracket);
     return(XStringFormatHelper._SB.ToString());
 }
 public static string FormatTeam(string name, int teamid, uint expid)
 {
     XStringFormatHelper._ResetSB();
     XStringFormatHelper._SB.Append(XStringFormatHelper._EscapedLeftBracket).Append("tm=").Append(name).Append(XStringFormatHelper.EscapedSeparator).Append(teamid).Append(XStringFormatHelper.EscapedSeparator).Append(expid).Append(XStringFormatHelper._EscapedRightBracket);
     return(XStringFormatHelper._SB.ToString());
 }
 public static string FormatAnimation(string atlas, string sprite, int frameRate)
 {
     XStringFormatHelper._ResetSB();
     XStringFormatHelper._SB.Append(XStringFormatHelper._EscapedLeftBracket).Append("an=").Append(atlas).Append(XStringFormatHelper.EscapedSeparator).Append(sprite).Append(XStringFormatHelper.EscapedSeparator).Append(frameRate.ToString()).Append(XStringFormatHelper._EscapedRightBracket);
     return(XStringFormatHelper._SB.ToString());
 }
 public static string FormatImage(string atlas, string sprite)
 {
     XStringFormatHelper._ResetSB();
     XStringFormatHelper._SB.Append(XStringFormatHelper._EscapedLeftBracket).Append("im=").Append(atlas).Append(XStringFormatHelper.EscapedSeparator).Append(sprite).Append(XStringFormatHelper._EscapedRightBracket);
     return(XStringFormatHelper._SB.ToString());
 }