|
// <auto-generated/>
#nullable enable
#pragma warning disable
namespace Microsoft.Build.Shared
{
partial class CanonicalError
{
/// <remarks>
/// Pattern:<br/>
/// <code>^\s*(((?<ORIGIN>(((\d+>)?[a-zA-Z]?:[^:]*)|([^:]*))):)|())(?<SUBCATEGORY>(()|([^:]*? )))(?<CATEGORY>(error|warning))( \s*(?<CODE>[^: ]*))?\s*:(?<TEXT>.*)$</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ 1st capture group.<br/>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ 2nd capture group.<br/>
/// ○ "ORIGIN" capture group.<br/>
/// ○ 3rd capture group.<br/>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ 4th capture group.<br/>
/// ○ Optional (greedy).<br/>
/// ○ 5th capture group.<br/>
/// ○ Match a Unicode digit atomically at least once.<br/>
/// ○ Match '>'.<br/>
/// ○ Match a character in the set [A-Za-z\u212A] atomically, optionally.<br/>
/// ○ Match ':'.<br/>
/// ○ Match a character other than ':' atomically any number of times.<br/>
/// ○ 6th capture group.<br/>
/// ○ Match a character other than ':' atomically any number of times.<br/>
/// ○ Match ':'.<br/>
/// ○ 7th capture group.<br/>
/// ○ Match an empty string.<br/>
/// ○ "SUBCATEGORY" capture group.<br/>
/// ○ 8th capture group.<br/>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ 9th capture group.<br/>
/// ○ Match an empty string.<br/>
/// ○ 10th capture group.<br/>
/// ○ Match a character other than ':' lazily any number of times.<br/>
/// ○ Match ' '.<br/>
/// ○ "CATEGORY" capture group.<br/>
/// ○ 11th capture group.<br/>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr] exactly 2 times.<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Ww].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Ii].<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Gg].<br/>
/// ○ Optional (greedy).<br/>
/// ○ 12th capture group.<br/>
/// ○ Match ' '.<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ "CODE" capture group.<br/>
/// ○ Match a character in the set [^ :] greedily any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ':'.<br/>
/// ○ "TEXT" capture group.<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex OriginCategoryCodeTextExpression => global::System.Text.RegularExpressions.Generated.OriginCategoryCodeTextExpression_0.Instance;
}
}
namespace Microsoft.Build.Shared
{
partial class CanonicalError
{
/// <remarks>
/// Pattern:<br/>
/// <code>^\s*(?<ORIGIN>(?<FILENAME>.*):(?<LOCATION>(?<LINE>[0-9]*):(?<COLUMN>[0-9]*))):(?<CATEGORY> error| warning):(?<TEXT>.*)</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ "ORIGIN" capture group.<br/>
/// ○ "FILENAME" capture group.<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match ':'.<br/>
/// ○ "LOCATION" capture group.<br/>
/// ○ "LINE" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match ':'.<br/>
/// ○ "COLUMN" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match ':'.<br/>
/// ○ "CATEGORY" capture group.<br/>
/// ○ Match ' '.<br/>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr] exactly 2 times.<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Ww].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Ii].<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Gg].<br/>
/// ○ Match ':'.<br/>
/// ○ "TEXT" capture group.<br/>
/// ○ Match a character other than '\n' atomically any number of times.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex OriginCategoryCodeTextExpression2 => global::System.Text.RegularExpressions.Generated.OriginCategoryCodeTextExpression2_1.Instance;
}
}
namespace Microsoft.Build.Shared
{
partial class CanonicalError
{
/// <remarks>
/// Pattern:<br/>
/// <code>^(\d+>)?(?<FILENAME>.*)\((?<LOCATION>[\,,0-9,-]*)\)\s*$</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ Optional (greedy).<br/>
/// ○ 1st capture group.<br/>
/// ○ Match a Unicode digit atomically at least once.<br/>
/// ○ Match '>'.<br/>
/// ○ "FILENAME" capture group.<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match '('.<br/>
/// ○ "LOCATION" capture group.<br/>
/// ○ Match a character in the set [,\-0-9] atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex FilenameLocationFromOrigin => global::System.Text.RegularExpressions.Generated.FilenameLocationFromOrigin_2.Instance;
}
}
namespace Microsoft.Build.Shared
{
partial class CanonicalError
{
/// <remarks>
/// Pattern:<br/>
/// <code>^(?<LINE>[0-9]*)$</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ "LINE" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex LineFromLocation => global::System.Text.RegularExpressions.Generated.LineFromLocation_3.Instance;
}
}
namespace Microsoft.Build.Shared
{
partial class CanonicalError
{
/// <remarks>
/// Pattern:<br/>
/// <code>^(?<LINE>[0-9]*)-(?<ENDLINE>[0-9]*)$</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ "LINE" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match '-'.<br/>
/// ○ "ENDLINE" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex LineLineFromLocation => global::System.Text.RegularExpressions.Generated.LineLineFromLocation_4.Instance;
}
}
namespace Microsoft.Build.Shared
{
partial class CanonicalError
{
/// <remarks>
/// Pattern:<br/>
/// <code>^(?<LINE>[0-9]*),(?<COLUMN>[0-9]*)$</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ "LINE" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ "COLUMN" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex LineColFromLocation => global::System.Text.RegularExpressions.Generated.LineColFromLocation_5.Instance;
}
}
namespace Microsoft.Build.Shared
{
partial class CanonicalError
{
/// <remarks>
/// Pattern:<br/>
/// <code>^(?<LINE>[0-9]*),(?<COLUMN>[0-9]*)-(?<ENDCOLUMN>[0-9]*)$</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ "LINE" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ "COLUMN" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match '-'.<br/>
/// ○ "ENDCOLUMN" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex LineColColFromLocation => global::System.Text.RegularExpressions.Generated.LineColColFromLocation_6.Instance;
}
}
namespace Microsoft.Build.Shared
{
partial class CanonicalError
{
/// <remarks>
/// Pattern:<br/>
/// <code>^(?<LINE>[0-9]*),(?<COLUMN>[0-9]*),(?<ENDLINE>[0-9]*),(?<ENDCOLUMN>[0-9]*)$</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ "LINE" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ "COLUMN" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ "ENDLINE" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ "ENDCOLUMN" capture group.<br/>
/// ○ Match a character in the set [0-9] atomically any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex LineColLineColFromLocation => global::System.Text.RegularExpressions.Generated.LineColLineColFromLocation_7.Instance;
}
}
namespace Microsoft.Build.Experimental.BuildCheck.Infrastructure.EditorConfig
{
partial class EditorConfigFile
{
/// <remarks>
/// Pattern:<br/>
/// <code>^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '['.<br/>
/// ○ 1st capture group.<br/>
/// ○ Loop greedily at least once.<br/>
/// ○ 2nd capture group.<br/>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a character in the set [^#;].<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match '\\'.<br/>
/// ○ Match a character in the set [#;].<br/>
/// ○ Match ']'.<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ Optional (greedy).<br/>
/// ○ 3rd capture group.<br/>
/// ○ Match a character in the set [#;].<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex SectionMatcherRegex => global::System.Text.RegularExpressions.Generated.SectionMatcherRegex_8.Instance;
}
}
namespace Microsoft.Build.Experimental.BuildCheck.Infrastructure.EditorConfig
{
partial class EditorConfigFile
{
/// <remarks>
/// Pattern:<br/>
/// <code>^\s*([\w\.\-_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ 1st capture group.<br/>
/// ○ Match a character in the set [\-._\w] greedily at least once.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match a character in the set [:=].<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ 2nd capture group.<br/>
/// ○ Match a character other than '\n' lazily any number of times.<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ Optional (greedy).<br/>
/// ○ 3rd capture group.<br/>
/// ○ Match a character in the set [#;].<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex PropertyMatcherRegex => global::System.Text.RegularExpressions.Generated.PropertyMatcherRegex_9.Instance;
}
}
namespace Microsoft.Build.Logging
{
partial class TerminalLogger
{
/// <remarks>
/// Pattern:<br/>
/// <code>(?:/|-|--)(?:tl|terminallogger):(?'value'on|off|true|false|auto)</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a character in the set [\-/].<br/>
/// ○ Match the string "--".<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a character in the set [Ll].<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Mm].<br/>
/// ○ Match a character in the set [Ii].<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Ll] exactly 2 times.<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Gg] exactly 2 times.<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match ':'.<br/>
/// ○ "value" capture group.<br/>
/// ○ Match with 4 alternative expressions, atomically.<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match with 2 alternative expressions, atomically.<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Ff] exactly 2 times.<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Uu].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Ff].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Ll].<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Uu].<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex TerminalLoggerArgPattern => global::System.Text.RegularExpressions.Generated.TerminalLoggerArgPattern_10.Instance;
}
}
namespace Microsoft.Build.Logging
{
partial class TerminalLogger
{
/// <remarks>
/// Pattern:<br/>
/// <code>(?:/|-|--)(?:v|verbosity):(?'value'\w+)</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a character in the set [\-/].<br/>
/// ○ Match the string "--".<br/>
/// ○ Match a character in the set [Vv].<br/>
/// ○ Optional (greedy).<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Bb].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match a character in the set [Ii].<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match a character in the set [Yy].<br/>
/// ○ Match ':'.<br/>
/// ○ "value" capture group.<br/>
/// ○ Match a word character atomically at least once.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex VerbosityArgPattern => global::System.Text.RegularExpressions.Generated.VerbosityArgPattern_11.Instance;
}
}
namespace Microsoft.Build.Logging
{
partial class TerminalLogger
{
/// <remarks>
/// Pattern:<br/>
/// <code>(?:/|-|--)(?:tlp|terminalloggerparameters):(?'value'.+)</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a character in the set [\-/].<br/>
/// ○ Match the string "--".<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Ll].<br/>
/// ○ Match a character in the set [Pp].<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Mm].<br/>
/// ○ Match a character in the set [Ii].<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Ll] exactly 2 times.<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Gg] exactly 2 times.<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Pp].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Mm].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match ':'.<br/>
/// ○ "value" capture group.<br/>
/// ○ Match a character other than '\n' atomically at least once.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex TerminalLoggerParametersArgPattern => global::System.Text.RegularExpressions.Generated.TerminalLoggerParametersArgPattern_12.Instance;
}
}
namespace Microsoft.Build.Logging
{
partial class TerminalLogger
{
/// <remarks>
/// Pattern:<br/>
/// <code>(?:/|-|--)(?:clp|consoleloggerparameters):(?'value'.+)</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a character in the set [\-/].<br/>
/// ○ Match the string "--".<br/>
/// ○ Match a character in the set [Cc].<br/>
/// ○ Match with 2 alternative expressions.<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Ll].<br/>
/// ○ Match a character in the set [Pp].<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Ll].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Ll].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Gg] exactly 2 times.<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Pp].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Mm].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match ':'.<br/>
/// ○ "value" capture group.<br/>
/// ○ Match a character other than '\n' atomically at least once.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex ConsoleLoggerParametersArgPattern => global::System.Text.RegularExpressions.Generated.ConsoleLoggerParametersArgPattern_13.Instance;
}
}
namespace Microsoft.Build.Shared
{
partial class ProjectWriter
{
/// <remarks>
/// Pattern:<br/>
/// <code>(?<PREFIX>@\(\s*)\u000A (?<TYPE>[A-Za-z_][A-Za-z_0-9\-]*)\u000A (?<TRANSFORM_SPECIFICATION>(?<ARROW>\s*->\s*)(?<TRANSFORM>'[^']*'))\u000A (?<SEPARATOR_SPECIFICATION>\s*,\s*'[^']*')?\u000A (?<SUFFIX>\s*\))</code><br/>
/// Options:<br/>
/// <code>RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ "PREFIX" capture group.<br/>
/// ○ Match the string "@(".<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ "TYPE" capture group.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] greedily any number of times.<br/>
/// ○ "TRANSFORM_SPECIFICATION" capture group.<br/>
/// ○ "ARROW" capture group.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match the string "->".<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ "TRANSFORM" capture group.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Optional (greedy).<br/>
/// ○ "SEPARATOR_SPECIFICATION" capture group.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ "SUFFIX" capture group.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex ItemVectorTransformRegex => global::System.Text.RegularExpressions.Generated.ItemVectorTransformRegex_14.Instance;
}
}
namespace Microsoft.Build.Shared
{
partial class ProjectWriter
{
/// <remarks>
/// Pattern:<br/>
/// <code>@\(\s*\u000A ([A-Za-z_][A-Za-z_0-9\-]*)\u000A (\s*->\s*'[^']*')\u000A (\s*,\s*'[^']*')?\u000A \s*\)</code><br/>
/// Options:<br/>
/// <code>RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match the string "@(".<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] greedily any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match the string "->".<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Optional (greedy).<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex ItemVectorTransformRawRegex => global::System.Text.RegularExpressions.Generated.ItemVectorTransformRawRegex_15.Instance;
}
}
namespace Microsoft.Build.Construction
{
partial class ProjectRootElement
{
/// <remarks>
/// Pattern:<br/>
/// <code>\A\s*\<\?\s*xml.*\?\>\s*\Z</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match the string "<?".<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match the string "xml".<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match the string "?>".<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex XmlDeclarationRegex => global::System.Text.RegularExpressions.Generated.XmlDeclarationRegex_16.Instance;
}
}
namespace Microsoft.Build.Construction
{
partial class SolutionFile
{
/// <remarks>
/// Pattern:<br/>
/// <code>^Project\("(?<PROJECTTYPEGUID>.*)"\)\s*=\s*"(?<PROJECTNAME>.*)"\s*,\s*"(?<RELATIVEPATH>.*)"\s*,\s*"(?<PROJECTGUID>.*)"$</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ Match the string "Project(\"".<br/>
/// ○ "PROJECTTYPEGUID" capture group.<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match the string "\")".<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '='.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '"'.<br/>
/// ○ "PROJECTNAME" capture group.<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match '"'.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '"'.<br/>
/// ○ "RELATIVEPATH" capture group.<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match '"'.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '"'.<br/>
/// ○ "PROJECTGUID" capture group.<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match '"'.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex CrackProjectLineRegex => global::System.Text.RegularExpressions.Generated.CrackProjectLineRegex_17.Instance;
}
}
namespace Microsoft.Build.Construction
{
partial class SolutionFile
{
/// <remarks>
/// Pattern:<br/>
/// <code>^(?<PROPERTYNAME>[^=]*)\s*=\s*(?<PROPERTYVALUE>.*)$</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ "PROPERTYNAME" capture group.<br/>
/// ○ Match a character other than '=' greedily any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '='.<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ "PROPERTYVALUE" capture group.<br/>
/// ○ Match a character other than '\n' greedily any number of times.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex CrackPropertyLineRegex => global::System.Text.RegularExpressions.Generated.CrackPropertyLineRegex_18.Instance;
}
}
namespace Microsoft.Build.Evaluation
{
partial class IntrinsicFunctions
{
/// <remarks>
/// Pattern:<br/>
/// <code>^HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Microsoft SDKs\\Windows\\v(\d+\.\d+)$</code><br/>
/// Options:<br/>
/// <code>RegexOptions.IgnoreCase</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match if at the beginning of the string.<br/>
/// ○ Match a character in the set [Hh].<br/>
/// ○ Match a character in the set [Kk\u212A].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match a character in the set [Yy].<br/>
/// ○ Match '_'.<br/>
/// ○ Match a character in the set [Ll].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Cc].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Ll].<br/>
/// ○ Match '_'.<br/>
/// ○ Match a character in the set [Mm].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Cc].<br/>
/// ○ Match a character in the set [Hh].<br/>
/// ○ Match a character in the set [Ii].<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match '\\'.<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Ff].<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match a character in the set [Ww].<br/>
/// ○ Match a character in the set [Aa].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Ee].<br/>
/// ○ Match '\\'.<br/>
/// ○ Match a character in the set [Mm].<br/>
/// ○ Match a character in the set [Ii].<br/>
/// ○ Match a character in the set [Cc].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Ff].<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match '\\'.<br/>
/// ○ Match a character in the set [Mm].<br/>
/// ○ Match a character in the set [Ii].<br/>
/// ○ Match a character in the set [Cc].<br/>
/// ○ Match a character in the set [Rr].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Ff].<br/>
/// ○ Match a character in the set [Tt].<br/>
/// ○ Match ' '.<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match a character in the set [Dd].<br/>
/// ○ Match a character in the set [Kk\u212A].<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match '\\'.<br/>
/// ○ Match a character in the set [Ww].<br/>
/// ○ Match a character in the set [Ii].<br/>
/// ○ Match a character in the set [Nn].<br/>
/// ○ Match a character in the set [Dd].<br/>
/// ○ Match a character in the set [Oo].<br/>
/// ○ Match a character in the set [Ww].<br/>
/// ○ Match a character in the set [Ss].<br/>
/// ○ Match '\\'.<br/>
/// ○ Match a character in the set [Vv].<br/>
/// ○ 1st capture group.<br/>
/// ○ Match a Unicode digit atomically at least once.<br/>
/// ○ Match '.'.<br/>
/// ○ Match a Unicode digit atomically at least once.<br/>
/// ○ Match if at the end of the string or if before an ending newline.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex RegistrySdkRegex => global::System.Text.RegularExpressions.Generated.RegistrySdkRegex_19.Instance;
}
}
namespace Microsoft.Build.Evaluation
{
partial class Expander<P, I>
{
partial class RegularExpressions
{
/// <remarks>
/// Pattern:<br/>
/// <code>%\(\s* (?<ITEM_SPECIFICATION>(?<ITEM_TYPE>[A-Za-z_][A-Za-z_0-9\-]*)\s*\.\s*)? (?<NAME>[A-Za-z_][A-Za-z_0-9\-]*) \s*\)</code><br/>
/// Options:<br/>
/// <code>RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match the string "%(".<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ Optional (greedy).<br/>
/// ○ "ITEM_SPECIFICATION" capture group.<br/>
/// ○ "ITEM_TYPE" capture group.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '.'.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ "NAME" capture group.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
internal static partial global::System.Text.RegularExpressions.Regex ItemMetadataRegex => global::System.Text.RegularExpressions.Generated.ItemMetadataRegex_20.Instance;
}
}
}
namespace Microsoft.Build.Evaluation
{
partial class Expander<P, I>
{
partial class RegularExpressions
{
/// <remarks>
/// Pattern:<br/>
/// <code>((?<=@\(\s*[A-Za-z_][A-Za-z_0-9\-]*\s*->\s*'[^']*)%\(\s* (?<ITEM_SPECIFICATION>(?<ITEM_TYPE>[A-Za-z_][A-Za-z_0-9\-]*)\s*\.\s*)? (?<NAME>[A-Za-z_][A-Za-z_0-9\-]*) \s*\)(?![^']*'(\s*,\s*'[^']*')?\s*\))) | ((?<!@\(\s*[A-Za-z_][A-Za-z_0-9\-]*\s*->\s*'[^']*)%\(\s* (?<ITEM_SPECIFICATION>(?<ITEM_TYPE>[A-Za-z_][A-Za-z_0-9\-]*)\s*\.\s*)? (?<NAME>[A-Za-z_][A-Za-z_0-9\-]*) \s*\)(?=[^']*'(\s*,\s*'[^']*')?\s*\))) | ((?<!@\(\s*[A-Za-z_][A-Za-z_0-9\-]*\s*->\s*'[^']*)%\(\s* (?<ITEM_SPECIFICATION>(?<ITEM_TYPE>[A-Za-z_][A-Za-z_0-9\-]*)\s*\.\s*)? (?<NAME>[A-Za-z_][A-Za-z_0-9\-]*) \s*\)(?![^']*'(\s*,\s*'[^']*')?\s*\)))</code><br/>
/// Options:<br/>
/// <code>RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match with 3 alternative expressions, atomically.<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Zero-width positive lookbehind.<br/>
/// ○ Match a character other than '\'' greedily any number of times right-to-left.<br/>
/// ○ Match '\'' right-to-left.<br/>
/// ○ Match a whitespace character greedily any number of times right-to-left.<br/>
/// ○ Match the string "->" right-to-left.<br/>
/// ○ Match a whitespace character greedily any number of times right-to-left.<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] greedily any number of times right-to-left.<br/>
/// ○ Match a character in the set [A-Z_a-z] right-to-left.<br/>
/// ○ Match a whitespace character greedily any number of times right-to-left.<br/>
/// ○ Match the string "@(" right-to-left.<br/>
/// ○ Match the string "%(".<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ Optional (greedy).<br/>
/// ○ "ITEM_SPECIFICATION" capture group.<br/>
/// ○ "ITEM_TYPE" capture group.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '.'.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ "NAME" capture group.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// ○ Zero-width negative lookahead.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Optional (greedy).<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Zero-width negative lookbehind.<br/>
/// ○ Match a character other than '\'' greedily any number of times right-to-left.<br/>
/// ○ Match '\'' right-to-left.<br/>
/// ○ Match a whitespace character greedily any number of times right-to-left.<br/>
/// ○ Match the string "->" right-to-left.<br/>
/// ○ Match a whitespace character greedily any number of times right-to-left.<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] greedily any number of times right-to-left.<br/>
/// ○ Match a character in the set [A-Z_a-z] right-to-left.<br/>
/// ○ Match a whitespace character greedily any number of times right-to-left.<br/>
/// ○ Match the string "@(" right-to-left.<br/>
/// ○ Match the string "%(".<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ Optional (greedy).<br/>
/// ○ "ITEM_SPECIFICATION" capture group.<br/>
/// ○ "ITEM_TYPE" capture group.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '.'.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ "NAME" capture group.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// ○ Zero-width positive lookahead.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Optional (greedy).<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// ○ Match a sequence of expressions.<br/>
/// ○ Zero-width negative lookbehind.<br/>
/// ○ Match a character other than '\'' greedily any number of times right-to-left.<br/>
/// ○ Match '\'' right-to-left.<br/>
/// ○ Match a whitespace character greedily any number of times right-to-left.<br/>
/// ○ Match the string "->" right-to-left.<br/>
/// ○ Match a whitespace character greedily any number of times right-to-left.<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] greedily any number of times right-to-left.<br/>
/// ○ Match a character in the set [A-Z_a-z] right-to-left.<br/>
/// ○ Match a whitespace character greedily any number of times right-to-left.<br/>
/// ○ Match the string "@(" right-to-left.<br/>
/// ○ Match the string "%(".<br/>
/// ○ Match a whitespace character greedily any number of times.<br/>
/// ○ Optional (greedy).<br/>
/// ○ "ITEM_SPECIFICATION" capture group.<br/>
/// ○ "ITEM_TYPE" capture group.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '.'.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ "NAME" capture group.<br/>
/// ○ Match a character in the set [A-Z_a-z].<br/>
/// ○ Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// ○ Zero-width negative lookahead.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Optional (greedy).<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ','.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a character other than '\'' atomically any number of times.<br/>
/// ○ Match '\''.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// ○ Match ')'.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
internal static partial global::System.Text.RegularExpressions.Regex NonTransformItemMetadataRegex => global::System.Text.RegularExpressions.Generated.NonTransformItemMetadataRegex_21.Instance;
}
}
}
namespace Microsoft.Build.Internal
{
partial class Utilities
{
/// <remarks>
/// Pattern:<br/>
/// <code>xmlns="[^"]*"\s*</code><br/>
/// Explanation:<br/>
/// <code>
/// ○ Match the string "xmlns=\"".<br/>
/// ○ Match a character other than '"' atomically any number of times.<br/>
/// ○ Match '"'.<br/>
/// ○ Match a whitespace character atomically any number of times.<br/>
/// </code>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
private static partial global::System.Text.RegularExpressions.Regex XmlnsPattern => global::System.Text.RegularExpressions.Generated.XmlnsPattern_22.Instance;
}
}
namespace System.Text.RegularExpressions.Generated
{
using System;
using System.Buffers;
using System.CodeDom.Compiler;
using System.Collections;
using System.ComponentModel;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
using System.Threading;
/// <summary>Custom <see cref="Regex"/>-derived type for the OriginCategoryCodeTextExpression method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class OriginCategoryCodeTextExpression_0 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly OriginCategoryCodeTextExpression_0 Instance = new();
/// <summary>Initializes the instance.</summary>
private OriginCategoryCodeTextExpression_0()
{
base.pattern = "^\\s*(((?<ORIGIN>(((\\d+>)?[a-zA-Z]?:[^:]*)|([^:]*))):)|())(?<SUBCATEGORY>(()|([^:]*? )))(?<CATEGORY>(error|warning))( \\s*(?<CODE>[^: ]*))?\\s*:(?<TEXT>.*)$";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "1", 1 } , { "10", 10 } , { "11", 11 } , { "12", 12 } , { "2", 2 } , { "3", 3 } , { "4", 4 } , { "5", 5 } , { "6", 6 } , { "7", 7 } , { "8", 8 } , { "9", 9 } , { "CATEGORY", 15 } , { "CODE", 16 } , { "ORIGIN", 13 } , { "SUBCATEGORY", 14 } , { "TEXT", 17 } };
base.capslist = new string[] {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "ORIGIN", "SUBCATEGORY", "CATEGORY", "CODE", "TEXT" };
base.capsize = 18;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 6 characters.
if (pos <= inputSpan.Length - 6)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
char ch;
int alternation_branch = 0;
int alternation_branch1 = 0;
int alternation_branch2 = 0;
int alternation_starting_capturepos = 0;
int alternation_starting_capturepos1 = 0;
int alternation_starting_capturepos2 = 0;
int alternation_starting_pos = 0;
int alternation_starting_pos1 = 0;
int alternation_starting_pos2 = 0;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
int capture_starting_pos10 = 0;
int capture_starting_pos11 = 0;
int capture_starting_pos12 = 0;
int capture_starting_pos13 = 0;
int capture_starting_pos16 = 0;
int capture_starting_pos2 = 0;
int capture_starting_pos3 = 0;
int capture_starting_pos4 = 0;
int capture_starting_pos6 = 0;
int capture_starting_pos7 = 0;
int capture_starting_pos8 = 0;
int capture_starting_pos9 = 0;
int charloop_capture_pos = 0;
int charloop_capture_pos1 = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int charloop_starting_pos1 = 0, charloop_ending_pos1 = 0;
int charloop_starting_pos2 = 0, charloop_ending_pos2 = 0;
int charloop_starting_pos3 = 0, charloop_ending_pos3 = 0;
int lazyloop_capturepos = 0;
int lazyloop_pos = 0;
int loop_iteration = 0;
int loop_iteration1 = 0;
int stackpos = 0;
int startingStackpos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match a whitespace character greedily any number of times.
//{
charloop_starting_pos = pos;
int iteration = 0;
while ((uint)iteration < (uint)slice.Length && char.IsWhiteSpace(slice[iteration]))
{
iteration++;
}
slice = slice.Slice(iteration);
pos += iteration;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
pos = --charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
// 1st capture group.
//{
capture_starting_pos = pos;
// Match with 2 alternative expressions.
//{
alternation_starting_pos = pos;
alternation_starting_capturepos = base.Crawlpos();
// Branch 0
//{
// 2nd capture group.
//{
capture_starting_pos1 = pos;
// "ORIGIN" capture group.
//{
capture_starting_pos2 = pos;
// 3rd capture group.
//{
capture_starting_pos3 = pos;
// Match with 2 alternative expressions.
//{
alternation_starting_pos1 = pos;
alternation_starting_capturepos1 = base.Crawlpos();
// Branch 0
//{
// 4th capture group.
{
capture_starting_pos4 = pos;
// Optional (greedy).
{
startingStackpos = stackpos;
loop_iteration = 0;
LoopBody:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration++;
// 5th capture group.
{
int capture_starting_pos5 = pos;
// Match a Unicode digit atomically at least once.
{
int iteration1 = 0;
while ((uint)iteration1 < (uint)slice.Length && char.IsDigit(slice[iteration1]))
{
iteration1++;
}
if (iteration1 == 0)
{
goto LoopIterationNoMatch;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
// Match '>'.
if (slice.IsEmpty || slice[0] != '>')
{
goto LoopIterationNoMatch;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(5, capture_starting_pos5, pos);
}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration == 0)
{
goto LoopBody;
}
goto LoopEnd;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch:
if (--loop_iteration < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto AlternationBranch1;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd:
stackpos = startingStackpos; // Ensure any remaining backtracking state is removed.
}
// Match a character in the set [A-Za-z\u212A] atomically, optionally.
{
if (!slice.IsEmpty && ((ch = slice[0]) < 128 ? char.IsAsciiLetter(ch) : RegexRunner.CharInClass((char)ch, "\0\u0006\0A[a{KÅ")))
{
slice = slice.Slice(1);
pos++;
}
}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto AlternationBranch1;
}
// Match a character other than ':' atomically any number of times.
{
int iteration2 = slice.Slice(1).IndexOf(':');
if (iteration2 < 0)
{
iteration2 = slice.Length - 1;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(4, capture_starting_pos4, pos);
}
alternation_branch1 = 0;
goto AlternationMatch1;
AlternationBranch1:
pos = alternation_starting_pos1;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos1);
//}
// Branch 1
//{
// 6th capture group.
{
capture_starting_pos6 = pos;
// Match a character other than ':' atomically any number of times.
{
int iteration3 = slice.IndexOf(':');
if (iteration3 < 0)
{
iteration3 = slice.Length;
}
slice = slice.Slice(iteration3);
pos += iteration3;
}
base.Capture(6, capture_starting_pos6, pos);
}
alternation_branch1 = 1;
goto AlternationMatch1;
//}
AlternationBacktrack1:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
switch (alternation_branch1)
{
case 0:
goto AlternationBranch1;
case 1:
goto AlternationBranch;
}
AlternationMatch1:;
//}
base.Capture(3, capture_starting_pos3, pos);
goto CaptureSkipBacktrack;
CaptureBacktrack:
goto AlternationBacktrack1;
CaptureSkipBacktrack:;
//}
base.Capture(13, capture_starting_pos2, pos);
goto CaptureSkipBacktrack1;
CaptureBacktrack1:
goto CaptureBacktrack;
CaptureSkipBacktrack1:;
//}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto CaptureBacktrack1;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(2, capture_starting_pos1, pos);
goto CaptureSkipBacktrack2;
CaptureBacktrack2:
goto CaptureBacktrack1;
CaptureSkipBacktrack2:;
//}
alternation_branch = 0;
goto AlternationMatch;
AlternationBranch:
pos = alternation_starting_pos;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos);
//}
// Branch 1
//{
// 7th capture group.
{
capture_starting_pos7 = pos;
base.Capture(7, capture_starting_pos7, pos);
}
alternation_branch = 1;
goto AlternationMatch;
//}
AlternationBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
switch (alternation_branch)
{
case 0:
goto CaptureBacktrack2;
case 1:
goto CharLoopBacktrack;
}
AlternationMatch:;
//}
base.Capture(1, capture_starting_pos, pos);
goto CaptureSkipBacktrack3;
CaptureBacktrack3:
goto AlternationBacktrack;
CaptureSkipBacktrack3:;
//}
// "SUBCATEGORY" capture group.
//{
capture_starting_pos8 = pos;
// 8th capture group.
//{
capture_starting_pos9 = pos;
// Match with 2 alternative expressions.
//{
alternation_starting_pos2 = pos;
alternation_starting_capturepos2 = base.Crawlpos();
// Branch 0
//{
// 9th capture group.
{
capture_starting_pos10 = pos;
base.Capture(9, capture_starting_pos10, pos);
}
alternation_branch2 = 0;
goto AlternationMatch2;
AlternationBranch2:
pos = alternation_starting_pos2;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos2);
//}
// Branch 1
//{
// 10th capture group.
//{
capture_starting_pos11 = pos;
// Match a character other than ':' lazily any number of times.
//{
lazyloop_pos = pos;
goto LazyLoopEnd;
LazyLoopBacktrack:
UncaptureUntil(lazyloop_capturepos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
pos = lazyloop_pos;
slice = inputSpan.Slice(pos);
if (slice.IsEmpty || slice[0] == ':')
{
goto CaptureBacktrack3;
}
pos++;
slice = inputSpan.Slice(pos);
lazyloop_pos = slice.IndexOfAny(':', ' ');
if ((uint)lazyloop_pos >= (uint)slice.Length || slice[lazyloop_pos] == ':')
{
goto CaptureBacktrack3;
}
pos += lazyloop_pos;
slice = inputSpan.Slice(pos);
lazyloop_pos = pos;
LazyLoopEnd:
lazyloop_capturepos = base.Crawlpos();
//}
// Match ' '.
if (slice.IsEmpty || slice[0] != ' ')
{
goto LazyLoopBacktrack;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(10, capture_starting_pos11, pos);
goto CaptureSkipBacktrack4;
CaptureBacktrack4:
goto LazyLoopBacktrack;
CaptureSkipBacktrack4:;
//}
alternation_branch2 = 1;
goto AlternationMatch2;
//}
AlternationBacktrack2:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
switch (alternation_branch2)
{
case 0:
goto AlternationBranch2;
case 1:
goto CaptureBacktrack4;
}
AlternationMatch2:;
//}
base.Capture(8, capture_starting_pos9, pos);
goto CaptureSkipBacktrack5;
CaptureBacktrack5:
goto AlternationBacktrack2;
CaptureSkipBacktrack5:;
//}
base.Capture(14, capture_starting_pos8, pos);
goto CaptureSkipBacktrack6;
CaptureBacktrack6:
goto CaptureBacktrack5;
CaptureSkipBacktrack6:;
//}
// "CATEGORY" capture group.
//{
capture_starting_pos12 = pos;
// 11th capture group.
//{
capture_starting_pos13 = pos;
// Match with 2 alternative expressions.
//{
if (slice.IsEmpty)
{
goto CaptureBacktrack6;
}
switch (slice[0])
{
case 'E' or 'e':
if ((uint)slice.Length < 5 ||
!slice.Slice(1).StartsWith("rror", StringComparison.OrdinalIgnoreCase)) // Match the string "rror" (ordinal case-insensitive)
{
goto CaptureBacktrack6;
}
pos += 5;
slice = inputSpan.Slice(pos);
break;
case 'W' or 'w':
if ((uint)slice.Length < 7 ||
!slice.Slice(1).StartsWith("arning", StringComparison.OrdinalIgnoreCase)) // Match the string "arning" (ordinal case-insensitive)
{
goto CaptureBacktrack6;
}
pos += 7;
slice = inputSpan.Slice(pos);
break;
default:
goto CaptureBacktrack6;
}
//}
base.Capture(11, capture_starting_pos13, pos);
//}
base.Capture(15, capture_starting_pos12, pos);
//}
// Optional (greedy).
//{
loop_iteration1 = 0;
LoopBody1:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration1++;
// 12th capture group.
//{
int capture_starting_pos14 = pos;
// Match ' '.
if (slice.IsEmpty || slice[0] != ' ')
{
goto LoopIterationNoMatch1;
}
// Match a whitespace character greedily any number of times.
//{
pos++;
slice = inputSpan.Slice(pos);
charloop_starting_pos1 = pos;
int iteration4 = 0;
while ((uint)iteration4 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration4]))
{
iteration4++;
}
slice = slice.Slice(iteration4);
pos += iteration4;
charloop_ending_pos1 = pos;
goto CharLoopEnd1;
CharLoopBacktrack1:
UncaptureUntil(base.runstack![--stackpos]);
Utilities.StackPop(base.runstack!, ref stackpos, out charloop_ending_pos1, out charloop_starting_pos1);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos1 >= charloop_ending_pos1)
{
goto LoopIterationNoMatch1;
}
pos = --charloop_ending_pos1;
slice = inputSpan.Slice(pos);
CharLoopEnd1:
Utilities.StackPush(ref base.runstack!, ref stackpos, charloop_starting_pos1, charloop_ending_pos1, base.Crawlpos());
//}
// "CODE" capture group.
//{
int capture_starting_pos15 = pos;
// Match a character in the set [^ :] greedily any number of times.
//{
charloop_starting_pos2 = pos;
int iteration5 = slice.IndexOfAny(' ', ':');
if (iteration5 < 0)
{
iteration5 = slice.Length;
}
slice = slice.Slice(iteration5);
pos += iteration5;
charloop_ending_pos2 = pos;
goto CharLoopEnd2;
CharLoopBacktrack2:
UncaptureUntil(base.runstack![--stackpos]);
Utilities.StackPop(base.runstack!, ref stackpos, out charloop_ending_pos2, out charloop_starting_pos2);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos2 >= charloop_ending_pos2)
{
goto CharLoopBacktrack1;
}
pos = --charloop_ending_pos2;
slice = inputSpan.Slice(pos);
CharLoopEnd2:
Utilities.StackPush(ref base.runstack!, ref stackpos, charloop_starting_pos2, charloop_ending_pos2, base.Crawlpos());
//}
base.Capture(16, capture_starting_pos15, pos);
Utilities.StackPush(ref base.runstack!, ref stackpos, capture_starting_pos15);
goto CaptureSkipBacktrack7;
CaptureBacktrack7:
capture_starting_pos15 = base.runstack![--stackpos];
goto CharLoopBacktrack2;
CaptureSkipBacktrack7:;
//}
base.Capture(12, capture_starting_pos14, pos);
Utilities.StackPush(ref base.runstack!, ref stackpos, capture_starting_pos14);
goto CaptureSkipBacktrack8;
CaptureBacktrack8:
capture_starting_pos14 = base.runstack![--stackpos];
goto CaptureBacktrack7;
CaptureSkipBacktrack8:;
//}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration1 == 0)
{
goto LoopBody1;
}
goto LoopEnd1;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch1:
if (--loop_iteration1 < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto CaptureBacktrack6;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
goto LoopEnd1;
LoopBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (loop_iteration1 == 0)
{
// No iterations of the loop remain to backtrack into. Fail the loop.
goto CaptureBacktrack6;
}
goto CaptureBacktrack8;
LoopEnd1:;
//}
// Match a whitespace character atomically any number of times.
{
int iteration6 = 0;
while ((uint)iteration6 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration6]))
{
iteration6++;
}
slice = slice.Slice(iteration6);
pos += iteration6;
}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto LoopBacktrack;
}
// "TEXT" capture group.
//{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos16 = pos;
// Match a character other than '\n' greedily any number of times.
//{
charloop_starting_pos3 = pos;
int iteration7 = slice.IndexOf('\n');
if (iteration7 < 0)
{
iteration7 = slice.Length;
}
slice = slice.Slice(iteration7);
pos += iteration7;
charloop_ending_pos3 = pos;
goto CharLoopEnd3;
CharLoopBacktrack3:
UncaptureUntil(charloop_capture_pos1);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos3 >= charloop_ending_pos3)
{
goto LoopBacktrack;
}
pos = --charloop_ending_pos3;
slice = inputSpan.Slice(pos);
CharLoopEnd3:
charloop_capture_pos1 = base.Crawlpos();
//}
base.Capture(17, capture_starting_pos16, pos);
goto CaptureSkipBacktrack9;
CaptureBacktrack9:
goto CharLoopBacktrack3;
CaptureSkipBacktrack9:;
//}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
goto CaptureBacktrack9;
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the OriginCategoryCodeTextExpression2 method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class OriginCategoryCodeTextExpression2_1 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly OriginCategoryCodeTextExpression2_1 Instance = new();
/// <summary>Initializes the instance.</summary>
private OriginCategoryCodeTextExpression2_1()
{
base.pattern = "^\\s*(?<ORIGIN>(?<FILENAME>.*):(?<LOCATION>(?<LINE>[0-9]*):(?<COLUMN>[0-9]*))):(?<CATEGORY> error| warning):(?<TEXT>.*)";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "CATEGORY", 6 } , { "COLUMN", 5 } , { "FILENAME", 2 } , { "LINE", 4 } , { "LOCATION", 3 } , { "ORIGIN", 1 } , { "TEXT", 7 } };
base.capslist = new string[] {"0", "ORIGIN", "FILENAME", "LOCATION", "LINE", "COLUMN", "CATEGORY", "TEXT" };
base.capsize = 8;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 10 characters.
if (pos <= inputSpan.Length - 10)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
int capture_starting_pos2 = 0;
int capture_starting_pos3 = 0;
int capture_starting_pos4 = 0;
int capture_starting_pos5 = 0;
int capture_starting_pos6 = 0;
int charloop_capture_pos = 0;
int charloop_capture_pos1 = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int charloop_starting_pos1 = 0, charloop_ending_pos1 = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match a whitespace character greedily any number of times.
//{
charloop_starting_pos = pos;
int iteration = 0;
while ((uint)iteration < (uint)slice.Length && char.IsWhiteSpace(slice[iteration]))
{
iteration++;
}
slice = slice.Slice(iteration);
pos += iteration;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
pos = --charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
// "ORIGIN" capture group.
//{
capture_starting_pos = pos;
// "FILENAME" capture group.
//{
capture_starting_pos1 = pos;
// Match a character other than '\n' greedily any number of times.
//{
charloop_starting_pos1 = pos;
int iteration1 = slice.IndexOf('\n');
if (iteration1 < 0)
{
iteration1 = slice.Length;
}
slice = slice.Slice(iteration1);
pos += iteration1;
charloop_ending_pos1 = pos;
goto CharLoopEnd1;
CharLoopBacktrack1:
UncaptureUntil(charloop_capture_pos1);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos1 >= charloop_ending_pos1 ||
(charloop_ending_pos1 = inputSpan.Slice(charloop_starting_pos1, charloop_ending_pos1 - charloop_starting_pos1).LastIndexOf(':')) < 0)
{
goto CharLoopBacktrack;
}
charloop_ending_pos1 += charloop_starting_pos1;
pos = charloop_ending_pos1;
slice = inputSpan.Slice(pos);
CharLoopEnd1:
charloop_capture_pos1 = base.Crawlpos();
//}
base.Capture(2, capture_starting_pos1, pos);
goto CaptureSkipBacktrack;
CaptureBacktrack:
goto CharLoopBacktrack1;
CaptureSkipBacktrack:;
//}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto CaptureBacktrack;
}
// "LOCATION" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos2 = pos;
// "LINE" capture group.
{
capture_starting_pos3 = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration2 = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration2 < 0)
{
iteration2 = slice.Length;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
base.Capture(4, capture_starting_pos3, pos);
}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto CaptureBacktrack;
}
// "COLUMN" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos4 = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration3 = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration3 < 0)
{
iteration3 = slice.Length;
}
slice = slice.Slice(iteration3);
pos += iteration3;
}
base.Capture(5, capture_starting_pos4, pos);
}
base.Capture(3, capture_starting_pos2, pos);
}
base.Capture(1, capture_starting_pos, pos);
goto CaptureSkipBacktrack1;
CaptureBacktrack1:
goto CaptureBacktrack;
CaptureSkipBacktrack1:;
//}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto CaptureBacktrack1;
}
// "CATEGORY" capture group.
//{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos5 = pos;
// Match ' '.
if (slice.IsEmpty || slice[0] != ' ')
{
goto CaptureBacktrack1;
}
// Match with 2 alternative expressions.
//{
if ((uint)slice.Length < 2)
{
goto CaptureBacktrack1;
}
switch (slice[1])
{
case 'E' or 'e':
if ((uint)slice.Length < 6 ||
!slice.Slice(2).StartsWith("rror", StringComparison.OrdinalIgnoreCase)) // Match the string "rror" (ordinal case-insensitive)
{
goto CaptureBacktrack1;
}
pos += 6;
slice = inputSpan.Slice(pos);
break;
case 'W' or 'w':
if ((uint)slice.Length < 8 ||
!slice.Slice(2).StartsWith("arning", StringComparison.OrdinalIgnoreCase)) // Match the string "arning" (ordinal case-insensitive)
{
goto CaptureBacktrack1;
}
pos += 8;
slice = inputSpan.Slice(pos);
break;
default:
goto CaptureBacktrack1;
}
//}
base.Capture(6, capture_starting_pos5, pos);
//}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto CaptureBacktrack1;
}
// "TEXT" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos6 = pos;
// Match a character other than '\n' atomically any number of times.
{
int iteration4 = slice.IndexOf('\n');
if (iteration4 < 0)
{
iteration4 = slice.Length;
}
slice = slice.Slice(iteration4);
pos += iteration4;
}
base.Capture(7, capture_starting_pos6, pos);
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the FilenameLocationFromOrigin method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class FilenameLocationFromOrigin_2 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly FilenameLocationFromOrigin_2 Instance = new();
/// <summary>Initializes the instance.</summary>
private FilenameLocationFromOrigin_2()
{
base.pattern = "^(\\d+>)?(?<FILENAME>.*)\\((?<LOCATION>[\\,,0-9,-]*)\\)\\s*$";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "1", 1 } , { "FILENAME", 2 } , { "LOCATION", 3 } };
base.capslist = new string[] {"0", "1", "FILENAME", "LOCATION" };
base.capsize = 4;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 2 characters.
if (pos <= inputSpan.Length - 2)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos1 = 0;
int capture_starting_pos2 = 0;
int charloop_capture_pos = 0;
int charloop_capture_pos1 = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int charloop_starting_pos1 = 0, charloop_ending_pos1 = 0;
int loop_iteration = 0;
int stackpos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Optional (greedy).
//{
loop_iteration = 0;
LoopBody:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration++;
// 1st capture group.
{
int capture_starting_pos = pos;
// Match a Unicode digit atomically at least once.
{
int iteration = 0;
while ((uint)iteration < (uint)slice.Length && char.IsDigit(slice[iteration]))
{
iteration++;
}
if (iteration == 0)
{
goto LoopIterationNoMatch;
}
slice = slice.Slice(iteration);
pos += iteration;
}
// Match '>'.
if (slice.IsEmpty || slice[0] != '>')
{
goto LoopIterationNoMatch;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(1, capture_starting_pos, pos);
}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration == 0)
{
goto LoopBody;
}
goto LoopEnd;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch:
if (--loop_iteration < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
UncaptureUntil(0);
return false; // The input didn't match.
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd:;
//}
// "FILENAME" capture group.
//{
capture_starting_pos1 = pos;
// Match a character other than '\n' greedily any number of times.
//{
charloop_starting_pos = pos;
int iteration1 = slice.IndexOf('\n');
if (iteration1 < 0)
{
iteration1 = slice.Length;
}
slice = slice.Slice(iteration1);
pos += iteration1;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos ||
(charloop_ending_pos = inputSpan.Slice(charloop_starting_pos, charloop_ending_pos - charloop_starting_pos).LastIndexOf('(')) < 0)
{
goto LoopIterationNoMatch;
}
charloop_ending_pos += charloop_starting_pos;
pos = charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
base.Capture(2, capture_starting_pos1, pos);
goto CaptureSkipBacktrack;
CaptureBacktrack:
goto CharLoopBacktrack;
CaptureSkipBacktrack:;
//}
// Match '('.
if (slice.IsEmpty || slice[0] != '(')
{
goto CaptureBacktrack;
}
// "LOCATION" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos2 = pos;
// Match a character in the set [,\-0-9] atomically any number of times.
{
int iteration2 = slice.IndexOfAnyExcept(Utilities.s_ascii_30FF030000000000000000);
if (iteration2 < 0)
{
iteration2 = slice.Length;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
base.Capture(3, capture_starting_pos2, pos);
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto CaptureBacktrack;
}
// Match a whitespace character greedily any number of times.
//{
pos++;
slice = inputSpan.Slice(pos);
charloop_starting_pos1 = pos;
int iteration3 = 0;
while ((uint)iteration3 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration3]))
{
iteration3++;
}
slice = slice.Slice(iteration3);
pos += iteration3;
charloop_ending_pos1 = pos;
goto CharLoopEnd1;
CharLoopBacktrack1:
UncaptureUntil(charloop_capture_pos1);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos1 >= charloop_ending_pos1)
{
goto CaptureBacktrack;
}
pos = --charloop_ending_pos1;
slice = inputSpan.Slice(pos);
CharLoopEnd1:
charloop_capture_pos1 = base.Crawlpos();
//}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
goto CharLoopBacktrack1;
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the LineFromLocation method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class LineFromLocation_3 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly LineFromLocation_3 Instance = new();
/// <summary>Initializes the instance.</summary>
private LineFromLocation_3()
{
base.pattern = "^(?<LINE>[0-9]*)$";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "LINE", 1 } };
base.capslist = new string[] {"0", "LINE" };
base.capsize = 2;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "LINE" capture group.
{
capture_starting_pos = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration < 0)
{
iteration = slice.Length;
}
slice = slice.Slice(iteration);
pos += iteration;
}
base.Capture(1, capture_starting_pos, pos);
}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the LineLineFromLocation method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class LineLineFromLocation_4 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly LineLineFromLocation_4 Instance = new();
/// <summary>Initializes the instance.</summary>
private LineLineFromLocation_4()
{
base.pattern = "^(?<LINE>[0-9]*)-(?<ENDLINE>[0-9]*)$";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "ENDLINE", 2 } , { "LINE", 1 } };
base.capslist = new string[] {"0", "LINE", "ENDLINE" };
base.capsize = 3;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Empty matches aren't possible.
if ((uint)pos < (uint)inputSpan.Length)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "LINE" capture group.
{
capture_starting_pos = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration < 0)
{
iteration = slice.Length;
}
slice = slice.Slice(iteration);
pos += iteration;
}
base.Capture(1, capture_starting_pos, pos);
}
// Match '-'.
if (slice.IsEmpty || slice[0] != '-')
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "ENDLINE" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos1 = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration1 = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration1 < 0)
{
iteration1 = slice.Length;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
base.Capture(2, capture_starting_pos1, pos);
}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the LineColFromLocation method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class LineColFromLocation_5 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly LineColFromLocation_5 Instance = new();
/// <summary>Initializes the instance.</summary>
private LineColFromLocation_5()
{
base.pattern = "^(?<LINE>[0-9]*),(?<COLUMN>[0-9]*)$";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "COLUMN", 2 } , { "LINE", 1 } };
base.capslist = new string[] {"0", "LINE", "COLUMN" };
base.capsize = 3;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Empty matches aren't possible.
if ((uint)pos < (uint)inputSpan.Length)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "LINE" capture group.
{
capture_starting_pos = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration < 0)
{
iteration = slice.Length;
}
slice = slice.Slice(iteration);
pos += iteration;
}
base.Capture(1, capture_starting_pos, pos);
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "COLUMN" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos1 = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration1 = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration1 < 0)
{
iteration1 = slice.Length;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
base.Capture(2, capture_starting_pos1, pos);
}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the LineColColFromLocation method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class LineColColFromLocation_6 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly LineColColFromLocation_6 Instance = new();
/// <summary>Initializes the instance.</summary>
private LineColColFromLocation_6()
{
base.pattern = "^(?<LINE>[0-9]*),(?<COLUMN>[0-9]*)-(?<ENDCOLUMN>[0-9]*)$";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "COLUMN", 2 } , { "ENDCOLUMN", 3 } , { "LINE", 1 } };
base.capslist = new string[] {"0", "LINE", "COLUMN", "ENDCOLUMN" };
base.capsize = 4;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 2 characters.
if (pos <= inputSpan.Length - 2)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
int capture_starting_pos2 = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "LINE" capture group.
{
capture_starting_pos = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration < 0)
{
iteration = slice.Length;
}
slice = slice.Slice(iteration);
pos += iteration;
}
base.Capture(1, capture_starting_pos, pos);
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "COLUMN" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos1 = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration1 = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration1 < 0)
{
iteration1 = slice.Length;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
base.Capture(2, capture_starting_pos1, pos);
}
// Match '-'.
if (slice.IsEmpty || slice[0] != '-')
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "ENDCOLUMN" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos2 = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration2 = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration2 < 0)
{
iteration2 = slice.Length;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
base.Capture(3, capture_starting_pos2, pos);
}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the LineColLineColFromLocation method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class LineColLineColFromLocation_7 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly LineColLineColFromLocation_7 Instance = new();
/// <summary>Initializes the instance.</summary>
private LineColLineColFromLocation_7()
{
base.pattern = "^(?<LINE>[0-9]*),(?<COLUMN>[0-9]*),(?<ENDLINE>[0-9]*),(?<ENDCOLUMN>[0-9]*)$";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "COLUMN", 2 } , { "ENDCOLUMN", 4 } , { "ENDLINE", 3 } , { "LINE", 1 } };
base.capslist = new string[] {"0", "LINE", "COLUMN", "ENDLINE", "ENDCOLUMN" };
base.capsize = 5;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 3 characters.
if (pos <= inputSpan.Length - 3)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
int capture_starting_pos2 = 0;
int capture_starting_pos3 = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "LINE" capture group.
{
capture_starting_pos = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration < 0)
{
iteration = slice.Length;
}
slice = slice.Slice(iteration);
pos += iteration;
}
base.Capture(1, capture_starting_pos, pos);
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "COLUMN" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos1 = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration1 = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration1 < 0)
{
iteration1 = slice.Length;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
base.Capture(2, capture_starting_pos1, pos);
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "ENDLINE" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos2 = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration2 = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration2 < 0)
{
iteration2 = slice.Length;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
base.Capture(3, capture_starting_pos2, pos);
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "ENDCOLUMN" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos3 = pos;
// Match a character in the set [0-9] atomically any number of times.
{
int iteration3 = slice.IndexOfAnyExceptInRange('0', '9');
if (iteration3 < 0)
{
iteration3 = slice.Length;
}
slice = slice.Slice(iteration3);
pos += iteration3;
}
base.Capture(4, capture_starting_pos3, pos);
}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the SectionMatcherRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class SectionMatcherRegex_8 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly SectionMatcherRegex_8 Instance = new();
/// <summary>Initializes the instance.</summary>
private SectionMatcherRegex_8()
{
base.pattern = "^\\s*\\[(([^#;]|\\\\#|\\\\;)+)\\]\\s*([#;].*)?$";
base.roptions = RegexOptions.None;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.capsize = 4;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 3 characters.
if (pos <= inputSpan.Length - 3)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
char ch;
int capture_starting_pos = 0;
int charloop_capture_pos = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int charloop_starting_pos1 = 0, charloop_ending_pos1 = 0;
int loop_iteration = 0;
int loop_iteration1 = 0;
int stackpos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match a whitespace character atomically any number of times.
{
int iteration = 0;
while ((uint)iteration < (uint)slice.Length && char.IsWhiteSpace(slice[iteration]))
{
iteration++;
}
slice = slice.Slice(iteration);
pos += iteration;
}
// Match '['.
if (slice.IsEmpty || slice[0] != '[')
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// 1st capture group.
//{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos = pos;
// Loop greedily at least once.
//{
loop_iteration = 0;
LoopBody:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration++;
// 2nd capture group.
//{
int capture_starting_pos1 = pos;
// Match with 2 alternative expressions.
//{
int alternation_starting_pos = pos;
int alternation_starting_capturepos = base.Crawlpos();
// Branch 0
//{
// Match a character in the set [^#;].
if (slice.IsEmpty || (((ch = slice[0]) == '#') | (ch == ';')))
{
goto AlternationBranch;
}
Utilities.StackPush(ref base.runstack!, ref stackpos, 0, alternation_starting_pos, alternation_starting_capturepos);
pos++;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
AlternationBranch:
pos = alternation_starting_pos;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos);
//}
// Branch 1
//{
if ((uint)slice.Length < 2 ||
slice[0] != '\\' || // Match '\\'.
(((ch = slice[1]) != '#') & (ch != ';'))) // Match a character in the set [#;].
{
goto LoopIterationNoMatch;
}
Utilities.StackPush(ref base.runstack!, ref stackpos, 1, alternation_starting_pos, alternation_starting_capturepos);
pos += 2;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
//}
AlternationBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
Utilities.StackPop(base.runstack!, ref stackpos, out alternation_starting_capturepos, out alternation_starting_pos);
switch (base.runstack![--stackpos])
{
case 0:
goto AlternationBranch;
case 1:
goto LoopIterationNoMatch;
}
AlternationMatch:;
//}
base.Capture(2, capture_starting_pos1, pos);
Utilities.StackPush(ref base.runstack!, ref stackpos, capture_starting_pos1);
goto CaptureSkipBacktrack;
CaptureBacktrack:
capture_starting_pos1 = base.runstack![--stackpos];
goto AlternationBacktrack;
CaptureSkipBacktrack:;
//}
// The loop has no upper bound. Continue iterating greedily.
goto LoopBody;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch:
if (--loop_iteration < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
UncaptureUntil(0);
return false; // The input didn't match.
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
if (loop_iteration == 0)
{
// No iterations have been matched to backtrack into. Fail the loop.
UncaptureUntil(0);
return false; // The input didn't match.
}
goto LoopEnd;
LoopBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (loop_iteration == 0)
{
// No iterations of the loop remain to backtrack into. Fail the loop.
UncaptureUntil(0);
return false; // The input didn't match.
}
goto CaptureBacktrack;
LoopEnd:;
//}
base.Capture(1, capture_starting_pos, pos);
goto CaptureSkipBacktrack1;
CaptureBacktrack1:
goto LoopBacktrack;
CaptureSkipBacktrack1:;
//}
// Match ']'.
if (slice.IsEmpty || slice[0] != ']')
{
goto CaptureBacktrack1;
}
// Match a whitespace character greedily any number of times.
//{
pos++;
slice = inputSpan.Slice(pos);
charloop_starting_pos = pos;
int iteration1 = 0;
while ((uint)iteration1 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration1]))
{
iteration1++;
}
slice = slice.Slice(iteration1);
pos += iteration1;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos)
{
goto CaptureBacktrack1;
}
pos = --charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
// Optional (greedy).
//{
loop_iteration1 = 0;
LoopBody1:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration1++;
// 3rd capture group.
//{
int capture_starting_pos2 = pos;
// Match a character in the set [#;].
if (slice.IsEmpty || (((ch = slice[0]) != '#') & (ch != ';')))
{
goto LoopIterationNoMatch1;
}
// Match a character other than '\n' greedily any number of times.
//{
pos++;
slice = inputSpan.Slice(pos);
charloop_starting_pos1 = pos;
int iteration2 = slice.IndexOf('\n');
if (iteration2 < 0)
{
iteration2 = slice.Length;
}
slice = slice.Slice(iteration2);
pos += iteration2;
charloop_ending_pos1 = pos;
goto CharLoopEnd1;
CharLoopBacktrack1:
UncaptureUntil(base.runstack![--stackpos]);
Utilities.StackPop(base.runstack!, ref stackpos, out charloop_ending_pos1, out charloop_starting_pos1);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos1 >= charloop_ending_pos1)
{
goto LoopIterationNoMatch1;
}
pos = --charloop_ending_pos1;
slice = inputSpan.Slice(pos);
CharLoopEnd1:
Utilities.StackPush(ref base.runstack!, ref stackpos, charloop_starting_pos1, charloop_ending_pos1, base.Crawlpos());
//}
base.Capture(3, capture_starting_pos2, pos);
Utilities.StackPush(ref base.runstack!, ref stackpos, capture_starting_pos2);
goto CaptureSkipBacktrack2;
CaptureBacktrack2:
capture_starting_pos2 = base.runstack![--stackpos];
goto CharLoopBacktrack1;
CaptureSkipBacktrack2:;
//}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration1 == 0)
{
goto LoopBody1;
}
goto LoopEnd1;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch1:
if (--loop_iteration1 < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto CharLoopBacktrack;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
goto LoopEnd1;
LoopBacktrack1:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (loop_iteration1 == 0)
{
// No iterations of the loop remain to backtrack into. Fail the loop.
goto CharLoopBacktrack;
}
goto CaptureBacktrack2;
LoopEnd1:;
//}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
goto LoopBacktrack1;
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the PropertyMatcherRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class PropertyMatcherRegex_9 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly PropertyMatcherRegex_9 Instance = new();
/// <summary>Initializes the instance.</summary>
private PropertyMatcherRegex_9()
{
base.pattern = "^\\s*([\\w\\.\\-_]+)\\s*[=:]\\s*(.*?)\\s*([#;].*)?$";
base.roptions = RegexOptions.None;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.capsize = 4;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 2 characters.
if (pos <= inputSpan.Length - 2)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
char ch;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
int charloop_capture_pos = 0;
int charloop_capture_pos1 = 0;
int charloop_capture_pos2 = 0;
int charloop_capture_pos3 = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int charloop_starting_pos1 = 0, charloop_ending_pos1 = 0;
int charloop_starting_pos2 = 0, charloop_ending_pos2 = 0;
int charloop_starting_pos3 = 0, charloop_ending_pos3 = 0;
int charloop_starting_pos4 = 0, charloop_ending_pos4 = 0;
int lazyloop_capturepos = 0;
int lazyloop_pos = 0;
int loop_iteration = 0;
int stackpos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match a whitespace character greedily any number of times.
//{
charloop_starting_pos = pos;
int iteration = 0;
while ((uint)iteration < (uint)slice.Length && char.IsWhiteSpace(slice[iteration]))
{
iteration++;
}
slice = slice.Slice(iteration);
pos += iteration;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
pos = --charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
// 1st capture group.
//{
capture_starting_pos = pos;
// Match a character in the set [\-._\w] greedily at least once.
//{
charloop_starting_pos1 = pos;
int iteration1 = 0;
while ((uint)iteration1 < (uint)slice.Length && ((ch = slice[iteration1]) < 128 ? ("\0\0怀Ͽ\ufffe蟿\ufffe߿"[ch >> 4] & (1 << (ch & 0xF))) != 0 : RegexRunner.CharInClass((char)ch, "\0\u0004\n-/_`\0\u0002\u0004\u0005\u0003\u0001\u0006\t\u0013\0")))
{
iteration1++;
}
if (iteration1 == 0)
{
goto CharLoopBacktrack;
}
slice = slice.Slice(iteration1);
pos += iteration1;
charloop_ending_pos1 = pos;
charloop_starting_pos1++;
goto CharLoopEnd1;
CharLoopBacktrack1:
UncaptureUntil(charloop_capture_pos1);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos1 >= charloop_ending_pos1)
{
goto CharLoopBacktrack;
}
pos = --charloop_ending_pos1;
slice = inputSpan.Slice(pos);
CharLoopEnd1:
charloop_capture_pos1 = base.Crawlpos();
//}
base.Capture(1, capture_starting_pos, pos);
goto CaptureSkipBacktrack;
CaptureBacktrack:
goto CharLoopBacktrack1;
CaptureSkipBacktrack:;
//}
// Match a whitespace character atomically any number of times.
{
int iteration2 = 0;
while ((uint)iteration2 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration2]))
{
iteration2++;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
// Match a character in the set [:=].
if (slice.IsEmpty || (((ch = slice[0]) != ':') & (ch != '=')))
{
goto CaptureBacktrack;
}
// Match a whitespace character greedily any number of times.
//{
pos++;
slice = inputSpan.Slice(pos);
charloop_starting_pos2 = pos;
int iteration3 = 0;
while ((uint)iteration3 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration3]))
{
iteration3++;
}
slice = slice.Slice(iteration3);
pos += iteration3;
charloop_ending_pos2 = pos;
goto CharLoopEnd2;
CharLoopBacktrack2:
UncaptureUntil(charloop_capture_pos2);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos2 >= charloop_ending_pos2)
{
goto CaptureBacktrack;
}
pos = --charloop_ending_pos2;
slice = inputSpan.Slice(pos);
CharLoopEnd2:
charloop_capture_pos2 = base.Crawlpos();
//}
// 2nd capture group.
//{
capture_starting_pos1 = pos;
// Match a character other than '\n' lazily any number of times.
//{
lazyloop_pos = pos;
goto LazyLoopEnd;
LazyLoopBacktrack:
UncaptureUntil(lazyloop_capturepos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
pos = lazyloop_pos;
slice = inputSpan.Slice(pos);
if (slice.IsEmpty || slice[0] == '\n')
{
goto CharLoopBacktrack2;
}
pos++;
slice = inputSpan.Slice(pos);
lazyloop_pos = pos;
LazyLoopEnd:
lazyloop_capturepos = base.Crawlpos();
//}
base.Capture(2, capture_starting_pos1, pos);
goto CaptureSkipBacktrack1;
CaptureBacktrack1:
goto LazyLoopBacktrack;
CaptureSkipBacktrack1:;
//}
// Match a whitespace character greedily any number of times.
//{
charloop_starting_pos3 = pos;
int iteration4 = 0;
while ((uint)iteration4 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration4]))
{
iteration4++;
}
slice = slice.Slice(iteration4);
pos += iteration4;
charloop_ending_pos3 = pos;
goto CharLoopEnd3;
CharLoopBacktrack3:
UncaptureUntil(charloop_capture_pos3);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos3 >= charloop_ending_pos3)
{
goto CaptureBacktrack1;
}
pos = --charloop_ending_pos3;
slice = inputSpan.Slice(pos);
CharLoopEnd3:
charloop_capture_pos3 = base.Crawlpos();
//}
// Optional (greedy).
//{
loop_iteration = 0;
LoopBody:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration++;
// 3rd capture group.
//{
int capture_starting_pos2 = pos;
// Match a character in the set [#;].
if (slice.IsEmpty || (((ch = slice[0]) != '#') & (ch != ';')))
{
goto LoopIterationNoMatch;
}
// Match a character other than '\n' greedily any number of times.
//{
pos++;
slice = inputSpan.Slice(pos);
charloop_starting_pos4 = pos;
int iteration5 = slice.IndexOf('\n');
if (iteration5 < 0)
{
iteration5 = slice.Length;
}
slice = slice.Slice(iteration5);
pos += iteration5;
charloop_ending_pos4 = pos;
goto CharLoopEnd4;
CharLoopBacktrack4:
UncaptureUntil(base.runstack![--stackpos]);
Utilities.StackPop(base.runstack!, ref stackpos, out charloop_ending_pos4, out charloop_starting_pos4);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos4 >= charloop_ending_pos4)
{
goto LoopIterationNoMatch;
}
pos = --charloop_ending_pos4;
slice = inputSpan.Slice(pos);
CharLoopEnd4:
Utilities.StackPush(ref base.runstack!, ref stackpos, charloop_starting_pos4, charloop_ending_pos4, base.Crawlpos());
//}
base.Capture(3, capture_starting_pos2, pos);
Utilities.StackPush(ref base.runstack!, ref stackpos, capture_starting_pos2);
goto CaptureSkipBacktrack2;
CaptureBacktrack2:
capture_starting_pos2 = base.runstack![--stackpos];
goto CharLoopBacktrack4;
CaptureSkipBacktrack2:;
//}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration == 0)
{
goto LoopBody;
}
goto LoopEnd;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch:
if (--loop_iteration < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto CharLoopBacktrack3;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
goto LoopEnd;
LoopBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (loop_iteration == 0)
{
// No iterations of the loop remain to backtrack into. Fail the loop.
goto CharLoopBacktrack3;
}
goto CaptureBacktrack2;
LoopEnd:;
//}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
goto LoopBacktrack;
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the TerminalLoggerArgPattern method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class TerminalLoggerArgPattern_10 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly TerminalLoggerArgPattern_10 Instance = new();
/// <summary>Initializes the instance.</summary>
private TerminalLoggerArgPattern_10()
{
base.pattern = "(?:/|-|--)(?:tl|terminallogger):(?'value'on|off|true|false|auto)";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "value", 1 } };
base.capslist = new string[] {"0", "value" };
base.capsize = 2;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// Search until we can't find a valid starting position, we find a match, or we reach the end of the input.
while (TryFindNextPossibleStartingPosition(inputSpan) &&
!TryMatchAtCurrentPosition(inputSpan) &&
base.runtextpos != inputSpan.Length)
{
base.runtextpos++;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 6 characters.
if (pos <= inputSpan.Length - 6)
{
// The pattern begins with a character in the set [\-/].
// Find the next occurrence. If it can't be found, there's no match.
int i = inputSpan.Slice(pos).IndexOfAny('-', '/');
if (i >= 0)
{
base.runtextpos = pos + i;
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int alternation_branch = 0;
int alternation_starting_capturepos = 0;
int alternation_starting_pos = 0;
int capture_starting_pos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match with 2 alternative expressions.
//{
alternation_starting_pos = pos;
alternation_starting_capturepos = base.Crawlpos();
// Branch 0
//{
// Match a character in the set [\-/].
if (slice.IsEmpty || ((slice[0] | 0x2) != '/'))
{
goto AlternationBranch;
}
alternation_branch = 0;
pos++;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
AlternationBranch:
pos = alternation_starting_pos;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos);
//}
// Branch 1
//{
// Match the string "--".
if (!slice.StartsWith("--"))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
alternation_branch = 1;
pos += 2;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
//}
AlternationBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
switch (alternation_branch)
{
case 0:
goto AlternationBranch;
case 1:
UncaptureUntil(0);
return false; // The input didn't match.
}
AlternationMatch:;
//}
// Match a character in the set [Tt].
if (slice.IsEmpty || ((slice[0] | 0x20) != 't'))
{
goto AlternationBacktrack;
}
// Match with 2 alternative expressions.
//{
if ((uint)slice.Length < 2)
{
goto AlternationBacktrack;
}
switch (slice[1])
{
case 'L' or 'l':
pos += 2;
slice = inputSpan.Slice(pos);
break;
case 'E' or 'e':
if ((uint)slice.Length < 14 ||
!slice.Slice(2).StartsWith("rminallogger", StringComparison.OrdinalIgnoreCase)) // Match the string "rminallogger" (ordinal case-insensitive)
{
goto AlternationBacktrack;
}
pos += 14;
slice = inputSpan.Slice(pos);
break;
default:
goto AlternationBacktrack;
}
//}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto AlternationBacktrack;
}
// "value" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos = pos;
// Match with 4 alternative expressions, atomically.
{
if (slice.IsEmpty)
{
goto AlternationBacktrack;
}
switch (slice[0])
{
case 'O' or 'o':
// Match with 2 alternative expressions, atomically.
{
if ((uint)slice.Length < 2)
{
goto AlternationBacktrack;
}
switch (slice[1])
{
case 'N' or 'n':
pos += 2;
slice = inputSpan.Slice(pos);
break;
case 'F' or 'f':
// Match a character in the set [Ff] exactly 2 times.
{
if ((uint)slice.Length < 3 ||
((slice[1] | 0x20) != 'f') ||
((slice[2] | 0x20) != 'f'))
{
goto AlternationBacktrack;
}
}
pos += 3;
slice = inputSpan.Slice(pos);
break;
default:
goto AlternationBacktrack;
}
}
break;
case 'T' or 't':
if ((uint)slice.Length < 4 ||
!slice.Slice(1).StartsWith("rue", StringComparison.OrdinalIgnoreCase)) // Match the string "rue" (ordinal case-insensitive)
{
goto AlternationBacktrack;
}
pos += 4;
slice = inputSpan.Slice(pos);
break;
case 'F' or 'f':
if ((uint)slice.Length < 5 ||
!slice.Slice(1).StartsWith("alse", StringComparison.OrdinalIgnoreCase)) // Match the string "alse" (ordinal case-insensitive)
{
goto AlternationBacktrack;
}
pos += 5;
slice = inputSpan.Slice(pos);
break;
case 'A' or 'a':
if ((uint)slice.Length < 4 ||
!slice.Slice(1).StartsWith("uto", StringComparison.OrdinalIgnoreCase)) // Match the string "uto" (ordinal case-insensitive)
{
goto AlternationBacktrack;
}
pos += 4;
slice = inputSpan.Slice(pos);
break;
default:
goto AlternationBacktrack;
}
}
base.Capture(1, capture_starting_pos, pos);
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the VerbosityArgPattern method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class VerbosityArgPattern_11 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly VerbosityArgPattern_11 Instance = new();
/// <summary>Initializes the instance.</summary>
private VerbosityArgPattern_11()
{
base.pattern = "(?:/|-|--)(?:v|verbosity):(?'value'\\w+)";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "value", 1 } };
base.capslist = new string[] {"0", "value" };
base.capsize = 2;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// Search until we can't find a valid starting position, we find a match, or we reach the end of the input.
while (TryFindNextPossibleStartingPosition(inputSpan) &&
!TryMatchAtCurrentPosition(inputSpan) &&
base.runtextpos != inputSpan.Length)
{
base.runtextpos++;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 4 characters.
if (pos <= inputSpan.Length - 4)
{
// The pattern begins with a character in the set [\-/].
// Find the next occurrence. If it can't be found, there's no match.
int i = inputSpan.Slice(pos).IndexOfAny('-', '/');
if (i >= 0)
{
base.runtextpos = pos + i;
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int alternation_branch = 0;
int alternation_starting_capturepos = 0;
int alternation_starting_pos = 0;
int capture_starting_pos = 0;
int loop_iteration = 0;
int stackpos = 0;
int startingStackpos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match with 2 alternative expressions.
//{
alternation_starting_pos = pos;
alternation_starting_capturepos = base.Crawlpos();
// Branch 0
//{
// Match a character in the set [\-/].
if (slice.IsEmpty || ((slice[0] | 0x2) != '/'))
{
goto AlternationBranch;
}
alternation_branch = 0;
pos++;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
AlternationBranch:
pos = alternation_starting_pos;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos);
//}
// Branch 1
//{
// Match the string "--".
if (!slice.StartsWith("--"))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
alternation_branch = 1;
pos += 2;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
//}
AlternationBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
switch (alternation_branch)
{
case 0:
goto AlternationBranch;
case 1:
UncaptureUntil(0);
return false; // The input didn't match.
}
AlternationMatch:;
//}
// Match a character in the set [Vv].
if (slice.IsEmpty || ((slice[0] | 0x20) != 'v'))
{
goto AlternationBacktrack;
}
// Optional (greedy).
{
pos++;
slice = inputSpan.Slice(pos);
startingStackpos = stackpos;
loop_iteration = 0;
LoopBody:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration++;
if ((uint)slice.Length < 8 ||
!slice.StartsWith("erbosity", StringComparison.OrdinalIgnoreCase)) // Match the string "erbosity" (ordinal case-insensitive)
{
goto LoopIterationNoMatch;
}
pos += 8;
slice = inputSpan.Slice(pos);
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration == 0)
{
goto LoopBody;
}
goto LoopEnd;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch:
if (--loop_iteration < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto AlternationBacktrack;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd:
stackpos = startingStackpos; // Ensure any remaining backtracking state is removed.
}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto AlternationBacktrack;
}
// "value" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos = pos;
// Match a word character atomically at least once.
{
int iteration = 0;
while ((uint)iteration < (uint)slice.Length && Utilities.IsWordChar(slice[iteration]))
{
iteration++;
}
if (iteration == 0)
{
goto AlternationBacktrack;
}
slice = slice.Slice(iteration);
pos += iteration;
}
base.Capture(1, capture_starting_pos, pos);
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the TerminalLoggerParametersArgPattern method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class TerminalLoggerParametersArgPattern_12 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly TerminalLoggerParametersArgPattern_12 Instance = new();
/// <summary>Initializes the instance.</summary>
private TerminalLoggerParametersArgPattern_12()
{
base.pattern = "(?:/|-|--)(?:tlp|terminalloggerparameters):(?'value'.+)";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "value", 1 } };
base.capslist = new string[] {"0", "value" };
base.capsize = 2;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// Search until we can't find a valid starting position, we find a match, or we reach the end of the input.
while (TryFindNextPossibleStartingPosition(inputSpan) &&
!TryMatchAtCurrentPosition(inputSpan) &&
base.runtextpos != inputSpan.Length)
{
base.runtextpos++;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 6 characters.
if (pos <= inputSpan.Length - 6)
{
// The pattern begins with a character in the set [\-/].
// Find the next occurrence. If it can't be found, there's no match.
int i = inputSpan.Slice(pos).IndexOfAny('-', '/');
if (i >= 0)
{
base.runtextpos = pos + i;
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int alternation_branch = 0;
int alternation_starting_capturepos = 0;
int alternation_starting_pos = 0;
int capture_starting_pos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match with 2 alternative expressions.
//{
alternation_starting_pos = pos;
alternation_starting_capturepos = base.Crawlpos();
// Branch 0
//{
// Match a character in the set [\-/].
if (slice.IsEmpty || ((slice[0] | 0x2) != '/'))
{
goto AlternationBranch;
}
alternation_branch = 0;
pos++;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
AlternationBranch:
pos = alternation_starting_pos;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos);
//}
// Branch 1
//{
// Match the string "--".
if (!slice.StartsWith("--"))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
alternation_branch = 1;
pos += 2;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
//}
AlternationBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
switch (alternation_branch)
{
case 0:
goto AlternationBranch;
case 1:
UncaptureUntil(0);
return false; // The input didn't match.
}
AlternationMatch:;
//}
// Match a character in the set [Tt].
if (slice.IsEmpty || ((slice[0] | 0x20) != 't'))
{
goto AlternationBacktrack;
}
// Match with 2 alternative expressions.
//{
if ((uint)slice.Length < 2)
{
goto AlternationBacktrack;
}
switch (slice[1])
{
case 'L' or 'l':
// Match a character in the set [Pp].
if ((uint)slice.Length < 3 || ((slice[2] | 0x20) != 'p'))
{
goto AlternationBacktrack;
}
pos += 3;
slice = inputSpan.Slice(pos);
break;
case 'E' or 'e':
if ((uint)slice.Length < 24 ||
!slice.Slice(2).StartsWith("rminalloggerparameters", StringComparison.OrdinalIgnoreCase)) // Match the string "rminalloggerparameters" (ordinal case-insensitive)
{
goto AlternationBacktrack;
}
pos += 24;
slice = inputSpan.Slice(pos);
break;
default:
goto AlternationBacktrack;
}
//}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto AlternationBacktrack;
}
// "value" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos = pos;
// Match a character other than '\n' atomically at least once.
{
int iteration = slice.IndexOf('\n');
if (iteration < 0)
{
iteration = slice.Length;
}
if (iteration == 0)
{
goto AlternationBacktrack;
}
slice = slice.Slice(iteration);
pos += iteration;
}
base.Capture(1, capture_starting_pos, pos);
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the ConsoleLoggerParametersArgPattern method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class ConsoleLoggerParametersArgPattern_13 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly ConsoleLoggerParametersArgPattern_13 Instance = new();
/// <summary>Initializes the instance.</summary>
private ConsoleLoggerParametersArgPattern_13()
{
base.pattern = "(?:/|-|--)(?:clp|consoleloggerparameters):(?'value'.+)";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "value", 1 } };
base.capslist = new string[] {"0", "value" };
base.capsize = 2;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// Search until we can't find a valid starting position, we find a match, or we reach the end of the input.
while (TryFindNextPossibleStartingPosition(inputSpan) &&
!TryMatchAtCurrentPosition(inputSpan) &&
base.runtextpos != inputSpan.Length)
{
base.runtextpos++;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 6 characters.
if (pos <= inputSpan.Length - 6)
{
// The pattern begins with a character in the set [\-/].
// Find the next occurrence. If it can't be found, there's no match.
int i = inputSpan.Slice(pos).IndexOfAny('-', '/');
if (i >= 0)
{
base.runtextpos = pos + i;
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int alternation_branch = 0;
int alternation_starting_capturepos = 0;
int alternation_starting_pos = 0;
int capture_starting_pos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match with 2 alternative expressions.
//{
alternation_starting_pos = pos;
alternation_starting_capturepos = base.Crawlpos();
// Branch 0
//{
// Match a character in the set [\-/].
if (slice.IsEmpty || ((slice[0] | 0x2) != '/'))
{
goto AlternationBranch;
}
alternation_branch = 0;
pos++;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
AlternationBranch:
pos = alternation_starting_pos;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos);
//}
// Branch 1
//{
// Match the string "--".
if (!slice.StartsWith("--"))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
alternation_branch = 1;
pos += 2;
slice = inputSpan.Slice(pos);
goto AlternationMatch;
//}
AlternationBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
switch (alternation_branch)
{
case 0:
goto AlternationBranch;
case 1:
UncaptureUntil(0);
return false; // The input didn't match.
}
AlternationMatch:;
//}
// Match a character in the set [Cc].
if (slice.IsEmpty || ((slice[0] | 0x20) != 'c'))
{
goto AlternationBacktrack;
}
// Match with 2 alternative expressions.
//{
if ((uint)slice.Length < 2)
{
goto AlternationBacktrack;
}
switch (slice[1])
{
case 'L' or 'l':
// Match a character in the set [Pp].
if ((uint)slice.Length < 3 || ((slice[2] | 0x20) != 'p'))
{
goto AlternationBacktrack;
}
pos += 3;
slice = inputSpan.Slice(pos);
break;
case 'O' or 'o':
if ((uint)slice.Length < 23 ||
!slice.Slice(2).StartsWith("nsoleloggerparameters", StringComparison.OrdinalIgnoreCase)) // Match the string "nsoleloggerparameters" (ordinal case-insensitive)
{
goto AlternationBacktrack;
}
pos += 23;
slice = inputSpan.Slice(pos);
break;
default:
goto AlternationBacktrack;
}
//}
// Match ':'.
if (slice.IsEmpty || slice[0] != ':')
{
goto AlternationBacktrack;
}
// "value" capture group.
{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos = pos;
// Match a character other than '\n' atomically at least once.
{
int iteration = slice.IndexOf('\n');
if (iteration < 0)
{
iteration = slice.Length;
}
if (iteration == 0)
{
goto AlternationBacktrack;
}
slice = slice.Slice(iteration);
pos += iteration;
}
base.Capture(1, capture_starting_pos, pos);
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the ItemVectorTransformRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class ItemVectorTransformRegex_14 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly ItemVectorTransformRegex_14 Instance = new();
/// <summary>Initializes the instance.</summary>
private ItemVectorTransformRegex_14()
{
base.pattern = "(?<PREFIX>@\\(\\s*)\n (?<TYPE>[A-Za-z_][A-Za-z_0-9\\-]*)\n (?<TRANSFORM_SPECIFICATION>(?<ARROW>\\s*->\\s*)(?<TRANSFORM>'[^']*'))\n (?<SEPARATOR_SPECIFICATION>\\s*,\\s*'[^']*')?\n (?<SUFFIX>\\s*\\))";
base.roptions = RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "ARROW", 4 } , { "PREFIX", 1 } , { "SEPARATOR_SPECIFICATION", 6 } , { "SUFFIX", 7 } , { "TRANSFORM", 5 } , { "TRANSFORM_SPECIFICATION", 3 } , { "TYPE", 2 } };
base.capslist = new string[] {"0", "PREFIX", "TYPE", "TRANSFORM_SPECIFICATION", "ARROW", "TRANSFORM", "SEPARATOR_SPECIFICATION", "SUFFIX" };
base.capsize = 8;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// Search until we can't find a valid starting position, we find a match, or we reach the end of the input.
while (TryFindNextPossibleStartingPosition(inputSpan) &&
!TryMatchAtCurrentPosition(inputSpan) &&
base.runtextpos != inputSpan.Length)
{
base.runtextpos++;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 8 characters.
if (pos <= inputSpan.Length - 8)
{
// The pattern has the literal "@(" at the beginning of the pattern. Find the next occurrence.
// If it can't be found, there's no match.
int i = inputSpan.Slice(pos).IndexOfAny(Utilities.s_indexOfString_C7DF9B147331011DE7321CD7E62F0D799941853E78E1507F38B4C54A3047DBAA);
if (i >= 0)
{
base.runtextpos = pos + i;
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
int capture_starting_pos2 = 0;
int capture_starting_pos3 = 0;
int capture_starting_pos4 = 0;
int capture_starting_pos6 = 0;
int charloop_capture_pos = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int loop_iteration = 0;
int stackpos = 0;
ulong charMinusLowUInt64;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// "PREFIX" capture group.
{
capture_starting_pos = pos;
// Match the string "@(".
if (!slice.StartsWith("@("))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match a whitespace character atomically any number of times.
{
int iteration = 2;
while ((uint)iteration < (uint)slice.Length && char.IsWhiteSpace(slice[iteration]))
{
iteration++;
}
slice = slice.Slice(iteration);
pos += iteration;
}
base.Capture(1, capture_starting_pos, pos);
}
// "TYPE" capture group.
//{
capture_starting_pos1 = pos;
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match a character in the set [\-0-9A-Z_a-z] greedily any number of times.
//{
pos++;
slice = inputSpan.Slice(pos);
charloop_starting_pos = pos;
int iteration1 = slice.IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration1 < 0)
{
iteration1 = slice.Length;
}
slice = slice.Slice(iteration1);
pos += iteration1;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
pos = --charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
base.Capture(2, capture_starting_pos1, pos);
goto CaptureSkipBacktrack;
CaptureBacktrack:
goto CharLoopBacktrack;
CaptureSkipBacktrack:;
//}
// "TRANSFORM_SPECIFICATION" capture group.
{
capture_starting_pos2 = pos;
// "ARROW" capture group.
{
capture_starting_pos3 = pos;
// Match a whitespace character atomically any number of times.
{
int iteration2 = 0;
while ((uint)iteration2 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration2]))
{
iteration2++;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
// Match the string "->".
if (!slice.StartsWith("->"))
{
goto CaptureBacktrack;
}
// Match a whitespace character atomically any number of times.
{
int iteration3 = 2;
while ((uint)iteration3 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration3]))
{
iteration3++;
}
slice = slice.Slice(iteration3);
pos += iteration3;
}
base.Capture(4, capture_starting_pos3, pos);
}
// "TRANSFORM" capture group.
{
capture_starting_pos4 = pos;
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto CaptureBacktrack;
}
// Match a character other than '\'' atomically any number of times.
{
int iteration4 = slice.Slice(1).IndexOf('\'');
if (iteration4 < 0)
{
iteration4 = slice.Length - 1;
}
slice = slice.Slice(iteration4);
pos += iteration4;
}
// Match '\''.
if ((uint)slice.Length < 2 || slice[1] != '\'')
{
goto CaptureBacktrack;
}
pos += 2;
slice = inputSpan.Slice(pos);
base.Capture(5, capture_starting_pos4, pos);
}
base.Capture(3, capture_starting_pos2, pos);
}
// Optional (greedy).
//{
loop_iteration = 0;
LoopBody:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration++;
// "SEPARATOR_SPECIFICATION" capture group.
{
int capture_starting_pos5 = pos;
// Match a whitespace character atomically any number of times.
{
int iteration5 = 0;
while ((uint)iteration5 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration5]))
{
iteration5++;
}
slice = slice.Slice(iteration5);
pos += iteration5;
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
goto LoopIterationNoMatch;
}
// Match a whitespace character atomically any number of times.
{
int iteration6 = 1;
while ((uint)iteration6 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration6]))
{
iteration6++;
}
slice = slice.Slice(iteration6);
pos += iteration6;
}
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto LoopIterationNoMatch;
}
// Match a character other than '\'' atomically any number of times.
{
int iteration7 = slice.Slice(1).IndexOf('\'');
if (iteration7 < 0)
{
iteration7 = slice.Length - 1;
}
slice = slice.Slice(iteration7);
pos += iteration7;
}
// Match '\''.
if ((uint)slice.Length < 2 || slice[1] != '\'')
{
goto LoopIterationNoMatch;
}
pos += 2;
slice = inputSpan.Slice(pos);
base.Capture(6, capture_starting_pos5, pos);
}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration == 0)
{
goto LoopBody;
}
goto LoopEnd;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch:
if (--loop_iteration < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto CaptureBacktrack;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd:;
//}
// "SUFFIX" capture group.
{
capture_starting_pos6 = pos;
// Match a whitespace character atomically any number of times.
{
int iteration8 = 0;
while ((uint)iteration8 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration8]))
{
iteration8++;
}
slice = slice.Slice(iteration8);
pos += iteration8;
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto LoopIterationNoMatch;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(7, capture_starting_pos6, pos);
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the ItemVectorTransformRawRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class ItemVectorTransformRawRegex_15 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly ItemVectorTransformRawRegex_15 Instance = new();
/// <summary>Initializes the instance.</summary>
private ItemVectorTransformRawRegex_15()
{
base.pattern = "@\\(\\s*\n ([A-Za-z_][A-Za-z_0-9\\-]*)\n (\\s*->\\s*'[^']*')\n (\\s*,\\s*'[^']*')?\n \\s*\\)";
base.roptions = RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.capsize = 1;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// Search until we can't find a valid starting position, we find a match, or we reach the end of the input.
while (TryFindNextPossibleStartingPosition(inputSpan) &&
!TryMatchAtCurrentPosition(inputSpan) &&
base.runtextpos != inputSpan.Length)
{
base.runtextpos++;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 8 characters.
if (pos <= inputSpan.Length - 8)
{
// The pattern has the literal "@(" at the beginning of the pattern. Find the next occurrence.
// If it can't be found, there's no match.
int i = inputSpan.Slice(pos).IndexOfAny(Utilities.s_indexOfString_C7DF9B147331011DE7321CD7E62F0D799941853E78E1507F38B4C54A3047DBAA);
if (i >= 0)
{
base.runtextpos = pos + i;
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int loop_iteration = 0;
int stackpos = 0;
ulong charMinusLowUInt64;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match the string "@(".
if (!slice.StartsWith("@("))
{
return false; // The input didn't match.
}
// Match a whitespace character atomically any number of times.
{
int iteration = 2;
while ((uint)iteration < (uint)slice.Length && char.IsWhiteSpace(slice[iteration]))
{
iteration++;
}
slice = slice.Slice(iteration);
pos += iteration;
}
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
return false; // The input didn't match.
}
// Match a character in the set [\-0-9A-Z_a-z] greedily any number of times.
//{
pos++;
slice = inputSpan.Slice(pos);
charloop_starting_pos = pos;
int iteration1 = slice.IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration1 < 0)
{
iteration1 = slice.Length;
}
slice = slice.Slice(iteration1);
pos += iteration1;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos)
{
return false; // The input didn't match.
}
pos = --charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
//}
// Match a whitespace character atomically any number of times.
{
int iteration2 = 0;
while ((uint)iteration2 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration2]))
{
iteration2++;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
// Match the string "->".
if (!slice.StartsWith("->"))
{
goto CharLoopBacktrack;
}
// Match a whitespace character atomically any number of times.
{
int iteration3 = 2;
while ((uint)iteration3 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration3]))
{
iteration3++;
}
slice = slice.Slice(iteration3);
pos += iteration3;
}
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto CharLoopBacktrack;
}
// Match a character other than '\'' atomically any number of times.
{
int iteration4 = slice.Slice(1).IndexOf('\'');
if (iteration4 < 0)
{
iteration4 = slice.Length - 1;
}
slice = slice.Slice(iteration4);
pos += iteration4;
}
// Match '\''.
if ((uint)slice.Length < 2 || slice[1] != '\'')
{
goto CharLoopBacktrack;
}
// Optional (greedy).
//{
pos += 2;
slice = inputSpan.Slice(pos);
loop_iteration = 0;
LoopBody:
Utilities.StackPush(ref base.runstack!, ref stackpos, pos);
loop_iteration++;
// Match a whitespace character atomically any number of times.
{
int iteration5 = 0;
while ((uint)iteration5 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration5]))
{
iteration5++;
}
slice = slice.Slice(iteration5);
pos += iteration5;
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
goto LoopIterationNoMatch;
}
// Match a whitespace character atomically any number of times.
{
int iteration6 = 1;
while ((uint)iteration6 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration6]))
{
iteration6++;
}
slice = slice.Slice(iteration6);
pos += iteration6;
}
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto LoopIterationNoMatch;
}
// Match a character other than '\'' atomically any number of times.
{
int iteration7 = slice.Slice(1).IndexOf('\'');
if (iteration7 < 0)
{
iteration7 = slice.Length - 1;
}
slice = slice.Slice(iteration7);
pos += iteration7;
}
// Match '\''.
if ((uint)slice.Length < 2 || slice[1] != '\'')
{
goto LoopIterationNoMatch;
}
pos += 2;
slice = inputSpan.Slice(pos);
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration == 0)
{
goto LoopBody;
}
goto LoopEnd;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch:
if (--loop_iteration < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto CharLoopBacktrack;
}
pos = base.runstack![--stackpos];
slice = inputSpan.Slice(pos);
LoopEnd:;
//}
// Match a whitespace character atomically any number of times.
{
int iteration8 = 0;
while ((uint)iteration8 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration8]))
{
iteration8++;
}
slice = slice.Slice(iteration8);
pos += iteration8;
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto LoopIterationNoMatch;
}
// The input matched.
pos++;
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the XmlDeclarationRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class XmlDeclarationRegex_16 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly XmlDeclarationRegex_16 Instance = new();
/// <summary>Initializes the instance.</summary>
private XmlDeclarationRegex_16()
{
base.pattern = "\\A\\s*\\<\\?\\s*xml.*\\?\\>\\s*\\Z";
base.roptions = RegexOptions.None;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.capsize = 1;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 7 characters.
if (pos <= inputSpan.Length - 7)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int charloop_starting_pos1 = 0, charloop_ending_pos1 = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
return false; // The input didn't match.
}
// Match a whitespace character atomically any number of times.
{
int iteration = 0;
while ((uint)iteration < (uint)slice.Length && char.IsWhiteSpace(slice[iteration]))
{
iteration++;
}
slice = slice.Slice(iteration);
pos += iteration;
}
// Match the string "<?".
if (!slice.StartsWith("<?"))
{
return false; // The input didn't match.
}
// Match a whitespace character atomically any number of times.
{
int iteration1 = 2;
while ((uint)iteration1 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration1]))
{
iteration1++;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
// Match the string "xml".
if (!slice.StartsWith("xml"))
{
return false; // The input didn't match.
}
// Match a character other than '\n' greedily any number of times.
//{
pos += 3;
slice = inputSpan.Slice(pos);
charloop_starting_pos = pos;
int iteration2 = slice.IndexOf('\n');
if (iteration2 < 0)
{
iteration2 = slice.Length;
}
slice = slice.Slice(iteration2);
pos += iteration2;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos ||
(charloop_ending_pos = inputSpan.Slice(charloop_starting_pos, Math.Min(inputSpan.Length, charloop_ending_pos + 1) - charloop_starting_pos).LastIndexOf("?>")) < 0)
{
return false; // The input didn't match.
}
charloop_ending_pos += charloop_starting_pos;
pos = charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
//}
// Match the string "?>".
if (!slice.StartsWith("?>"))
{
goto CharLoopBacktrack;
}
// Match a whitespace character greedily any number of times.
//{
pos += 2;
slice = inputSpan.Slice(pos);
charloop_starting_pos1 = pos;
int iteration3 = 0;
while ((uint)iteration3 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration3]))
{
iteration3++;
}
slice = slice.Slice(iteration3);
pos += iteration3;
charloop_ending_pos1 = pos;
goto CharLoopEnd1;
CharLoopBacktrack1:
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos1 >= charloop_ending_pos1)
{
goto CharLoopBacktrack;
}
pos = --charloop_ending_pos1;
slice = inputSpan.Slice(pos);
CharLoopEnd1:
//}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
goto CharLoopBacktrack1;
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the CrackProjectLineRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class CrackProjectLineRegex_17 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly CrackProjectLineRegex_17 Instance = new();
/// <summary>Initializes the instance.</summary>
private CrackProjectLineRegex_17()
{
base.pattern = "^Project\\(\"(?<PROJECTTYPEGUID>.*)\"\\)\\s*=\\s*\"(?<PROJECTNAME>.*)\"\\s*,\\s*\"(?<RELATIVEPATH>.*)\"\\s*,\\s*\"(?<PROJECTGUID>.*)\"$";
base.roptions = RegexOptions.None;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "PROJECTGUID", 4 } , { "PROJECTNAME", 2 } , { "PROJECTTYPEGUID", 1 } , { "RELATIVEPATH", 3 } };
base.capslist = new string[] {"0", "PROJECTTYPEGUID", "PROJECTNAME", "RELATIVEPATH", "PROJECTGUID" };
base.capsize = 5;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 20 characters.
if (pos <= inputSpan.Length - 20)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
int capture_starting_pos2 = 0;
int capture_starting_pos3 = 0;
int charloop_capture_pos = 0;
int charloop_capture_pos1 = 0;
int charloop_capture_pos2 = 0;
int charloop_capture_pos3 = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int charloop_starting_pos1 = 0, charloop_ending_pos1 = 0;
int charloop_starting_pos2 = 0, charloop_ending_pos2 = 0;
int charloop_starting_pos3 = 0, charloop_ending_pos3 = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match the string "Project(\"".
if (!slice.StartsWith("Project(\""))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "PROJECTTYPEGUID" capture group.
//{
pos += 9;
slice = inputSpan.Slice(pos);
capture_starting_pos = pos;
// Match a character other than '\n' greedily any number of times.
//{
charloop_starting_pos = pos;
int iteration = slice.IndexOf('\n');
if (iteration < 0)
{
iteration = slice.Length;
}
slice = slice.Slice(iteration);
pos += iteration;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos ||
(charloop_ending_pos = inputSpan.Slice(charloop_starting_pos, Math.Min(inputSpan.Length, charloop_ending_pos + 1) - charloop_starting_pos).LastIndexOf("\")")) < 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
charloop_ending_pos += charloop_starting_pos;
pos = charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
base.Capture(1, capture_starting_pos, pos);
goto CaptureSkipBacktrack;
CaptureBacktrack:
goto CharLoopBacktrack;
CaptureSkipBacktrack:;
//}
// Match the string "\")".
if (!slice.StartsWith("\")"))
{
goto CaptureBacktrack;
}
// Match a whitespace character atomically any number of times.
{
int iteration1 = 2;
while ((uint)iteration1 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration1]))
{
iteration1++;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
// Match '='.
if (slice.IsEmpty || slice[0] != '=')
{
goto CaptureBacktrack;
}
// Match a whitespace character atomically any number of times.
{
int iteration2 = 1;
while ((uint)iteration2 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration2]))
{
iteration2++;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
// Match '"'.
if (slice.IsEmpty || slice[0] != '"')
{
goto CaptureBacktrack;
}
// "PROJECTNAME" capture group.
//{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos1 = pos;
// Match a character other than '\n' greedily any number of times.
//{
charloop_starting_pos1 = pos;
int iteration3 = slice.IndexOf('\n');
if (iteration3 < 0)
{
iteration3 = slice.Length;
}
slice = slice.Slice(iteration3);
pos += iteration3;
charloop_ending_pos1 = pos;
goto CharLoopEnd1;
CharLoopBacktrack1:
UncaptureUntil(charloop_capture_pos1);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos1 >= charloop_ending_pos1 ||
(charloop_ending_pos1 = inputSpan.Slice(charloop_starting_pos1, charloop_ending_pos1 - charloop_starting_pos1).LastIndexOf('"')) < 0)
{
goto CaptureBacktrack;
}
charloop_ending_pos1 += charloop_starting_pos1;
pos = charloop_ending_pos1;
slice = inputSpan.Slice(pos);
CharLoopEnd1:
charloop_capture_pos1 = base.Crawlpos();
//}
base.Capture(2, capture_starting_pos1, pos);
goto CaptureSkipBacktrack1;
CaptureBacktrack1:
goto CharLoopBacktrack1;
CaptureSkipBacktrack1:;
//}
// Match '"'.
if (slice.IsEmpty || slice[0] != '"')
{
goto CaptureBacktrack1;
}
// Match a whitespace character atomically any number of times.
{
int iteration4 = 1;
while ((uint)iteration4 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration4]))
{
iteration4++;
}
slice = slice.Slice(iteration4);
pos += iteration4;
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
goto CaptureBacktrack1;
}
// Match a whitespace character atomically any number of times.
{
int iteration5 = 1;
while ((uint)iteration5 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration5]))
{
iteration5++;
}
slice = slice.Slice(iteration5);
pos += iteration5;
}
// Match '"'.
if (slice.IsEmpty || slice[0] != '"')
{
goto CaptureBacktrack1;
}
// "RELATIVEPATH" capture group.
//{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos2 = pos;
// Match a character other than '\n' greedily any number of times.
//{
charloop_starting_pos2 = pos;
int iteration6 = slice.IndexOf('\n');
if (iteration6 < 0)
{
iteration6 = slice.Length;
}
slice = slice.Slice(iteration6);
pos += iteration6;
charloop_ending_pos2 = pos;
goto CharLoopEnd2;
CharLoopBacktrack2:
UncaptureUntil(charloop_capture_pos2);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos2 >= charloop_ending_pos2 ||
(charloop_ending_pos2 = inputSpan.Slice(charloop_starting_pos2, charloop_ending_pos2 - charloop_starting_pos2).LastIndexOf('"')) < 0)
{
goto CaptureBacktrack1;
}
charloop_ending_pos2 += charloop_starting_pos2;
pos = charloop_ending_pos2;
slice = inputSpan.Slice(pos);
CharLoopEnd2:
charloop_capture_pos2 = base.Crawlpos();
//}
base.Capture(3, capture_starting_pos2, pos);
goto CaptureSkipBacktrack2;
CaptureBacktrack2:
goto CharLoopBacktrack2;
CaptureSkipBacktrack2:;
//}
// Match '"'.
if (slice.IsEmpty || slice[0] != '"')
{
goto CaptureBacktrack2;
}
// Match a whitespace character atomically any number of times.
{
int iteration7 = 1;
while ((uint)iteration7 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration7]))
{
iteration7++;
}
slice = slice.Slice(iteration7);
pos += iteration7;
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
goto CaptureBacktrack2;
}
// Match a whitespace character atomically any number of times.
{
int iteration8 = 1;
while ((uint)iteration8 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration8]))
{
iteration8++;
}
slice = slice.Slice(iteration8);
pos += iteration8;
}
// Match '"'.
if (slice.IsEmpty || slice[0] != '"')
{
goto CaptureBacktrack2;
}
// "PROJECTGUID" capture group.
//{
pos++;
slice = inputSpan.Slice(pos);
capture_starting_pos3 = pos;
// Match a character other than '\n' greedily any number of times.
//{
charloop_starting_pos3 = pos;
int iteration9 = slice.IndexOf('\n');
if (iteration9 < 0)
{
iteration9 = slice.Length;
}
slice = slice.Slice(iteration9);
pos += iteration9;
charloop_ending_pos3 = pos;
goto CharLoopEnd3;
CharLoopBacktrack3:
UncaptureUntil(charloop_capture_pos3);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos3 >= charloop_ending_pos3 ||
(charloop_ending_pos3 = inputSpan.Slice(charloop_starting_pos3, charloop_ending_pos3 - charloop_starting_pos3).LastIndexOf('"')) < 0)
{
goto CaptureBacktrack2;
}
charloop_ending_pos3 += charloop_starting_pos3;
pos = charloop_ending_pos3;
slice = inputSpan.Slice(pos);
CharLoopEnd3:
charloop_capture_pos3 = base.Crawlpos();
//}
base.Capture(4, capture_starting_pos3, pos);
goto CaptureSkipBacktrack3;
CaptureBacktrack3:
goto CharLoopBacktrack3;
CaptureSkipBacktrack3:;
//}
// Match '"'.
if (slice.IsEmpty || slice[0] != '"')
{
goto CaptureBacktrack3;
}
// Match if at the end of the string or if before an ending newline.
if (2 < slice.Length || (1 < slice.Length && slice[1] != '\n'))
{
goto CaptureBacktrack3;
}
// The input matched.
pos++;
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the CrackPropertyLineRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class CrackPropertyLineRegex_18 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly CrackPropertyLineRegex_18 Instance = new();
/// <summary>Initializes the instance.</summary>
private CrackPropertyLineRegex_18()
{
base.pattern = "^(?<PROPERTYNAME>[^=]*)\\s*=\\s*(?<PROPERTYVALUE>.*)$";
base.roptions = RegexOptions.None;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "PROPERTYNAME", 1 } , { "PROPERTYVALUE", 2 } };
base.capslist = new string[] {"0", "PROPERTYNAME", "PROPERTYVALUE" };
base.capsize = 3;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Empty matches aren't possible.
if ((uint)pos < (uint)inputSpan.Length)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos = 0;
int capture_starting_pos1 = 0;
int charloop_capture_pos = 0;
int charloop_capture_pos1 = 0;
int charloop_capture_pos2 = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int charloop_starting_pos1 = 0, charloop_ending_pos1 = 0;
int charloop_starting_pos2 = 0, charloop_ending_pos2 = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// "PROPERTYNAME" capture group.
//{
capture_starting_pos = pos;
// Match a character other than '=' greedily any number of times.
//{
charloop_starting_pos = pos;
int iteration = slice.IndexOf('=');
if (iteration < 0)
{
iteration = slice.Length;
}
slice = slice.Slice(iteration);
pos += iteration;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
pos = --charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
base.Capture(1, capture_starting_pos, pos);
goto CaptureSkipBacktrack;
CaptureBacktrack:
goto CharLoopBacktrack;
CaptureSkipBacktrack:;
//}
// Match a whitespace character atomically any number of times.
{
int iteration1 = 0;
while ((uint)iteration1 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration1]))
{
iteration1++;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
// Match '='.
if (slice.IsEmpty || slice[0] != '=')
{
goto CaptureBacktrack;
}
// Match a whitespace character greedily any number of times.
//{
pos++;
slice = inputSpan.Slice(pos);
charloop_starting_pos1 = pos;
int iteration2 = 0;
while ((uint)iteration2 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration2]))
{
iteration2++;
}
slice = slice.Slice(iteration2);
pos += iteration2;
charloop_ending_pos1 = pos;
goto CharLoopEnd1;
CharLoopBacktrack1:
UncaptureUntil(charloop_capture_pos1);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos1 >= charloop_ending_pos1)
{
goto CaptureBacktrack;
}
pos = --charloop_ending_pos1;
slice = inputSpan.Slice(pos);
CharLoopEnd1:
charloop_capture_pos1 = base.Crawlpos();
//}
// "PROPERTYVALUE" capture group.
//{
capture_starting_pos1 = pos;
// Match a character other than '\n' greedily any number of times.
//{
charloop_starting_pos2 = pos;
int iteration3 = slice.IndexOf('\n');
if (iteration3 < 0)
{
iteration3 = slice.Length;
}
slice = slice.Slice(iteration3);
pos += iteration3;
charloop_ending_pos2 = pos;
goto CharLoopEnd2;
CharLoopBacktrack2:
UncaptureUntil(charloop_capture_pos2);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos2 >= charloop_ending_pos2)
{
goto CharLoopBacktrack1;
}
pos = --charloop_ending_pos2;
slice = inputSpan.Slice(pos);
CharLoopEnd2:
charloop_capture_pos2 = base.Crawlpos();
//}
base.Capture(2, capture_starting_pos1, pos);
goto CaptureSkipBacktrack1;
CaptureBacktrack1:
goto CharLoopBacktrack2;
CaptureSkipBacktrack1:;
//}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
goto CaptureBacktrack1;
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the RegistrySdkRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class RegistrySdkRegex_19 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly RegistrySdkRegex_19 Instance = new();
/// <summary>Initializes the instance.</summary>
private RegistrySdkRegex_19()
{
base.pattern = "^HKEY_LOCAL_MACHINE\\\\Software\\\\Microsoft\\\\Microsoft SDKs\\\\Windows\\\\v(\\d+\\.\\d+)$";
base.roptions = RegexOptions.IgnoreCase;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.capsize = 2;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// The pattern is anchored. Validate the current position and try to match at it only.
if (TryFindNextPossibleStartingPosition(inputSpan) && !TryMatchAtCurrentPosition(inputSpan))
{
base.runtextpos = inputSpan.Length;
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 65 characters.
if (pos <= inputSpan.Length - 65)
{
// The pattern leads with a beginning (\A) anchor.
if (pos == 0)
{
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
char ch;
int capture_starting_pos = 0;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match if at the beginning of the string.
if (pos != 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
if ((uint)slice.Length < 62 ||
((slice[0] | 0x20) != 'h') || // Match a character in the set [Hh].
((((ch = slice[1]) | 0x20) != 'k') & (ch != 'K')) || // Match a character in the set [Kk\u212A].
!slice.Slice(2).StartsWith("ey_local_machine\\software\\microsoft\\microsoft sd", StringComparison.OrdinalIgnoreCase) || // Match the string "ey_local_machine\\software\\microsoft\\microsoft sd" (ordinal case-insensitive)
((((ch = slice[50]) | 0x20) != 'k') & (ch != 'K')) || // Match a character in the set [Kk\u212A].
!slice.Slice(51).StartsWith("s\\windows\\v", StringComparison.OrdinalIgnoreCase)) // Match the string "s\\windows\\v" (ordinal case-insensitive)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// 1st capture group.
{
pos += 62;
slice = inputSpan.Slice(pos);
capture_starting_pos = pos;
// Match a Unicode digit atomically at least once.
{
int iteration = 0;
while ((uint)iteration < (uint)slice.Length && char.IsDigit(slice[iteration]))
{
iteration++;
}
if (iteration == 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
slice = slice.Slice(iteration);
pos += iteration;
}
// Match '.'.
if (slice.IsEmpty || slice[0] != '.')
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match a Unicode digit atomically at least once.
{
pos++;
slice = inputSpan.Slice(pos);
int iteration1 = 0;
while ((uint)iteration1 < (uint)slice.Length && char.IsDigit(slice[iteration1]))
{
iteration1++;
}
if (iteration1 == 0)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
base.Capture(1, capture_starting_pos, pos);
}
// Match if at the end of the string or if before an ending newline.
if (pos < inputSpan.Length - 1 || ((uint)pos < (uint)inputSpan.Length && inputSpan[pos] != '\n'))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the ItemMetadataRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class ItemMetadataRegex_20 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly ItemMetadataRegex_20 Instance = new();
/// <summary>Initializes the instance.</summary>
private ItemMetadataRegex_20()
{
base.pattern = "%\\(\\s* (?<ITEM_SPECIFICATION>(?<ITEM_TYPE>[A-Za-z_][A-Za-z_0-9\\-]*)\\s*\\.\\s*)? (?<NAME>[A-Za-z_][A-Za-z_0-9\\-]*) \\s*\\)";
base.roptions = RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "ITEM_SPECIFICATION", 1 } , { "ITEM_TYPE", 2 } , { "NAME", 3 } };
base.capslist = new string[] {"0", "ITEM_SPECIFICATION", "ITEM_TYPE", "NAME" };
base.capsize = 4;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// Search until we can't find a valid starting position, we find a match, or we reach the end of the input.
while (TryFindNextPossibleStartingPosition(inputSpan) &&
!TryMatchAtCurrentPosition(inputSpan) &&
base.runtextpos != inputSpan.Length)
{
base.runtextpos++;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 4 characters.
if (pos <= inputSpan.Length - 4)
{
// The pattern has the literal "%(" at the beginning of the pattern. Find the next occurrence.
// If it can't be found, there's no match.
int i = inputSpan.Slice(pos).IndexOfAny(Utilities.s_indexOfString_94B03BD84CB7586977A2210FE884942D27D98E0A78FE4AE6F6D7879F63DC7C3B);
if (i >= 0)
{
base.runtextpos = pos + i;
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
int capture_starting_pos2 = 0;
int charloop_capture_pos = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int loop_iteration = 0;
int stackpos = 0;
ulong charMinusLowUInt64;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match the string "%(".
if (!slice.StartsWith("%("))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match a whitespace character greedily any number of times.
//{
pos += 2;
slice = inputSpan.Slice(pos);
charloop_starting_pos = pos;
int iteration = 0;
while ((uint)iteration < (uint)slice.Length && char.IsWhiteSpace(slice[iteration]))
{
iteration++;
}
slice = slice.Slice(iteration);
pos += iteration;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos >= charloop_ending_pos)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
pos = --charloop_ending_pos;
slice = inputSpan.Slice(pos);
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
// Optional (greedy).
//{
loop_iteration = 0;
LoopBody:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration++;
// "ITEM_SPECIFICATION" capture group.
{
int capture_starting_pos = pos;
// "ITEM_TYPE" capture group.
{
int capture_starting_pos1 = pos;
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto LoopIterationNoMatch;
}
// Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.
{
int iteration1 = slice.Slice(1).IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration1 < 0)
{
iteration1 = slice.Length - 1;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(2, capture_starting_pos1, pos);
}
// Match a whitespace character atomically any number of times.
{
int iteration2 = 0;
while ((uint)iteration2 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration2]))
{
iteration2++;
}
slice = slice.Slice(iteration2);
pos += iteration2;
}
// Match '.'.
if (slice.IsEmpty || slice[0] != '.')
{
goto LoopIterationNoMatch;
}
// Match a whitespace character atomically any number of times.
{
int iteration3 = 1;
while ((uint)iteration3 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration3]))
{
iteration3++;
}
slice = slice.Slice(iteration3);
pos += iteration3;
}
base.Capture(1, capture_starting_pos, pos);
}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration == 0)
{
goto LoopBody;
}
goto LoopEnd;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch:
if (--loop_iteration < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto CharLoopBacktrack;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd:;
//}
// "NAME" capture group.
{
capture_starting_pos2 = pos;
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto LoopIterationNoMatch;
}
// Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.
{
int iteration4 = slice.Slice(1).IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration4 < 0)
{
iteration4 = slice.Length - 1;
}
slice = slice.Slice(iteration4);
pos += iteration4;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(3, capture_starting_pos2, pos);
}
// Match a whitespace character atomically any number of times.
{
int iteration5 = 0;
while ((uint)iteration5 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration5]))
{
iteration5++;
}
slice = slice.Slice(iteration5);
pos += iteration5;
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto LoopIterationNoMatch;
}
// The input matched.
pos++;
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the NonTransformItemMetadataRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class NonTransformItemMetadataRegex_21 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly NonTransformItemMetadataRegex_21 Instance = new();
/// <summary>Initializes the instance.</summary>
private NonTransformItemMetadataRegex_21()
{
base.pattern = "((?<=@\\(\\s*[A-Za-z_][A-Za-z_0-9\\-]*\\s*->\\s*'[^']*)%\\(\\s* (?<ITEM_SPECIFICATION>(?<ITEM_TYPE>[A-Za-z_][A-Za-z_0-9\\-]*)\\s*\\.\\s*)? (?<NAME>[A-Za-z_][A-Za-z_0-9\\-]*) \\s*\\)(?![^']*'(\\s*,\\s*'[^']*')?\\s*\\))) | ((?<!@\\(\\s*[A-Za-z_][A-Za-z_0-9\\-]*\\s*->\\s*'[^']*)%\\(\\s* (?<ITEM_SPECIFICATION>(?<ITEM_TYPE>[A-Za-z_][A-Za-z_0-9\\-]*)\\s*\\.\\s*)? (?<NAME>[A-Za-z_][A-Za-z_0-9\\-]*) \\s*\\)(?=[^']*'(\\s*,\\s*'[^']*')?\\s*\\))) | ((?<!@\\(\\s*[A-Za-z_][A-Za-z_0-9\\-]*\\s*->\\s*'[^']*)%\\(\\s* (?<ITEM_SPECIFICATION>(?<ITEM_TYPE>[A-Za-z_][A-Za-z_0-9\\-]*)\\s*\\.\\s*)? (?<NAME>[A-Za-z_][A-Za-z_0-9\\-]*) \\s*\\)(?![^']*'(\\s*,\\s*'[^']*')?\\s*\\)))";
base.roptions = RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.CapNames = new Hashtable { { "0", 0 } , { "ITEM_SPECIFICATION", 1 } , { "ITEM_TYPE", 2 } , { "NAME", 3 } };
base.capslist = new string[] {"0", "ITEM_SPECIFICATION", "ITEM_TYPE", "NAME" };
base.capsize = 4;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// Search until we can't find a valid starting position, we find a match, or we reach the end of the input.
while (TryFindNextPossibleStartingPosition(inputSpan) &&
!TryMatchAtCurrentPosition(inputSpan) &&
base.runtextpos != inputSpan.Length)
{
base.runtextpos++;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 4 characters.
if (pos <= inputSpan.Length - 4)
{
// The pattern has the literal "%(" at the beginning of the pattern. Find the next occurrence.
// If it can't be found, there's no match.
int i = inputSpan.Slice(pos).IndexOfAny(Utilities.s_indexOfString_94B03BD84CB7586977A2210FE884942D27D98E0A78FE4AE6F6D7879F63DC7C3B);
if (i >= 0)
{
base.runtextpos = pos + i;
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
char ch;
int capture_starting_pos2 = 0;
int capture_starting_pos5 = 0;
int capture_starting_pos8 = 0;
int charloop_capture_pos = 0;
int charloop_capture_pos1 = 0;
int charloop_capture_pos10 = 0;
int charloop_capture_pos11 = 0;
int charloop_capture_pos12 = 0;
int charloop_capture_pos13 = 0;
int charloop_capture_pos14 = 0;
int charloop_capture_pos15 = 0;
int charloop_capture_pos16 = 0;
int charloop_capture_pos17 = 0;
int charloop_capture_pos2 = 0;
int charloop_capture_pos3 = 0;
int charloop_capture_pos4 = 0;
int charloop_capture_pos5 = 0;
int charloop_capture_pos6 = 0;
int charloop_capture_pos7 = 0;
int charloop_capture_pos8 = 0;
int charloop_capture_pos9 = 0;
int charloop_starting_pos = 0, charloop_ending_pos = 0;
int charloop_starting_pos1 = 0, charloop_ending_pos1 = 0;
int charloop_starting_pos10 = 0, charloop_ending_pos10 = 0;
int charloop_starting_pos11 = 0, charloop_ending_pos11 = 0;
int charloop_starting_pos12 = 0, charloop_ending_pos12 = 0;
int charloop_starting_pos13 = 0, charloop_ending_pos13 = 0;
int charloop_starting_pos14 = 0, charloop_ending_pos14 = 0;
int charloop_starting_pos15 = 0, charloop_ending_pos15 = 0;
int charloop_starting_pos16 = 0, charloop_ending_pos16 = 0;
int charloop_starting_pos17 = 0, charloop_ending_pos17 = 0;
int charloop_starting_pos2 = 0, charloop_ending_pos2 = 0;
int charloop_starting_pos3 = 0, charloop_ending_pos3 = 0;
int charloop_starting_pos4 = 0, charloop_ending_pos4 = 0;
int charloop_starting_pos5 = 0, charloop_ending_pos5 = 0;
int charloop_starting_pos6 = 0, charloop_ending_pos6 = 0;
int charloop_starting_pos7 = 0, charloop_ending_pos7 = 0;
int charloop_starting_pos8 = 0, charloop_ending_pos8 = 0;
int charloop_starting_pos9 = 0, charloop_ending_pos9 = 0;
int loop_iteration = 0;
int loop_iteration1 = 0;
int loop_iteration2 = 0;
int loop_iteration3 = 0;
int loop_iteration4 = 0;
int loop_iteration5 = 0;
int stackpos = 0;
ulong charMinusLowUInt64;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Atomic group.
{
int atomic_stackpos = stackpos;
// Match with 3 alternative expressions, atomically.
//{
int alternation_starting_pos = pos;
int alternation_starting_capturepos = base.Crawlpos();
// Branch 0
{
// Zero-width positive lookbehind.
{
slice = inputSpan.Slice(pos);
int positivelookbehind_starting_pos = pos;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
int atomic_stackpos1 = stackpos;
// Match a character other than '\'' greedily any number of times right-to-left.
//{
charloop_starting_pos = pos;
int iteration = 0;
while (pos > iteration && inputSpan[pos - iteration - 1] != '\'')
{
iteration++;
}
pos -= iteration;
charloop_ending_pos = pos;
goto CharLoopEnd;
CharLoopBacktrack:
UncaptureUntil(charloop_capture_pos);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos <= charloop_ending_pos)
{
goto AlternationBranch;
}
pos = ++charloop_ending_pos;
CharLoopEnd:
charloop_capture_pos = base.Crawlpos();
//}
// Match '\'' right-to-left.
if ((uint)(pos - 1) >= inputSpan.Length || inputSpan[pos - 1] != '\'')
{
goto CharLoopBacktrack;
}
pos--;
// Match a whitespace character greedily any number of times right-to-left.
//{
charloop_starting_pos1 = pos;
int iteration1 = 0;
while (pos > iteration1 && char.IsWhiteSpace(inputSpan[pos - iteration1 - 1]))
{
iteration1++;
}
pos -= iteration1;
charloop_ending_pos1 = pos;
goto CharLoopEnd1;
CharLoopBacktrack1:
UncaptureUntil(charloop_capture_pos1);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos1 <= charloop_ending_pos1)
{
goto CharLoopBacktrack;
}
pos = ++charloop_ending_pos1;
CharLoopEnd1:
charloop_capture_pos1 = base.Crawlpos();
//}
// Match the string "->" right-to-left.
{
if ((uint)(pos - 2) >= inputSpan.Length)
{
goto CharLoopBacktrack1;
}
for (int i = 0; i < 2; i++)
{
if (inputSpan[--pos] != "->"[1 - i])
{
goto CharLoopBacktrack1;
}
}
}
// Match a whitespace character greedily any number of times right-to-left.
//{
charloop_starting_pos2 = pos;
int iteration2 = 0;
while (pos > iteration2 && char.IsWhiteSpace(inputSpan[pos - iteration2 - 1]))
{
iteration2++;
}
pos -= iteration2;
charloop_ending_pos2 = pos;
goto CharLoopEnd2;
CharLoopBacktrack2:
UncaptureUntil(charloop_capture_pos2);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos2 <= charloop_ending_pos2)
{
goto CharLoopBacktrack1;
}
pos = ++charloop_ending_pos2;
CharLoopEnd2:
charloop_capture_pos2 = base.Crawlpos();
//}
// Match a character in the set [\-0-9A-Z_a-z] greedily any number of times right-to-left.
//{
charloop_starting_pos3 = pos;
int iteration3 = 0;
while (pos > iteration3 && ((ch = inputSpan[pos - iteration3 - 1]) < '{' && ("\0\0 Ͽ\ufffe蟿\ufffe߿"[ch >> 4] & (1 << (ch & 0xF))) != 0))
{
iteration3++;
}
pos -= iteration3;
charloop_ending_pos3 = pos;
goto CharLoopEnd3;
CharLoopBacktrack3:
UncaptureUntil(charloop_capture_pos3);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos3 <= charloop_ending_pos3)
{
goto CharLoopBacktrack2;
}
pos = ++charloop_ending_pos3;
CharLoopEnd3:
charloop_capture_pos3 = base.Crawlpos();
//}
// Match a character in the set [A-Z_a-z] right-to-left.
if ((uint)(pos - 1) >= inputSpan.Length || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)inputSpan[pos - 1] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto CharLoopBacktrack3;
}
pos--;
// Match a whitespace character greedily any number of times right-to-left.
//{
charloop_starting_pos4 = pos;
int iteration4 = 0;
while (pos > iteration4 && char.IsWhiteSpace(inputSpan[pos - iteration4 - 1]))
{
iteration4++;
}
pos -= iteration4;
charloop_ending_pos4 = pos;
goto CharLoopEnd4;
CharLoopBacktrack4:
UncaptureUntil(charloop_capture_pos4);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos4 <= charloop_ending_pos4)
{
goto CharLoopBacktrack3;
}
pos = ++charloop_ending_pos4;
CharLoopEnd4:
charloop_capture_pos4 = base.Crawlpos();
//}
// Match the string "@(" right-to-left.
{
if ((uint)(pos - 2) >= inputSpan.Length)
{
goto CharLoopBacktrack4;
}
for (int i = 0; i < 2; i++)
{
if (inputSpan[--pos] != "@("[1 - i])
{
goto CharLoopBacktrack4;
}
}
}
stackpos = atomic_stackpos1;
pos = positivelookbehind_starting_pos;
slice = inputSpan.Slice(pos);
}
// Match the string "%(".
if (!slice.StartsWith("%("))
{
goto AlternationBranch;
}
// Match a whitespace character greedily any number of times.
//{
pos += 2;
slice = inputSpan.Slice(pos);
charloop_starting_pos5 = pos;
int iteration5 = 0;
while ((uint)iteration5 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration5]))
{
iteration5++;
}
slice = slice.Slice(iteration5);
pos += iteration5;
charloop_ending_pos5 = pos;
goto CharLoopEnd5;
CharLoopBacktrack5:
UncaptureUntil(charloop_capture_pos5);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos5 >= charloop_ending_pos5)
{
goto AlternationBranch;
}
pos = --charloop_ending_pos5;
slice = inputSpan.Slice(pos);
CharLoopEnd5:
charloop_capture_pos5 = base.Crawlpos();
//}
// Optional (greedy).
//{
loop_iteration = 0;
LoopBody:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration++;
// "ITEM_SPECIFICATION" capture group.
{
int capture_starting_pos = pos;
// "ITEM_TYPE" capture group.
{
int capture_starting_pos1 = pos;
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto LoopIterationNoMatch;
}
// Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.
{
int iteration6 = slice.Slice(1).IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration6 < 0)
{
iteration6 = slice.Length - 1;
}
slice = slice.Slice(iteration6);
pos += iteration6;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(2, capture_starting_pos1, pos);
}
// Match a whitespace character atomically any number of times.
{
int iteration7 = 0;
while ((uint)iteration7 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration7]))
{
iteration7++;
}
slice = slice.Slice(iteration7);
pos += iteration7;
}
// Match '.'.
if (slice.IsEmpty || slice[0] != '.')
{
goto LoopIterationNoMatch;
}
// Match a whitespace character atomically any number of times.
{
int iteration8 = 1;
while ((uint)iteration8 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration8]))
{
iteration8++;
}
slice = slice.Slice(iteration8);
pos += iteration8;
}
base.Capture(1, capture_starting_pos, pos);
}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration == 0)
{
goto LoopBody;
}
goto LoopEnd;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch:
if (--loop_iteration < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto CharLoopBacktrack5;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd:;
//}
// "NAME" capture group.
{
capture_starting_pos2 = pos;
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto LoopIterationNoMatch;
}
// Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.
{
int iteration9 = slice.Slice(1).IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration9 < 0)
{
iteration9 = slice.Length - 1;
}
slice = slice.Slice(iteration9);
pos += iteration9;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(3, capture_starting_pos2, pos);
}
// Match a whitespace character atomically any number of times.
{
int iteration10 = 0;
while ((uint)iteration10 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration10]))
{
iteration10++;
}
slice = slice.Slice(iteration10);
pos += iteration10;
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto LoopIterationNoMatch;
}
// Zero-width negative lookahead.
{
pos++;
slice = inputSpan.Slice(pos);
int negativelookahead__starting_pos = pos;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
int atomic_stackpos2 = stackpos;
// Match a character other than '\'' atomically any number of times.
{
int iteration11 = slice.IndexOf('\'');
if (iteration11 < 0)
{
iteration11 = slice.Length;
}
slice = slice.Slice(iteration11);
pos += iteration11;
}
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto NegativeLookaroundMatch;
}
// Optional (greedy).
//{
pos++;
slice = inputSpan.Slice(pos);
loop_iteration1 = 0;
LoopBody1:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration1++;
// Match a whitespace character atomically any number of times.
{
int iteration12 = 0;
while ((uint)iteration12 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration12]))
{
iteration12++;
}
slice = slice.Slice(iteration12);
pos += iteration12;
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
goto LoopIterationNoMatch1;
}
// Match a whitespace character atomically any number of times.
{
int iteration13 = 1;
while ((uint)iteration13 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration13]))
{
iteration13++;
}
slice = slice.Slice(iteration13);
pos += iteration13;
}
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto LoopIterationNoMatch1;
}
// Match a character other than '\'' atomically any number of times.
{
int iteration14 = slice.Slice(1).IndexOf('\'');
if (iteration14 < 0)
{
iteration14 = slice.Length - 1;
}
slice = slice.Slice(iteration14);
pos += iteration14;
}
// Match '\''.
if ((uint)slice.Length < 2 || slice[1] != '\'')
{
goto LoopIterationNoMatch1;
}
pos += 2;
slice = inputSpan.Slice(pos);
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration1 == 0)
{
goto LoopBody1;
}
goto LoopEnd1;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch1:
if (--loop_iteration1 < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto NegativeLookaroundMatch;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd1:;
//}
// Match a whitespace character atomically any number of times.
{
int iteration15 = 0;
while ((uint)iteration15 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration15]))
{
iteration15++;
}
slice = slice.Slice(iteration15);
pos += iteration15;
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto LoopIterationNoMatch1;
}
stackpos = atomic_stackpos2;
goto LoopIterationNoMatch;
NegativeLookaroundMatch:
pos = negativelookahead__starting_pos;
slice = inputSpan.Slice(pos);
}
goto AlternationMatch;
AlternationBranch:
pos = alternation_starting_pos;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos);
}
// Branch 1
{
// Zero-width negative lookbehind.
{
slice = inputSpan.Slice(pos);
int negativelookbehind__starting_pos = pos;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
int atomic_stackpos3 = stackpos;
// Match a character other than '\'' greedily any number of times right-to-left.
//{
charloop_starting_pos6 = pos;
int iteration16 = 0;
while (pos > iteration16 && inputSpan[pos - iteration16 - 1] != '\'')
{
iteration16++;
}
pos -= iteration16;
charloop_ending_pos6 = pos;
goto CharLoopEnd6;
CharLoopBacktrack6:
UncaptureUntil(charloop_capture_pos6);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos6 <= charloop_ending_pos6)
{
goto NegativeLookaroundMatch1;
}
pos = ++charloop_ending_pos6;
CharLoopEnd6:
charloop_capture_pos6 = base.Crawlpos();
//}
// Match '\'' right-to-left.
if ((uint)(pos - 1) >= inputSpan.Length || inputSpan[pos - 1] != '\'')
{
goto CharLoopBacktrack6;
}
pos--;
// Match a whitespace character greedily any number of times right-to-left.
//{
charloop_starting_pos7 = pos;
int iteration17 = 0;
while (pos > iteration17 && char.IsWhiteSpace(inputSpan[pos - iteration17 - 1]))
{
iteration17++;
}
pos -= iteration17;
charloop_ending_pos7 = pos;
goto CharLoopEnd7;
CharLoopBacktrack7:
UncaptureUntil(charloop_capture_pos7);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos7 <= charloop_ending_pos7)
{
goto CharLoopBacktrack6;
}
pos = ++charloop_ending_pos7;
CharLoopEnd7:
charloop_capture_pos7 = base.Crawlpos();
//}
// Match the string "->" right-to-left.
{
if ((uint)(pos - 2) >= inputSpan.Length)
{
goto CharLoopBacktrack7;
}
for (int i = 0; i < 2; i++)
{
if (inputSpan[--pos] != "->"[1 - i])
{
goto CharLoopBacktrack7;
}
}
}
// Match a whitespace character greedily any number of times right-to-left.
//{
charloop_starting_pos8 = pos;
int iteration18 = 0;
while (pos > iteration18 && char.IsWhiteSpace(inputSpan[pos - iteration18 - 1]))
{
iteration18++;
}
pos -= iteration18;
charloop_ending_pos8 = pos;
goto CharLoopEnd8;
CharLoopBacktrack8:
UncaptureUntil(charloop_capture_pos8);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos8 <= charloop_ending_pos8)
{
goto CharLoopBacktrack7;
}
pos = ++charloop_ending_pos8;
CharLoopEnd8:
charloop_capture_pos8 = base.Crawlpos();
//}
// Match a character in the set [\-0-9A-Z_a-z] greedily any number of times right-to-left.
//{
charloop_starting_pos9 = pos;
int iteration19 = 0;
while (pos > iteration19 && ((ch = inputSpan[pos - iteration19 - 1]) < '{' && ("\0\0 Ͽ\ufffe蟿\ufffe߿"[ch >> 4] & (1 << (ch & 0xF))) != 0))
{
iteration19++;
}
pos -= iteration19;
charloop_ending_pos9 = pos;
goto CharLoopEnd9;
CharLoopBacktrack9:
UncaptureUntil(charloop_capture_pos9);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos9 <= charloop_ending_pos9)
{
goto CharLoopBacktrack8;
}
pos = ++charloop_ending_pos9;
CharLoopEnd9:
charloop_capture_pos9 = base.Crawlpos();
//}
// Match a character in the set [A-Z_a-z] right-to-left.
if ((uint)(pos - 1) >= inputSpan.Length || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)inputSpan[pos - 1] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto CharLoopBacktrack9;
}
pos--;
// Match a whitespace character greedily any number of times right-to-left.
//{
charloop_starting_pos10 = pos;
int iteration20 = 0;
while (pos > iteration20 && char.IsWhiteSpace(inputSpan[pos - iteration20 - 1]))
{
iteration20++;
}
pos -= iteration20;
charloop_ending_pos10 = pos;
goto CharLoopEnd10;
CharLoopBacktrack10:
UncaptureUntil(charloop_capture_pos10);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos10 <= charloop_ending_pos10)
{
goto CharLoopBacktrack9;
}
pos = ++charloop_ending_pos10;
CharLoopEnd10:
charloop_capture_pos10 = base.Crawlpos();
//}
// Match the string "@(" right-to-left.
{
if ((uint)(pos - 2) >= inputSpan.Length)
{
goto CharLoopBacktrack10;
}
for (int i = 0; i < 2; i++)
{
if (inputSpan[--pos] != "@("[1 - i])
{
goto CharLoopBacktrack10;
}
}
}
stackpos = atomic_stackpos3;
goto AlternationBranch1;
NegativeLookaroundMatch1:
pos = negativelookbehind__starting_pos;
slice = inputSpan.Slice(pos);
}
// Match the string "%(".
if (!slice.StartsWith("%("))
{
goto AlternationBranch1;
}
// Match a whitespace character greedily any number of times.
//{
pos += 2;
slice = inputSpan.Slice(pos);
charloop_starting_pos11 = pos;
int iteration21 = 0;
while ((uint)iteration21 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration21]))
{
iteration21++;
}
slice = slice.Slice(iteration21);
pos += iteration21;
charloop_ending_pos11 = pos;
goto CharLoopEnd11;
CharLoopBacktrack11:
UncaptureUntil(charloop_capture_pos11);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos11 >= charloop_ending_pos11)
{
goto AlternationBranch1;
}
pos = --charloop_ending_pos11;
slice = inputSpan.Slice(pos);
CharLoopEnd11:
charloop_capture_pos11 = base.Crawlpos();
//}
// Optional (greedy).
//{
loop_iteration2 = 0;
LoopBody2:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration2++;
// "ITEM_SPECIFICATION" capture group.
{
int capture_starting_pos3 = pos;
// "ITEM_TYPE" capture group.
{
int capture_starting_pos4 = pos;
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto LoopIterationNoMatch2;
}
// Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.
{
int iteration22 = slice.Slice(1).IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration22 < 0)
{
iteration22 = slice.Length - 1;
}
slice = slice.Slice(iteration22);
pos += iteration22;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(2, capture_starting_pos4, pos);
}
// Match a whitespace character atomically any number of times.
{
int iteration23 = 0;
while ((uint)iteration23 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration23]))
{
iteration23++;
}
slice = slice.Slice(iteration23);
pos += iteration23;
}
// Match '.'.
if (slice.IsEmpty || slice[0] != '.')
{
goto LoopIterationNoMatch2;
}
// Match a whitespace character atomically any number of times.
{
int iteration24 = 1;
while ((uint)iteration24 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration24]))
{
iteration24++;
}
slice = slice.Slice(iteration24);
pos += iteration24;
}
base.Capture(1, capture_starting_pos3, pos);
}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration2 == 0)
{
goto LoopBody2;
}
goto LoopEnd2;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch2:
if (--loop_iteration2 < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto CharLoopBacktrack11;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd2:;
//}
// "NAME" capture group.
{
capture_starting_pos5 = pos;
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto LoopIterationNoMatch2;
}
// Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.
{
int iteration25 = slice.Slice(1).IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration25 < 0)
{
iteration25 = slice.Length - 1;
}
slice = slice.Slice(iteration25);
pos += iteration25;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(3, capture_starting_pos5, pos);
}
// Match a whitespace character atomically any number of times.
{
int iteration26 = 0;
while ((uint)iteration26 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration26]))
{
iteration26++;
}
slice = slice.Slice(iteration26);
pos += iteration26;
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto LoopIterationNoMatch2;
}
// Zero-width positive lookahead.
{
pos++;
slice = inputSpan.Slice(pos);
int positivelookahead_starting_pos = pos;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
int atomic_stackpos4 = stackpos;
// Match a character other than '\'' atomically any number of times.
{
int iteration27 = slice.IndexOf('\'');
if (iteration27 < 0)
{
iteration27 = slice.Length;
}
slice = slice.Slice(iteration27);
pos += iteration27;
}
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto LoopIterationNoMatch2;
}
// Optional (greedy).
//{
pos++;
slice = inputSpan.Slice(pos);
loop_iteration3 = 0;
LoopBody3:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration3++;
// Match a whitespace character atomically any number of times.
{
int iteration28 = 0;
while ((uint)iteration28 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration28]))
{
iteration28++;
}
slice = slice.Slice(iteration28);
pos += iteration28;
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
goto LoopIterationNoMatch3;
}
// Match a whitespace character atomically any number of times.
{
int iteration29 = 1;
while ((uint)iteration29 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration29]))
{
iteration29++;
}
slice = slice.Slice(iteration29);
pos += iteration29;
}
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto LoopIterationNoMatch3;
}
// Match a character other than '\'' atomically any number of times.
{
int iteration30 = slice.Slice(1).IndexOf('\'');
if (iteration30 < 0)
{
iteration30 = slice.Length - 1;
}
slice = slice.Slice(iteration30);
pos += iteration30;
}
// Match '\''.
if ((uint)slice.Length < 2 || slice[1] != '\'')
{
goto LoopIterationNoMatch3;
}
pos += 2;
slice = inputSpan.Slice(pos);
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration3 == 0)
{
goto LoopBody3;
}
goto LoopEnd3;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch3:
if (--loop_iteration3 < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto LoopIterationNoMatch2;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd3:;
//}
// Match a whitespace character atomically any number of times.
{
int iteration31 = 0;
while ((uint)iteration31 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration31]))
{
iteration31++;
}
slice = slice.Slice(iteration31);
pos += iteration31;
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto LoopIterationNoMatch3;
}
stackpos = atomic_stackpos4;
pos = positivelookahead_starting_pos;
slice = inputSpan.Slice(pos);
}
goto AlternationMatch;
AlternationBranch1:
pos = alternation_starting_pos;
slice = inputSpan.Slice(pos);
UncaptureUntil(alternation_starting_capturepos);
}
// Branch 2
{
// Zero-width negative lookbehind.
{
slice = inputSpan.Slice(pos);
int negativelookbehind__starting_pos1 = pos;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
int atomic_stackpos5 = stackpos;
// Match a character other than '\'' greedily any number of times right-to-left.
//{
charloop_starting_pos12 = pos;
int iteration32 = 0;
while (pos > iteration32 && inputSpan[pos - iteration32 - 1] != '\'')
{
iteration32++;
}
pos -= iteration32;
charloop_ending_pos12 = pos;
goto CharLoopEnd12;
CharLoopBacktrack12:
UncaptureUntil(charloop_capture_pos12);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos12 <= charloop_ending_pos12)
{
goto NegativeLookaroundMatch2;
}
pos = ++charloop_ending_pos12;
CharLoopEnd12:
charloop_capture_pos12 = base.Crawlpos();
//}
// Match '\'' right-to-left.
if ((uint)(pos - 1) >= inputSpan.Length || inputSpan[pos - 1] != '\'')
{
goto CharLoopBacktrack12;
}
pos--;
// Match a whitespace character greedily any number of times right-to-left.
//{
charloop_starting_pos13 = pos;
int iteration33 = 0;
while (pos > iteration33 && char.IsWhiteSpace(inputSpan[pos - iteration33 - 1]))
{
iteration33++;
}
pos -= iteration33;
charloop_ending_pos13 = pos;
goto CharLoopEnd13;
CharLoopBacktrack13:
UncaptureUntil(charloop_capture_pos13);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos13 <= charloop_ending_pos13)
{
goto CharLoopBacktrack12;
}
pos = ++charloop_ending_pos13;
CharLoopEnd13:
charloop_capture_pos13 = base.Crawlpos();
//}
// Match the string "->" right-to-left.
{
if ((uint)(pos - 2) >= inputSpan.Length)
{
goto CharLoopBacktrack13;
}
for (int i = 0; i < 2; i++)
{
if (inputSpan[--pos] != "->"[1 - i])
{
goto CharLoopBacktrack13;
}
}
}
// Match a whitespace character greedily any number of times right-to-left.
//{
charloop_starting_pos14 = pos;
int iteration34 = 0;
while (pos > iteration34 && char.IsWhiteSpace(inputSpan[pos - iteration34 - 1]))
{
iteration34++;
}
pos -= iteration34;
charloop_ending_pos14 = pos;
goto CharLoopEnd14;
CharLoopBacktrack14:
UncaptureUntil(charloop_capture_pos14);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos14 <= charloop_ending_pos14)
{
goto CharLoopBacktrack13;
}
pos = ++charloop_ending_pos14;
CharLoopEnd14:
charloop_capture_pos14 = base.Crawlpos();
//}
// Match a character in the set [\-0-9A-Z_a-z] greedily any number of times right-to-left.
//{
charloop_starting_pos15 = pos;
int iteration35 = 0;
while (pos > iteration35 && ((ch = inputSpan[pos - iteration35 - 1]) < '{' && ("\0\0 Ͽ\ufffe蟿\ufffe߿"[ch >> 4] & (1 << (ch & 0xF))) != 0))
{
iteration35++;
}
pos -= iteration35;
charloop_ending_pos15 = pos;
goto CharLoopEnd15;
CharLoopBacktrack15:
UncaptureUntil(charloop_capture_pos15);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos15 <= charloop_ending_pos15)
{
goto CharLoopBacktrack14;
}
pos = ++charloop_ending_pos15;
CharLoopEnd15:
charloop_capture_pos15 = base.Crawlpos();
//}
// Match a character in the set [A-Z_a-z] right-to-left.
if ((uint)(pos - 1) >= inputSpan.Length || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)inputSpan[pos - 1] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto CharLoopBacktrack15;
}
pos--;
// Match a whitespace character greedily any number of times right-to-left.
//{
charloop_starting_pos16 = pos;
int iteration36 = 0;
while (pos > iteration36 && char.IsWhiteSpace(inputSpan[pos - iteration36 - 1]))
{
iteration36++;
}
pos -= iteration36;
charloop_ending_pos16 = pos;
goto CharLoopEnd16;
CharLoopBacktrack16:
UncaptureUntil(charloop_capture_pos16);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos16 <= charloop_ending_pos16)
{
goto CharLoopBacktrack15;
}
pos = ++charloop_ending_pos16;
CharLoopEnd16:
charloop_capture_pos16 = base.Crawlpos();
//}
// Match the string "@(" right-to-left.
{
if ((uint)(pos - 2) >= inputSpan.Length)
{
goto CharLoopBacktrack16;
}
for (int i = 0; i < 2; i++)
{
if (inputSpan[--pos] != "@("[1 - i])
{
goto CharLoopBacktrack16;
}
}
}
stackpos = atomic_stackpos5;
UncaptureUntil(0);
return false; // The input didn't match.
NegativeLookaroundMatch2:
pos = negativelookbehind__starting_pos1;
slice = inputSpan.Slice(pos);
}
// Match the string "%(".
if (!slice.StartsWith("%("))
{
UncaptureUntil(0);
return false; // The input didn't match.
}
// Match a whitespace character greedily any number of times.
//{
pos += 2;
slice = inputSpan.Slice(pos);
charloop_starting_pos17 = pos;
int iteration37 = 0;
while ((uint)iteration37 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration37]))
{
iteration37++;
}
slice = slice.Slice(iteration37);
pos += iteration37;
charloop_ending_pos17 = pos;
goto CharLoopEnd17;
CharLoopBacktrack17:
UncaptureUntil(charloop_capture_pos17);
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
if (charloop_starting_pos17 >= charloop_ending_pos17)
{
UncaptureUntil(0);
return false; // The input didn't match.
}
pos = --charloop_ending_pos17;
slice = inputSpan.Slice(pos);
CharLoopEnd17:
charloop_capture_pos17 = base.Crawlpos();
//}
// Optional (greedy).
//{
loop_iteration4 = 0;
LoopBody4:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration4++;
// "ITEM_SPECIFICATION" capture group.
{
int capture_starting_pos6 = pos;
// "ITEM_TYPE" capture group.
{
int capture_starting_pos7 = pos;
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto LoopIterationNoMatch4;
}
// Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.
{
int iteration38 = slice.Slice(1).IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration38 < 0)
{
iteration38 = slice.Length - 1;
}
slice = slice.Slice(iteration38);
pos += iteration38;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(2, capture_starting_pos7, pos);
}
// Match a whitespace character atomically any number of times.
{
int iteration39 = 0;
while ((uint)iteration39 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration39]))
{
iteration39++;
}
slice = slice.Slice(iteration39);
pos += iteration39;
}
// Match '.'.
if (slice.IsEmpty || slice[0] != '.')
{
goto LoopIterationNoMatch4;
}
// Match a whitespace character atomically any number of times.
{
int iteration40 = 1;
while ((uint)iteration40 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration40]))
{
iteration40++;
}
slice = slice.Slice(iteration40);
pos += iteration40;
}
base.Capture(1, capture_starting_pos6, pos);
}
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration4 == 0)
{
goto LoopBody4;
}
goto LoopEnd4;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch4:
if (--loop_iteration4 < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto CharLoopBacktrack17;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd4:;
//}
// "NAME" capture group.
{
capture_starting_pos8 = pos;
// Match a character in the set [A-Z_a-z].
if (slice.IsEmpty || ((long)((0xFFFFFFC2FFFFFFC0UL << (int)(charMinusLowUInt64 = (uint)slice[0] - 'A')) & (charMinusLowUInt64 - 64)) >= 0))
{
goto LoopIterationNoMatch4;
}
// Match a character in the set [\-0-9A-Z_a-z] atomically any number of times.
{
int iteration41 = slice.Slice(1).IndexOfAnyExcept(Utilities.s_asciiLettersAndDigitsAndDashUnderscore);
if (iteration41 < 0)
{
iteration41 = slice.Length - 1;
}
slice = slice.Slice(iteration41);
pos += iteration41;
}
pos++;
slice = inputSpan.Slice(pos);
base.Capture(3, capture_starting_pos8, pos);
}
// Match a whitespace character atomically any number of times.
{
int iteration42 = 0;
while ((uint)iteration42 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration42]))
{
iteration42++;
}
slice = slice.Slice(iteration42);
pos += iteration42;
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto LoopIterationNoMatch4;
}
// Zero-width negative lookahead.
{
pos++;
slice = inputSpan.Slice(pos);
int negativelookahead__starting_pos1 = pos;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
int atomic_stackpos6 = stackpos;
// Match a character other than '\'' atomically any number of times.
{
int iteration43 = slice.IndexOf('\'');
if (iteration43 < 0)
{
iteration43 = slice.Length;
}
slice = slice.Slice(iteration43);
pos += iteration43;
}
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto NegativeLookaroundMatch3;
}
// Optional (greedy).
//{
pos++;
slice = inputSpan.Slice(pos);
loop_iteration5 = 0;
LoopBody5:
Utilities.StackPush(ref base.runstack!, ref stackpos, base.Crawlpos(), pos);
loop_iteration5++;
// Match a whitespace character atomically any number of times.
{
int iteration44 = 0;
while ((uint)iteration44 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration44]))
{
iteration44++;
}
slice = slice.Slice(iteration44);
pos += iteration44;
}
// Match ','.
if (slice.IsEmpty || slice[0] != ',')
{
goto LoopIterationNoMatch5;
}
// Match a whitespace character atomically any number of times.
{
int iteration45 = 1;
while ((uint)iteration45 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration45]))
{
iteration45++;
}
slice = slice.Slice(iteration45);
pos += iteration45;
}
// Match '\''.
if (slice.IsEmpty || slice[0] != '\'')
{
goto LoopIterationNoMatch5;
}
// Match a character other than '\'' atomically any number of times.
{
int iteration46 = slice.Slice(1).IndexOf('\'');
if (iteration46 < 0)
{
iteration46 = slice.Length - 1;
}
slice = slice.Slice(iteration46);
pos += iteration46;
}
// Match '\''.
if ((uint)slice.Length < 2 || slice[1] != '\'')
{
goto LoopIterationNoMatch5;
}
pos += 2;
slice = inputSpan.Slice(pos);
// The loop has an upper bound of 1. Continue iterating greedily if it hasn't yet been reached.
if (loop_iteration5 == 0)
{
goto LoopBody5;
}
goto LoopEnd5;
// The loop iteration failed. Put state back to the way it was before the iteration.
LoopIterationNoMatch5:
if (--loop_iteration5 < 0)
{
// Unable to match the remainder of the expression after exhausting the loop.
goto NegativeLookaroundMatch3;
}
pos = base.runstack![--stackpos];
UncaptureUntil(base.runstack![--stackpos]);
slice = inputSpan.Slice(pos);
LoopEnd5:;
//}
// Match a whitespace character atomically any number of times.
{
int iteration47 = 0;
while ((uint)iteration47 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration47]))
{
iteration47++;
}
slice = slice.Slice(iteration47);
pos += iteration47;
}
// Match ')'.
if (slice.IsEmpty || slice[0] != ')')
{
goto LoopIterationNoMatch5;
}
stackpos = atomic_stackpos6;
goto LoopIterationNoMatch4;
NegativeLookaroundMatch3:
pos = negativelookahead__starting_pos1;
slice = inputSpan.Slice(pos);
}
}
AlternationMatch:;
//}
stackpos = atomic_stackpos;
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
// <summary>Undo captures until it reaches the specified capture position.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void UncaptureUntil(int capturePosition)
{
while (base.Crawlpos() > capturePosition)
{
base.Uncapture();
}
}
}
}
}
}
/// <summary>Custom <see cref="Regex"/>-derived type for the XmlnsPattern method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
[SkipLocalsInit]
file sealed class XmlnsPattern_22 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly XmlnsPattern_22 Instance = new();
/// <summary>Initializes the instance.</summary>
private XmlnsPattern_22()
{
base.pattern = "xmlns=\"[^\"]*\"\\s*";
base.roptions = RegexOptions.None;
ValidateMatchTimeout(Utilities.s_defaultTimeout);
base.internalMatchTimeout = Utilities.s_defaultTimeout;
base.factory = new RunnerFactory();
base.capsize = 1;
}
/// <summary>Provides a factory for creating <see cref="RegexRunner"/> instances to be used by methods on <see cref="Regex"/>.</summary>
private sealed class RunnerFactory : RegexRunnerFactory
{
/// <summary>Creates an instance of a <see cref="RegexRunner"/> used by methods on <see cref="Regex"/>.</summary>
protected override RegexRunner CreateInstance() => new Runner();
/// <summary>Provides the runner that contains the custom logic implementing the specified regular expression.</summary>
private sealed class Runner : RegexRunner
{
/// <summary>Scan the <paramref name="inputSpan"/> starting from base.runtextstart for the next match.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
protected override void Scan(ReadOnlySpan<char> inputSpan)
{
// Search until we can't find a valid starting position, we find a match, or we reach the end of the input.
while (TryFindNextPossibleStartingPosition(inputSpan) &&
!TryMatchAtCurrentPosition(inputSpan) &&
base.runtextpos != inputSpan.Length)
{
base.runtextpos++;
if (Utilities.s_hasTimeout)
{
base.CheckTimeout();
}
}
}
/// <summary>Search <paramref name="inputSpan"/> starting from base.runtextpos for the next location a match could possibly start.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if a possible match was found; false if no more matches are possible.</returns>
private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
// Any possible match is at least 8 characters.
if (pos <= inputSpan.Length - 8)
{
// The pattern has the literal "xmlns=\"" at the beginning of the pattern. Find the next occurrence.
// If it can't be found, there's no match.
int i = inputSpan.Slice(pos).IndexOfAny(Utilities.s_indexOfString_87123116656DBFAC55A68CA48A3676EB22830F3CA134CD4966EB5BAA09267921);
if (i >= 0)
{
base.runtextpos = pos + i;
return true;
}
}
// No match found.
base.runtextpos = inputSpan.Length;
return false;
}
/// <summary>Determine whether <paramref name="inputSpan"/> at base.runtextpos is a match for the regular expression.</summary>
/// <param name="inputSpan">The text being scanned by the regular expression.</param>
/// <returns>true if the regular expression matches at the current position; otherwise, false.</returns>
private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
{
int pos = base.runtextpos;
int matchStart = pos;
ReadOnlySpan<char> slice = inputSpan.Slice(pos);
// Match the string "xmlns=\"".
if (!slice.StartsWith("xmlns=\""))
{
return false; // The input didn't match.
}
// Match a character other than '"' atomically any number of times.
{
int iteration = slice.Slice(7).IndexOf('"');
if (iteration < 0)
{
iteration = slice.Length - 7;
}
slice = slice.Slice(iteration);
pos += iteration;
}
// Match '"'.
if ((uint)slice.Length < 8 || slice[7] != '"')
{
return false; // The input didn't match.
}
// Match a whitespace character atomically any number of times.
{
int iteration1 = 8;
while ((uint)iteration1 < (uint)slice.Length && char.IsWhiteSpace(slice[iteration1]))
{
iteration1++;
}
slice = slice.Slice(iteration1);
pos += iteration1;
}
// The input matched.
base.runtextpos = pos;
base.Capture(0, matchStart, pos);
return true;
}
}
}
}
/// <summary>Helper methods used by generated <see cref="Regex"/>-derived implementations.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "11.0.14.26904")]
file static class Utilities
{
/// <summary>Default timeout value set in <see cref="AppContext"/>, or <see cref="Regex.InfiniteMatchTimeout"/> if none was set.</summary>
internal static readonly TimeSpan s_defaultTimeout = AppContext.GetData("REGEX_DEFAULT_MATCH_TIMEOUT") is TimeSpan timeout ? timeout : Regex.InfiniteMatchTimeout;
/// <summary>Whether <see cref="s_defaultTimeout"/> is non-infinite.</summary>
internal static readonly bool s_hasTimeout = s_defaultTimeout != Regex.InfiniteMatchTimeout;
/// <summary>Determines whether the character is part of the [\w] set.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static bool IsWordChar(char ch)
{
// If the char is ASCII, look it up in the bitmap. Otherwise, query its Unicode category.
ReadOnlySpan<byte> ascii = WordCharBitmap;
int chDiv8 = ch >> 3;
return (uint)chDiv8 < (uint)ascii.Length ?
(ascii[chDiv8] & (1 << (ch & 0x7))) != 0 :
(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0;
}
/// <summary>Pops 2 values from the backtracking stack.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void StackPop(int[] stack, ref int pos, out int arg0, out int arg1)
{
arg0 = stack[--pos];
arg1 = stack[--pos];
}
/// <summary>Pushes 1 value onto the backtracking stack.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void StackPush(ref int[] stack, ref int pos, int arg0)
{
// If there's space available for the value, store it.
int[] s = stack;
int p = pos;
if ((uint)p < (uint)s.Length)
{
s[p] = arg0;
pos++;
return;
}
// Otherwise, resize the stack to make room and try again.
WithResize(ref stack, ref pos, arg0);
// <summary>Resize the backtracking stack array and push 1 value onto the stack.</summary>
[MethodImpl(MethodImplOptions.NoInlining)]
static void WithResize(ref int[] stack, ref int pos, int arg0)
{
Array.Resize(ref stack, (pos + 0) * 2);
StackPush(ref stack, ref pos, arg0);
}
}
/// <summary>Pushes 2 values onto the backtracking stack.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void StackPush(ref int[] stack, ref int pos, int arg0, int arg1)
{
// If there's space available for all 2 values, store them.
int[] s = stack;
int p = pos;
if ((uint)(p + 1) < (uint)s.Length)
{
s[p] = arg0;
s[p + 1] = arg1;
pos += 2;
return;
}
// Otherwise, resize the stack to make room and try again.
WithResize(ref stack, ref pos, arg0, arg1);
// <summary>Resize the backtracking stack array and push 2 values onto the stack.</summary>
[MethodImpl(MethodImplOptions.NoInlining)]
static void WithResize(ref int[] stack, ref int pos, int arg0, int arg1)
{
Array.Resize(ref stack, (pos + 1) * 2);
StackPush(ref stack, ref pos, arg0, arg1);
}
}
/// <summary>Pushes 3 values onto the backtracking stack.</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void StackPush(ref int[] stack, ref int pos, int arg0, int arg1, int arg2)
{
// If there's space available for all 3 values, store them.
int[] s = stack;
int p = pos;
if ((uint)(p + 2) < (uint)s.Length)
{
s[p] = arg0;
s[p + 1] = arg1;
s[p + 2] = arg2;
pos += 3;
return;
}
// Otherwise, resize the stack to make room and try again.
WithResize(ref stack, ref pos, arg0, arg1, arg2);
// <summary>Resize the backtracking stack array and push 3 values onto the stack.</summary>
[MethodImpl(MethodImplOptions.NoInlining)]
static void WithResize(ref int[] stack, ref int pos, int arg0, int arg1, int arg2)
{
Array.Resize(ref stack, (pos + 2) * 2);
StackPush(ref stack, ref pos, arg0, arg1, arg2);
}
}
/// <summary>Provides a mask of Unicode categories that combine to form [\w].</summary>
private const int WordCategoriesMask =
1 << (int)UnicodeCategory.UppercaseLetter |
1 << (int)UnicodeCategory.LowercaseLetter |
1 << (int)UnicodeCategory.TitlecaseLetter |
1 << (int)UnicodeCategory.ModifierLetter |
1 << (int)UnicodeCategory.OtherLetter |
1 << (int)UnicodeCategory.NonSpacingMark |
1 << (int)UnicodeCategory.DecimalDigitNumber |
1 << (int)UnicodeCategory.ConnectorPunctuation;
/// <summary>Gets a bitmap for whether each character 0 through 127 is in [\w]</summary>
private static ReadOnlySpan<byte> WordCharBitmap => new byte[]
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03,
0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x07
};
/// <summary>Supports searching for characters in or not in "-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".</summary>
internal static readonly SearchValues<char> s_asciiLettersAndDigitsAndDashUnderscore = SearchValues.Create("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz");
/// <summary>Supports searching for characters in or not in ",-0123456789".</summary>
internal static readonly SearchValues<char> s_ascii_30FF030000000000000000 = SearchValues.Create(",-0123456789");
/// <summary>Supports searching for the string "xmlns=\"".</summary>
internal static readonly SearchValues<string> s_indexOfString_87123116656DBFAC55A68CA48A3676EB22830F3CA134CD4966EB5BAA09267921 = SearchValues.Create(["xmlns=\""], StringComparison.Ordinal);
/// <summary>Supports searching for the string "%(".</summary>
internal static readonly SearchValues<string> s_indexOfString_94B03BD84CB7586977A2210FE884942D27D98E0A78FE4AE6F6D7879F63DC7C3B = SearchValues.Create(["%("], StringComparison.Ordinal);
/// <summary>Supports searching for the string "@(".</summary>
internal static readonly SearchValues<string> s_indexOfString_C7DF9B147331011DE7321CD7E62F0D799941853E78E1507F38B4C54A3047DBAA = SearchValues.Create(["@("], StringComparison.Ordinal);
}
}
|