<RegexGenerator_g>FF02E8C37B99F41659B0026E2B1005AC8CE9F303D9F9E176C498C4EA009567923__Utilities
static class <RegexGenerator_g>FF02E8C37B99F41659B0026E2B1005AC8CE9F303D9F9E176C498C4EA009567923__Utilities
using System.Buffers;
using System.CodeDom.Compiler;
using System.Globalization;
using System.Runtime.CompilerServices;
namespace System.Text.RegularExpressions.Generated
{
[NullableContext(1)]
[Nullable(0)]
[GeneratedCode("System.Text.RegularExpressions.Generator", "8.0.10.36612")]
internal static class <RegexGenerator_g>FF02E8C37B99F41659B0026E2B1005AC8CE9F303D9F9E176C498C4EA009567923__Utilities
{
internal static readonly TimeSpan s_defaultTimeout;
internal static readonly bool s_hasTimeout;
internal static readonly SearchValues<char> s_asciiHexDigitsUpper;
internal static readonly SearchValues<char> s_ascii_20000059300FC0100002800000028;
internal static readonly SearchValues<char> s_ascii_20FF03FEFFFF0700000000;
internal static readonly SearchValues<char> s_ascii_88FF23FEFFFF07FEFFFF07;
internal static readonly SearchValues<char> s_ascii_FFFFFFFFFFDF00FC01000078010000F8;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[NullableContext(0)]
internal static int IndexOfNonAsciiOrAny_215AA4A611886BDACDBBE3CDA300E5F2D4BF9ACBCFA3DFE6EAF9DABFC4107B6A(this ReadOnlySpan<char> span)
{
int num = span.IndexOfAnyExcept(s_ascii_FFFFFFFFFFDF00FC01000078010000F8);
if ((uint)num < (uint)span.Length) {
if (char.IsAscii(span[num]))
return num;
do {
char c;
if ((((c = span[num]) < '') ? (" Ͽ蟿߿"[(int)c >> 4] & (1 << (c & 15))) : (RegexRunner.CharInClass(c, " \n-. \t ") ? 1 : 0)) != 0)
return num;
num++;
} while ((uint)num < (uint)span.Length);
}
return -1;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal unsafe static bool IsWordChar(char ch)
{
ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(&global::<PrivateImplementationDetails>.3C17DA885F7916F14BECDDD5A559E146795A03758C28EA455EC8E9E803B90531, 16);
int num = (int)ch >> 3;
if ((uint)num >= (uint)readOnlySpan.Length)
return (262463 & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0;
return (readOnlySpan[num] & (1 << (ch & 7))) != 0;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void StackPop(int[] stack, ref int pos, out int arg0, out int arg1)
{
arg0 = stack[--pos];
arg1 = stack[--pos];
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void StackPush(ref int[] stack, ref int pos, int arg0)
{
int[] array = stack;
int num = pos;
if ((uint)num < (uint)array.Length) {
array[num] = arg0;
pos++;
} else
<StackPush>g__WithResize|5_0(ref stack, ref pos, arg0);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void StackPush(ref int[] stack, ref int pos, int arg0, int arg1)
{
int[] array = stack;
int num = pos;
if ((uint)(num + 1) < (uint)array.Length) {
array[num] = arg0;
array[num + 1] = arg1;
pos += 2;
} else
<StackPush>g__WithResize|6_0(ref stack, ref pos, arg0, arg1);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void StackPush(ref int[] stack, ref int pos, int arg0, int arg1, int arg2)
{
int[] array = stack;
int num = pos;
if ((uint)(num + 2) < (uint)array.Length) {
array[num] = arg0;
array[num + 1] = arg1;
array[num + 2] = arg2;
pos += 3;
} else
<StackPush>g__WithResize|7_0(ref stack, ref pos, arg0, arg1, arg2);
}
static <RegexGenerator_g>FF02E8C37B99F41659B0026E2B1005AC8CE9F303D9F9E176C498C4EA009567923__Utilities()
{
object data = AppContext.GetData("REGEX_DEFAULT_MATCH_TIMEOUT");
TimeSpan timeSpan2;
if (data is TimeSpan) {
TimeSpan timeSpan = (TimeSpan)data;
timeSpan2 = timeSpan;
} else
timeSpan2 = Regex.InfiniteMatchTimeout;
s_defaultTimeout = timeSpan2;
s_hasTimeout = (s_defaultTimeout != Regex.InfiniteMatchTimeout);
s_asciiHexDigitsUpper = SearchValues.Create("0123456789ABCDEF");
s_ascii_20000059300FC0100002800000028 = SearchValues.Create("\t \"(),/:;<=>?@[]{}");
s_ascii_20FF03FEFFFF0700000000 = SearchValues.Create("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
s_ascii_88FF23FEFFFF07FEFFFF07 = SearchValues.Create("+/0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
s_ascii_FFFFFFFFFFDF00FC01000078010000F8 = SearchValues.Create(" \b\t\n\r !\"#$%&'()*+,./:;<=>?@[\\]^`{|}~");
}
}
}