172 if (ticks != -10000 && (ulong)(ticks - 1) >= 21474836460000
uL)
246 for (
int i = 0;
i <
array.Length;
i++)
267 for (
int i = 0;
i <
array.Length;
i++)
293 return num.ToString();
621 if (!
regex.RightToLeft)
623 regex.Run<(
SegmentStringBuilder,
MatchEvaluator, int,
string, int)>(
input,
startat,
ref state2,
delegate(
ref (
SegmentStringBuilder segments,
MatchEvaluator evaluator,
int prevat,
string input,
int count)
state,
Match match)
639 regex.Run<(
SegmentStringBuilder,
MatchEvaluator, int,
string, int)>(
input,
startat,
ref state2,
delegate(
ref (
SegmentStringBuilder segments,
MatchEvaluator evaluator,
int prevat,
string input,
int count)
state,
Match match)
651 state2.Item1.AsSpan().Reverse();
653 return state2.Item1.ToString();
710 return new string[1] {
input };
714 if (!
regex.RightToLeft)
716 regex.Run<(
List<string>, int,
string, int)>(
input,
startat,
ref state2,
delegate(
ref (
List<string> results,
int prevat,
string input,
int count)
state,
Match match)
731 return new string[1] {
input };
738 regex.Run<(
List<string>, int,
string, int)>(
input,
startat,
ref state2,
delegate(
ref (
List<string> results,
int prevat,
string input,
int count)
state,
Match match)
742 for (
int i = 1;
i <
match.Groups.Count;
i++)
753 return new string[1] {
input };
758 return state2.Item1.ToArray();
764 object data =
currentDomain.GetData(
"REGEX_DEFAULT_MATCH_TIMEOUT");
static AppDomain CurrentDomain
void Add(TKey key, TValue value)
IEnumerator IEnumerable. GetEnumerator()
static CultureInfo CurrentCulture
static CultureInfo InvariantCulture
static bool IsDynamicCodeCompiled
static string Format(string resourceFormat, object p1)
static string IllegalDefaultRegexMatchTimeoutInAppDomain
static string PlatformNotSupported_CompileToAssembly
static Regex GetOrAdd(string pattern)
static RegexRunnerFactory Compile(string pattern, RegexCode code, RegexOptions options, bool hasTimeout)
static RegexReplacement GetOrCreate(WeakReference< RegexReplacement > replRef, string replacement, Hashtable caps, int capsize, Hashtable capnames, RegexOptions roptions)
RegexRunner CreateInstance()
static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes, string? resourceFile)
Match Match(string input)
volatile RegexRunner _runner
Match Match(string input, int beginning, int length)
static Match Match(string input, string pattern, RegexOptions options)
string GroupNameFromNumber(int i)
static bool IsMatch(string input, string pattern)
static string Replace(string input, string pattern, string replacement)
static string Escape(string str)
void InitializeReferences()
static string Replace(MatchEvaluator evaluator, Regex regex, string input, int count, int startat)
static string Replace(string input, string pattern, MatchEvaluator evaluator, RegexOptions options)
string Replace(string input, string replacement)
Regex(string pattern, RegexOptions options, TimeSpan matchTimeout, CultureInfo culture)
RegexRunnerFactory? factory
string Replace(string input, string replacement, int count)
string[] Split(string input, int count, int startat)
static string[] Split(Regex regex, string input, int count, int startat)
static readonly TimeSpan InfiniteMatchTimeout
bool IsMatch(string input, int startat)
static MatchCollection Matches(string input, string pattern)
Match Match(string input, int startat)
Regex(SerializationInfo info, StreamingContext context)
static string[] Split(string input, string pattern)
static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes)
static void ValidateOptions(RegexOptions options)
static MatchCollection Matches(string input, string pattern, RegexOptions options, TimeSpan matchTimeout)
string Replace(string input, MatchEvaluator evaluator, int count, int startat)
bool IsMatch(string input)
static void ValidatePattern(string pattern)
static string Replace(string input, string pattern, MatchEvaluator evaluator)
string[] Split(string input)
static MatchCollection Matches(string input, string pattern, RegexOptions options)
override string ToString()
Match Run(bool quick, int prevlen, string input, int beginning, int length, int startat)
static readonly TimeSpan s_defaultMatchTimeout
static string Replace(string input, string pattern, MatchEvaluator evaluator, RegexOptions options, TimeSpan matchTimeout)
static bool IsMatch(string input, string pattern, RegexOptions options, TimeSpan matchTimeout)
MatchCollection Matches(string input)
Regex(string pattern, RegexOptions options, TimeSpan matchTimeout)
void Run< TState >(string input, int startat, ref TState state, MatchCallback< TState > callback, bool reuseMatchObject)
void Init(string pattern, RegexOptions options, TimeSpan matchTimeout, CultureInfo culture)
WeakReference< RegexReplacement > _replref
static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname)
static Match Match(string input, string pattern)
static void ValidateMatchTimeout(TimeSpan matchTimeout)
static Match Match(string input, string pattern, RegexOptions options, TimeSpan matchTimeout)
string Replace(string input, MatchEvaluator evaluator)
static TimeSpan InitDefaultMatchTimeout()
static string Replace(string input, string pattern, string replacement, RegexOptions options)
int GroupNumberFromName(string name)
string[] Split(string input, int count)
static string Unescape(string str)
static RegexRunnerFactory Compile(string pattern, RegexCode code, RegexOptions options, bool hasTimeout)
static bool IsMatch(string input, string pattern, RegexOptions options)
static string[] Split(string input, string pattern, RegexOptions options)
Regex(string pattern, RegexOptions options)
static string Replace(string input, string pattern, string replacement, RegexOptions options, TimeSpan matchTimeout)
static string[] Split(string input, string pattern, RegexOptions options, TimeSpan matchTimeout)
Regex(string pattern, CultureInfo culture)
string Replace(string input, MatchEvaluator evaluator, int count)
TimeSpan internalMatchTimeout
bool UseOptionInvariant()
void ReturnRunner(RegexRunner runner)
string Replace(string input, string replacement, int count, int startat)
MatchCollection Matches(string input, int startat)
static void ThrowNotSupportedException(ExceptionResource resource)
static void ThrowArgumentNullException(ExceptionArgument arg)
static void ThrowArgumentOutOfRangeException(ExceptionArgument arg)
static int Exchange(ref int location1, int value)
static readonly TimeSpan InfiniteTimeSpan
void GetObjectData(SerializationInfo info, StreamingContext context)
delegate string MatchEvaluator(Match match)
static RegexTree Parse(string pattern, RegexOptions options, CultureInfo culture)
static string Escape(string input)
static string Unescape(string input)
static RegexCode Write(RegexTree tree)
static SegmentStringBuilder Create()