logic/parser/TableExcelExportTxt.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace tablegen2.logic
{
    public class TableExcelExportTxt
    {

       // public static void appendFormatLineEx(StringBuilder sb, int indent, string fmtstr, params object[] args)
       // {
       //     if (indent > 0)
       //         sb.Append(new String('\t', indent));
       //         //sb.Append(new String('\t', indent * 4));
       //
       //     sb.AppendFormat(fmtstr, args);
       //     sb.AppendLine();
       // }
        public static void appendFormatLine(StringBuilder sb, int indent, string fmtstr)
        {

      
                if (string.IsNullOrWhiteSpace(fmtstr.Trim()))
                {
                    fmtstr = Regex.Replace(string.Empty, @"\s", "");
                }
                else
                {
                    fmtstr = Regex.Replace(fmtstr, @"\s", "");
                }
                fmtstr = Regex.Replace(fmtstr, @"\t", "");
            
               // sb.Append(new String('\t', indent));
            //sb.Append(new String('\t', indent * 4));
          
            sb.Append(fmtstr);
            //sb.AppendLine();

        }

        public static void appendFormatLine(StringBuilder sb,string fmtstr)
        {

            if (string.IsNullOrWhiteSpace(fmtstr))
            {
                sb.Append(Regex.Replace(string.Empty, @"\s", ""));
     
            }
            else
            {
                sb.Append(Regex.Replace(fmtstr, @"\s", ""));
            }
        
            sb.Append("\t");
     
       

后面还有 58 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。