Common/StringHelper.cs

(开头部分) 48KB

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


// StringHelper.cs
// CopyRight (c) 2009-2016 WMPT Teconology. All Rights Reserved.
// 123@163.com.com
// 2010-01-12
// 字符串帮助类

using System;
using System.Drawing;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using Microsoft.VisualBasic;
using System.Collections;
using System.Net;


namespace WMPT.Common
{
    public static class StringHelper
    {
        private static Regex RegexBr = new Regex(@"(\r\n)", RegexOptions.IgnoreCase);
        public static Regex RegexFont = new Regex(@"<font color=" + "\".*?\"" + @">([\s\S]+?)</font>", Utils.GetRegexCompiledOptions());

        public static bool IsNullorEmpty(string text)
        {
            return ((text == null) || (text.Trim() == string.Empty));
        }

        /// <summary>
        /// 忽略大小写判断是否相等
        /// </summary>
        /// <param name="a"></param>
        /// <param name="b"></param>
        /// <returns></returns>
        public static bool EqualsIgnoreCase(string a, string b)
        {
            if (a == b)
            {
                return true;
            }
            if (IsNullorEmpty(a) || IsNullorEmpty(b))
            {
                return false;
            }
            return string.Equals(a.Trim().ToLower(), b.Trim().ToLower());
        }

        /// <summary>
        /// 字符串text中是否包含inner
        /// </summary>
        /// <param name="text"></param>
        /// <param name="inner"></param>
        /// <returns></returns>
后面还有 1373 行代码,购买后查看完整代码

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

AI 解读 AI

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

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