zoukankan      html  css  js  c++  java
  • asp.net正则表达式类的定义

    using System;
    using System.Collections;
    using System.Reflection;
    using System.Reflection.Emit;
    using System.Runtime;
    using System.Runtime.Serialization;
    
    namespace System.Text.RegularExpressions
    {
        [Serializable]
        public class Regex : ISerializable
        {
            protected internal Hashtable capnames;
            protected internal Hashtable caps;
            protected internal int capsize;
            protected internal string[] capslist;
            protected internal RegexRunnerFactory factory;
            protected internal string pattern;
            protected internal RegexOptions roptions;       
            [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
            protected Regex();
            [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
            public Regex(string pattern);
            protected Regex(SerializationInfo info, StreamingContext context);
            [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
            public Regex(string pattern, RegexOptions options);
            public static int CacheSize { get; set; }
            public RegexOptions Options { get; }
            public bool RightToLeft { get; }
            [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
            public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname);
            [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
            public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes);
            [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
            public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes, string resourceFile);
            public static string Escape(string str);
            public string[] GetGroupNames();
            public int[] GetGroupNumbers();
            public string GroupNameFromNumber(int i);
            public int GroupNumberFromName(string name);
            protected void InitializeReferences();
            public bool IsMatch(string input);
            public bool IsMatch(string input, int startat);
            public static bool IsMatch(string input, string pattern);
            public static bool IsMatch(string input, string pattern, RegexOptions options);
            public Match Match(string input);
            public Match Match(string input, int startat);
            public static Match Match(string input, string pattern);
            public Match Match(string input, int beginning, int length);
            public static Match Match(string input, string pattern, RegexOptions options);
            public MatchCollection Matches(string input);
            public MatchCollection Matches(string input, int startat);
            public static MatchCollection Matches(string input, string pattern);
            public static MatchCollection Matches(string input, string pattern, RegexOptions options);
            public string Replace(string input, MatchEvaluator evaluator);
            public string Replace(string input, string replacement);
            public string Replace(string input, MatchEvaluator evaluator, int count);
            public string Replace(string input, string replacement, int count);
            public static string Replace(string input, string pattern, MatchEvaluator evaluator);
            public static string Replace(string input, string pattern, string replacement);
            public string Replace(string input, MatchEvaluator evaluator, int count, int startat);
            public string Replace(string input, string replacement, int count, int startat);
            public static string Replace(string input, string pattern, MatchEvaluator evaluator, RegexOptions options);
            public static string Replace(string input, string pattern, string replacement, RegexOptions options);
            public string[] Split(string input);
            public string[] Split(string input, int count);
            public static string[] Split(string input, string pattern);
            public string[] Split(string input, int count, int startat);
            public static string[] Split(string input, string pattern, RegexOptions options);
            public override string ToString();
            public static string Unescape(string str);
            protected bool UseOptionC();
            protected bool UseOptionR();
        }
    }
    
  • 相关阅读:
    927小程序繁星计划峰会 · 看完这七大话题 你会更了解阿里小程序
    不吹不黑,今天我们来聊一聊 Kubernetes 落地的三种方式
    虽然他们说是水题,但我觉得思想蛮好的
    新学dfs(看懂了)
    01背包,死记硬背(我是真的蠢)
    装箱问题(太笨、还没想通)
    高精度乘法,string中的坑
    双十一用python秒杀京东好货!
    高精度减法用string 和 stack
    n阶汉诺塔 记住吧。。
  • 原文地址:https://www.cnblogs.com/sntetwt/p/3409930.html
Copyright © 2011-2022 走看看