Fm.Tags/GlobalTags.cs

(开头部分) 77KB

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

/**********************************************************************************
 * ClassName:       GlobalTags
 * Description:     公用标签处理类
 * MemberVariable:
 * Functions:       
 * Modify information:     
 * 2009-11-5     New          Ayong     Create Class
 * 
 * ********************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using System.Data;
using System.Configuration;
using Fm.Bussiness;
using Fm.DataAccess;
using System.Web;
using System.Collections;
namespace Fm.Tags
{
    public class GlobalTags
    {
        Tags_sql sql = new Tags_sql();
/****************************************自由SQL标签解析**************************************************/
        /// <summary>
        /// 自由SQL标签解析
        /// </summary>
        /// <param name="content"></param>
        /// <returns></returns>
        public string Analysis_Freedom(string content)
        {
              //标签解析开始---
            string Attributes = "";//存储属性
            string Text = "";//存储标签Text
            string AllText="";
            //实例化正则对象
            Regex r = new Regex(@"(\{fm:freedom\s+(?<attributes>[^\]]*?)\}(?<text>[\s\S]*?)\{/fm:freedom\})", RegexOptions.Compiled | RegexOptions.IgnoreCase);

            foreach (Match m in r.Matches(content))
            {

                //存储新的内容
                StringBuilder str = new StringBuilder();
                Attributes = m.Groups["attributes"].ToString();
                Text = m.Groups["text"].ToString();
                AllText = m.Groups[0].Value.ToString();
                //获取相关属性
                string sqlstr = null;
                sqlstr = TagVal(Attributes,"sql");
                if (sqlstr == null)
                {
                    sqlstr = "";
                }
                string col = null;
                col = TagVal(Attributes,"col");
                if (col == null)
                {
                    col = "0";
后面还有 813 行代码,解锁后查看完整代码

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

AI 解读

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

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