muffin v6.12
This commit is contained in:
parent
cfb4dea47e
commit
c8197297b2
58 changed files with 40038 additions and 58059 deletions
|
@ -0,0 +1,92 @@
|
|||
using System.CodeDom.Compiler;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace System.Text.RegularExpressions.Generated;
|
||||
|
||||
[GeneratedCode("System.Text.RegularExpressions.Generator", "9.0.12.41916")]
|
||||
[SkipLocalsInit]
|
||||
internal sealed class _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0 : Regex
|
||||
{
|
||||
private sealed class RunnerFactory : RegexRunnerFactory
|
||||
{
|
||||
private sealed class Runner : RegexRunner
|
||||
{
|
||||
protected override void Scan(ReadOnlySpan<char> inputSpan)
|
||||
{
|
||||
while (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan) && runtextpos != inputSpan.Length)
|
||||
{
|
||||
runtextpos++;
|
||||
if (_003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.s_hasTimeout)
|
||||
{
|
||||
CheckTimeout();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
|
||||
{
|
||||
int num = runtextpos;
|
||||
if (num <= inputSpan.Length - 2)
|
||||
{
|
||||
ReadOnlySpan<char> readOnlySpan = inputSpan.Slice(num);
|
||||
int num2;
|
||||
for (num2 = 0; num2 < readOnlySpan.Length - 1; num2++)
|
||||
{
|
||||
int num3 = readOnlySpan.Slice(num2).IndexOfAny(_003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.s_whitespace);
|
||||
if (num3 < 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
num2 += num3;
|
||||
if ((uint)(num2 + 1) >= (uint)readOnlySpan.Length)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (char.IsWhiteSpace(readOnlySpan[num2 + 1]))
|
||||
{
|
||||
runtextpos = num + num2;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
runtextpos = inputSpan.Length;
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
|
||||
{
|
||||
int num = runtextpos;
|
||||
int start = num;
|
||||
ReadOnlySpan<char> readOnlySpan = inputSpan.Slice(num);
|
||||
int i;
|
||||
for (i = 0; (uint)i < (uint)readOnlySpan.Length && char.IsWhiteSpace(readOnlySpan[i]); i++)
|
||||
{
|
||||
}
|
||||
if (i < 2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
readOnlySpan = readOnlySpan.Slice(i);
|
||||
Capture(0, start, runtextpos = num + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
protected override RegexRunner CreateInstance()
|
||||
{
|
||||
return new Runner();
|
||||
}
|
||||
}
|
||||
|
||||
internal static readonly _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0 Instance = new _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0();
|
||||
|
||||
private _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0()
|
||||
{
|
||||
pattern = "\\s\\s+";
|
||||
roptions = RegexOptions.IgnoreCase;
|
||||
Regex.ValidateMatchTimeout(_003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.s_defaultTimeout);
|
||||
internalMatchTimeout = _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.s_defaultTimeout;
|
||||
factory = new RunnerFactory();
|
||||
capsize = 1;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using System.Buffers;
|
||||
using System.CodeDom.Compiler;
|
||||
|
||||
namespace System.Text.RegularExpressions.Generated;
|
||||
|
||||
[GeneratedCode("System.Text.RegularExpressions.Generator", "9.0.12.41916")]
|
||||
internal static class _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities
|
||||
{
|
||||
internal static readonly TimeSpan s_defaultTimeout = ((AppContext.GetData("REGEX_DEFAULT_MATCH_TIMEOUT") is TimeSpan timeSpan) ? timeSpan : Regex.InfiniteMatchTimeout);
|
||||
|
||||
internal static readonly bool s_hasTimeout = s_defaultTimeout != Regex.InfiniteMatchTimeout;
|
||||
|
||||
internal static readonly SearchValues<char> s_whitespace = SearchValues.Create("\t\n\v\f\r \u0085\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue