BLL/Program.cs

(开头部分) 11KB

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

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

namespace HTNResp.BLL
{
    public class Program
    {

        public string testContent(string input)
        {

            HTNResp.BLL.ProjectDictionary bllProject = new BLL.ProjectDictionary();
            List<Model.ProjectDictionary> projectList = bllProject.DataTableToList(bllProject.GetList("").Tables[0]);
            string msg = "";
            if (String.IsNullOrEmpty(input))
                return msg = "字符串为空;";
            input = input.ToLower().Replace(" ", "").Trim();
            string withoutBrace = splitBrace(input);
            if (!checkEmpty(input))
            {
                msg += "括号为空附近错误;";
                return msg;
            }
            if (!checkPair(input))
            {
                msg += "括号未匹配;";
                return msg;
            }
            if (withoutBrace == null)
                msg += "大括号附近错误;";
            else
            {
                string[] listWithoutOr = splitOr(withoutBrace);
                List<string> listWithoutCurve = new List<string>();
                if (listWithoutOr != null)
                {
                    //if it contains 'or' then remove curve
                    listWithoutCurve = getOutCurve(listWithoutOr);
                    if (listWithoutCurve.Count != listWithoutOr.Length)
                    {
                        msg += "小括号附近错误;";
                        return msg;
                    }
                }
                else
                {
                    //else add no 'or' no curve string to list
                    listWithoutCurve.Add(withoutBrace);
                }

                List<string> listWithoutAnd = splitAnd(listWithoutCurve);
                if (listWithoutAnd == null)
                {
                    msg += "AND附近有错误;";
                    return msg;
                }
                List<string> listWithoutAt = splitAt(listWithoutAnd);
后面还有 263 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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