// <auto-generated/>
#nullable enable
#pragma warning disable
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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex SectionMatcherRegex => global::System.Text.RegularExpressions.Generated.SectionMatcherRegex_0.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex PropertyMatcherRegex => global::System.Text.RegularExpressions.Generated.PropertyMatcherRegex_1.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex TerminalLoggerArgPattern => global::System.Text.RegularExpressions.Generated.TerminalLoggerArgPattern_2.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex VerbosityArgPattern => global::System.Text.RegularExpressions.Generated.VerbosityArgPattern_3.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex TerminalLoggerParametersArgPattern => global::System.Text.RegularExpressions.Generated.TerminalLoggerParametersArgPattern_4.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex ConsoleLoggerParametersArgPattern => global::System.Text.RegularExpressions.Generated.ConsoleLoggerParametersArgPattern_5.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex ItemVectorTransformRegex => global::System.Text.RegularExpressions.Generated.ItemVectorTransformRegex_6.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex ItemVectorTransformRawRegex => global::System.Text.RegularExpressions.Generated.ItemVectorTransformRawRegex_7.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex XmlDeclarationRegex => global::System.Text.RegularExpressions.Generated.XmlDeclarationRegex_8.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex CrackProjectLineRegex => global::System.Text.RegularExpressions.Generated.CrackProjectLineRegex_9.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex CrackPropertyLineRegex => global::System.Text.RegularExpressions.Generated.CrackPropertyLineRegex_10.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex RegistrySdkRegex => global::System.Text.RegularExpressions.Generated.RegistrySdkRegex_11.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", "12.0.15.6127")]
private static partial global::System.Text.RegularExpressions.Regex XmlnsPattern => global::System.Text.RegularExpressions.Generated.XmlnsPattern_12.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 SectionMatcherRegex method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class SectionMatcherRegex_0 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly SectionMatcherRegex_0 Instance = new();
/// <summary>Initializes the instance.</summary>
private SectionMatcherRegex_0()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class PropertyMatcherRegex_1 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly PropertyMatcherRegex_1 Instance = new();
/// <summary>Initializes the instance.</summary>
private PropertyMatcherRegex_1()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class TerminalLoggerArgPattern_2 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly TerminalLoggerArgPattern_2 Instance = new();
/// <summary>Initializes the instance.</summary>
private TerminalLoggerArgPattern_2()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class VerbosityArgPattern_3 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly VerbosityArgPattern_3 Instance = new();
/// <summary>Initializes the instance.</summary>
private VerbosityArgPattern_3()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class TerminalLoggerParametersArgPattern_4 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly TerminalLoggerParametersArgPattern_4 Instance = new();
/// <summary>Initializes the instance.</summary>
private TerminalLoggerParametersArgPattern_4()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class ConsoleLoggerParametersArgPattern_5 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly ConsoleLoggerParametersArgPattern_5 Instance = new();
/// <summary>Initializes the instance.</summary>
private ConsoleLoggerParametersArgPattern_5()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class ItemVectorTransformRegex_6 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly ItemVectorTransformRegex_6 Instance = new();
/// <summary>Initializes the instance.</summary>
private ItemVectorTransformRegex_6()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class ItemVectorTransformRawRegex_7 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly ItemVectorTransformRawRegex_7 Instance = new();
/// <summary>Initializes the instance.</summary>
private ItemVectorTransformRawRegex_7()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class XmlDeclarationRegex_8 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly XmlDeclarationRegex_8 Instance = new();
/// <summary>Initializes the instance.</summary>
private XmlDeclarationRegex_8()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class CrackProjectLineRegex_9 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly CrackProjectLineRegex_9 Instance = new();
/// <summary>Initializes the instance.</summary>
private CrackProjectLineRegex_9()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class CrackPropertyLineRegex_10 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly CrackPropertyLineRegex_10 Instance = new();
/// <summary>Initializes the instance.</summary>
private CrackPropertyLineRegex_10()
{
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", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class RegistrySdkRegex_11 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly RegistrySdkRegex_11 Instance = new();
/// <summary>Initializes the instance.</summary>
private RegistrySdkRegex_11()
{
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 XmlnsPattern method.</summary>
[GeneratedCodeAttribute("System.Text.RegularExpressions.Generator", "12.0.15.6127")]
[SkipLocalsInit]
file sealed class XmlnsPattern_12 : Regex
{
/// <summary>Cached, thread-safe singleton instance.</summary>
internal static readonly XmlnsPattern_12 Instance = new();
/// <summary>Initializes the instance.</summary>
private XmlnsPattern_12()
{
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", "12.0.15.6127")]
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 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_C7DF9B147331011DE7321CD7E62F0D799941853E78E1507F38B4C54A3047DBAA = SearchValues.Create(["@("], StringComparison.Ordinal);
}
}