博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
asp.net正则表达式类的定义
阅读量:6464 次
发布时间:2019-06-23

本文共 4506 字,大约阅读时间需要 15 分钟。

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();    }}

 

转载地址:http://sohzo.baihongyu.com/

你可能感兴趣的文章
继承与派生
查看>>
Tengine + uwsgi + django平台搭建
查看>>
View Horizon Mirage安装手册(三)——Mirage Management安装
查看>>
SQL触发器总结
查看>>
利用组策略管理Microsoft Office 2007
查看>>
Linux 系统运维学习方法汇总
查看>>
Zabbix监控之检测程序日志中错误发生的次数
查看>>
Msg 15138 The database principal owns a schema in the database, and cannot be dropped.
查看>>
Tomcat6.0连接器源码分析
查看>>
Cassandra 中的Snitch
查看>>
Impress.js上手 - 抛开PPT、制作Web 3D幻灯片放映
查看>>
生活杂事--度过十一中秋
查看>>
Pyrex也许是一个好东西
查看>>
Java内部类总结
查看>>
NeHe OpenGL第二课:多边形
查看>>
让WP7下复杂列表选项生动起来
查看>>
WINFORM WPF字体颜色相互转换
查看>>
能力不是仅靠原始积累(三)
查看>>
实战:使用终端服务网关访问终端服务
查看>>
彻底学会使用epoll(一)——ET模式实现分析
查看>>