mirror of
https://github.com/AssetRipper/AssetRipper.Text.Html.git
synced 2026-11-13 18:06:43 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4148e837a3 | ||
|
|
1011d5b2da | ||
|
|
7ddacda1eb | ||
|
|
f6b6e5e230 | ||
|
|
24eead1208 | ||
|
|
0ee82564f5 | ||
|
|
6407f5a0ed | ||
|
|
0988830110 | ||
|
|
9ae1c834e9 | ||
|
|
25109e1c47 | ||
|
|
615abf0a90 | ||
|
|
b59fcb6d38 | ||
|
|
e103bcc74f | ||
|
|
3054d55383 | ||
|
|
af03da5302 | ||
|
|
55216fea17 | ||
|
|
5e86c28d6c | ||
|
|
61ca771631 |
No files matched your search
@@ -1,9 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>preview</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -12,9 +13,9 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AngleSharp" Version="1.0.7" />
|
||||
<PackageReference Include="AssetRipper.Text.SourceGeneration" Version="1.1.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" />
|
||||
<PackageReference Include="AngleSharp" Version="1.2.0" />
|
||||
<PackageReference Include="AssetRipper.Text.SourceGeneration" Version="1.2.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -9,7 +9,7 @@ internal static class Bootstrap
|
||||
Rel = "stylesheet",
|
||||
Href = "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css",
|
||||
Integrity = "sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN",
|
||||
Crossorigin = "anonymous"
|
||||
CrossOrigin = "anonymous"
|
||||
}.Close();
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ internal static class Bootstrap
|
||||
{
|
||||
Src = "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js",
|
||||
Integrity = "sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL",
|
||||
Crossorigin = "anonymous"
|
||||
CrossOrigin = "anonymous"
|
||||
}.Close();
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,14 @@ namespace AssetRipper.Text.Html.Converter;
|
||||
|
||||
internal static partial class HtmlConverter
|
||||
{
|
||||
private static IReadOnlyDictionary<string, ModelElement> ElementDictionary { get; } = HtmlJsonLoader.Load();
|
||||
static HtmlConverter()
|
||||
{
|
||||
HtmlJsonLoader.Load(out List<HtmlAttribute> globalAttributes, out List<HtmlAttribute> localAttributes, out List<ModelElement> elements);
|
||||
|
||||
ElementDictionary = elements.ToDictionary(t => t.Name, t => t);
|
||||
}
|
||||
|
||||
private static IReadOnlyDictionary<string, ModelElement> ElementDictionary { get; }
|
||||
|
||||
//This works perfect, except for whitespace removal. That could be improved.
|
||||
//Currently, there's a lot of `writer.Write(' ');` calls that get generated,
|
||||
@@ -53,7 +60,7 @@ internal static partial class HtmlConverter
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.Write($"HtmlElement(writer, {ToLiteral(node.LocalName)})");
|
||||
writer.Write($"{nameof(CustomHtmlElement)}(writer, {ToLiteral(node.LocalName)})");
|
||||
}
|
||||
|
||||
WriteAttributes(writer, node.Attributes, elementData);
|
||||
@@ -144,7 +151,7 @@ internal static partial class HtmlConverter
|
||||
if (elementData is not null && elementData.Attributes.TryGetValue(attribute.LocalName, out HtmlAttribute? attributeData))
|
||||
{
|
||||
writer.Write('.');
|
||||
writer.Write(attributeData.FluentMethodName);
|
||||
writer.Write(attributeData.GetFluentMethodName(elementData.ClassName));
|
||||
writer.Write('(');
|
||||
}
|
||||
else
|
||||
|
||||
@@ -66,7 +66,7 @@ internal static class Program
|
||||
{
|
||||
using (new Form(writer).WithAction("/Result").WithMethod("post").End())
|
||||
{
|
||||
new Textarea(writer)
|
||||
new TextArea(writer)
|
||||
.WithName(HtmlFormName)
|
||||
.WithClass("bg-dark-subtle rounded-3 p-2")
|
||||
.WithStyle("width: 100%; height: 90%")
|
||||
|
||||
@@ -1,14 +1,26 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<LangVersion>Latest</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AssetRipper.Text.SourceGeneration" Version="1.1.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
|
||||
<PackageReference Include="SourceGenerator.Foundations" Version="2.0.13" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- Generator dependencies -->
|
||||
<PackageReference Include="AssetRipper.Text.SourceGeneration" Version="1.2.2" PrivateAssets="all" GeneratePathProperty="true" />
|
||||
<PackageReference Include="System.Text.Json" Version="9.0.1" PrivateAssets="all" GeneratePathProperty="true" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -0,0 +1,295 @@
|
||||
using AssetRipper.Text.Html.Model;
|
||||
using AssetRipper.Text.SourceGeneration;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using SGF;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Net;
|
||||
|
||||
namespace HtmlSharp.Generator;
|
||||
|
||||
[IncrementalGenerator]
|
||||
public sealed class HtmlGenerator : IncrementalGenerator
|
||||
{
|
||||
public HtmlGenerator() : base(nameof(HtmlGenerator))
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnInitialize(SgfInitializationContext context)
|
||||
{
|
||||
context.RegisterPostInitializationOutput(GenerateCode);
|
||||
}
|
||||
|
||||
private static void GenerateCode(IncrementalGeneratorPostInitializationContext context)
|
||||
{
|
||||
HtmlJsonLoader.Load(out List<HtmlAttribute> globalAttributes, out List<HtmlAttribute> localAttributes, out List<HtmlElement> elements);
|
||||
|
||||
// Global attributes
|
||||
{
|
||||
StringWriter stringWriter = new()
|
||||
{
|
||||
NewLine = "\n",
|
||||
};
|
||||
IndentedTextWriter writer = IndentedTextWriterFactory.Create(stringWriter);
|
||||
|
||||
writer.WriteGeneratedCodeWarning();
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("#nullable enable");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteFileScopedNamespace("AssetRipper.Text.Html");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("public interface IGlobalAttributes<TSelf> :");
|
||||
using (new Indented(writer))
|
||||
{
|
||||
for (int i = 0; i < globalAttributes.Count; i++)
|
||||
{
|
||||
HtmlAttribute attribute = globalAttributes[i];
|
||||
if (i < globalAttributes.Count - 1)
|
||||
{
|
||||
writer.WriteLine($"{attribute.InterfaceName}<TSelf>,");
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.WriteLine($"{attribute.InterfaceName}<TSelf>");
|
||||
}
|
||||
}
|
||||
writer.WriteLine("where TSelf : IGlobalAttributes<TSelf>, allows ref struct");
|
||||
}
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
}
|
||||
|
||||
context.AddSource("IGlobalAttributes.g.cs", stringWriter.ToString());
|
||||
}
|
||||
|
||||
// Local attributes
|
||||
foreach (HtmlAttribute attribute in localAttributes.Concat(globalAttributes))
|
||||
{
|
||||
StringWriter stringWriter = new()
|
||||
{
|
||||
NewLine = "\n",
|
||||
};
|
||||
IndentedTextWriter writer = IndentedTextWriterFactory.Create(stringWriter);
|
||||
|
||||
writer.WriteGeneratedCodeWarning();
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("#nullable enable");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteFileScopedNamespace("AssetRipper.Text.Html");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteSummaryDocumentation(WebUtility.HtmlEncode(attribute.Description));
|
||||
writer.WriteLine($"public interface {attribute.InterfaceName}<TSelf> where TSelf : {attribute.InterfaceName}<TSelf>, allows ref struct");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
WriteAttributeInterfacePropertyAndMethods(writer, attribute);
|
||||
}
|
||||
|
||||
context.AddSource($"{attribute.InterfaceName}.g.cs", stringWriter.ToString());
|
||||
}
|
||||
|
||||
foreach (HtmlElement element in elements)
|
||||
{
|
||||
StringWriter stringWriter = new()
|
||||
{
|
||||
NewLine = "\n",
|
||||
};
|
||||
IndentedTextWriter writer = IndentedTextWriterFactory.Create(stringWriter);
|
||||
|
||||
writer.WriteGeneratedCodeWarning();
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("#nullable enable");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteFileScopedNamespace("AssetRipper.Text.Html");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteSummaryDocumentation(WebUtility.HtmlEncode(element.Description));
|
||||
writer.WriteLine($"public readonly ref partial struct {element.ClassName} : IHtmlElement<{element.ClassName}>,");
|
||||
using (new Indented(writer))
|
||||
{
|
||||
foreach (HtmlAttribute attribute in element.Attributes.Values.Where(a => !a.Global))
|
||||
{
|
||||
writer.WriteLine($"{attribute.InterfaceName}<{element.ClassName}>,");
|
||||
}
|
||||
writer.WriteLine($"IGlobalAttributes<{element.ClassName}>");
|
||||
}
|
||||
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine($"private const string ElementName = \"{element.Name}\";");
|
||||
writer.WriteLine("private readonly TextWriter writer;");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine($"public {element.ClassName}(TextWriter writer)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("this.writer = writer;");
|
||||
writer.WriteLine("writer.Write($\"<{ElementName}\");");
|
||||
}
|
||||
foreach (HtmlAttribute attribute in element.Attributes.Values)
|
||||
{
|
||||
writer.WriteLineNoTabs();
|
||||
|
||||
string propertyName = attribute.GetPropertyName(element.ClassName);
|
||||
bool needExplicitPropertyImplementation = propertyName != attribute.PropertyName;
|
||||
string explicitPropertyName = $"{attribute.InterfaceName}<{element.ClassName}>.{attribute.PropertyName}";
|
||||
if (needExplicitPropertyImplementation)
|
||||
{
|
||||
writer.WriteInheritDocumentation(explicitPropertyName.Replace('<', '{').Replace('>', '}'));
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.WriteInheritDocumentation();
|
||||
}
|
||||
writer.WriteLine($"public string? {propertyName}");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("set");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine($"writer.Write(\" {attribute.Name}=\\\"\");");
|
||||
writer.WriteLine("writer.Write(value);");
|
||||
writer.WriteLine("writer.Write('\"');");
|
||||
}
|
||||
}
|
||||
if (needExplicitPropertyImplementation)
|
||||
{
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine($"string? {explicitPropertyName}");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine($"set => {propertyName} = value;");
|
||||
}
|
||||
}
|
||||
|
||||
writer.WriteLineNoTabs();
|
||||
|
||||
string fluentMethodName = attribute.GetFluentMethodName(element.ClassName);
|
||||
bool needExplicitMethodImplementation = fluentMethodName != attribute.FluentMethodName;
|
||||
string explicitFluentMethodName = $"{attribute.InterfaceName}<{element.ClassName}>.{attribute.FluentMethodName}";
|
||||
if (needExplicitMethodImplementation)
|
||||
{
|
||||
writer.WriteInheritDocumentation(explicitFluentMethodName.Replace('<', '{').Replace('>', '}'));
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.WriteInheritDocumentation();
|
||||
}
|
||||
writer.WriteLine($"public {element.ClassName} {fluentMethodName}(string? value = null)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine($"{attribute.GetPropertyName(element.ClassName)} = value;");
|
||||
writer.WriteLine("return this;");
|
||||
}
|
||||
if (needExplicitMethodImplementation)
|
||||
{
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine($"{element.ClassName} {explicitFluentMethodName}(string? value = null)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine($"return {fluentMethodName}(value);");
|
||||
}
|
||||
}
|
||||
|
||||
writer.WriteLineNoTabs();
|
||||
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine($"public {element.ClassName} {attribute.MaybeMethodName}(bool exists, string? value = null)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine($"return exists ? {fluentMethodName}(value) : this;");
|
||||
}
|
||||
}
|
||||
|
||||
if (element.IsVoidElement)
|
||||
{
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine("public void Close() => writer.Write(\"/>\");");
|
||||
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine($"HtmlElementCloser IHtmlElement<{element.ClassName}>.End() => throw new NotSupportedException();");
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine("public void Close() => writer.Write($\"></{ElementName}>\");");
|
||||
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteSummaryDocumentation("End the opening tag, write some text, and write the closing tag.");
|
||||
writer.WriteRemarksDocumentation("The text is automatically Html-encoded.");
|
||||
writer.WriteLine("public void Close(string? text)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("writer.Write('>');");
|
||||
writer.WriteLine("global::System.Net.WebUtility.HtmlEncode(text, writer);");
|
||||
writer.WriteLine("writer.Write($\"</{ElementName}>\");");
|
||||
}
|
||||
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine("public HtmlElementCloser End()");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("writer.Write('>');");
|
||||
writer.WriteLine("return new HtmlElementCloser(writer, $\"</{ElementName}>\");");
|
||||
}
|
||||
}
|
||||
|
||||
// IHtmlElement<TSelf> implementation
|
||||
{
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteComment("IHtmlElement<TSelf> implementation");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine($"TextWriter IHtmlElement<{element.ClassName}>.Writer => writer;");
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine($"static {element.ClassName} IHtmlElement<{element.ClassName}>.Create(TextWriter writer) => new(writer);");
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine($"static bool IHtmlElement<{element.ClassName}>.IsVoidElement => {element.IsVoidElement.ToString().ToLowerInvariant()};");
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine($"static string IHtmlElement<{element.ClassName}>.Name => ElementName;");
|
||||
writer.WriteInheritDocumentation();
|
||||
writer.WriteLine($"static ReadOnlySpan<string> IHtmlElement<{element.ClassName}>.SupportedAttributes => _supportedAttributes;");
|
||||
writer.WriteLine("private static readonly string[] _supportedAttributes =");
|
||||
writer.WriteLine('[');
|
||||
using (new Indented(writer))
|
||||
{
|
||||
foreach (HtmlAttribute attribute in element.Attributes.Values)
|
||||
{
|
||||
writer.WriteLine($"\"{attribute.Name}\",");
|
||||
}
|
||||
}
|
||||
writer.WriteLine("];");
|
||||
}
|
||||
}
|
||||
|
||||
context.AddSource($"{element.ClassName}.g.cs", stringWriter.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
private static void WriteAttributeInterfacePropertyAndMethods(IndentedTextWriter writer, HtmlAttribute attribute)
|
||||
{
|
||||
string encodedDescription = WebUtility.HtmlEncode(attribute.Description);
|
||||
|
||||
writer.WriteSummaryDocumentation($"Includes the {attribute.Name} attribute.");
|
||||
writer.WriteRemarksDocumentation(encodedDescription);
|
||||
writer.WriteParameterDocumentation("value", "The value to set. It is NOT automatically Html-encoded.");
|
||||
writer.WriteLine($"string? {attribute.PropertyName} {{ set; }}");
|
||||
|
||||
writer.WriteLineNoTabs();
|
||||
|
||||
writer.WriteSummaryDocumentation($"Includes the {attribute.Name} attribute.");
|
||||
writer.WriteRemarksDocumentation(encodedDescription);
|
||||
writer.WriteParameterDocumentation("value", "The value to set. It is NOT automatically Html-encoded.");
|
||||
writer.WriteReturnsDocumentation("This instance.");
|
||||
writer.WriteLine($"TSelf {attribute.FluentMethodName}(string? value = null);");
|
||||
|
||||
writer.WriteSummaryDocumentation($"Might include the {attribute.Name} attribute.");
|
||||
writer.WriteRemarksDocumentation(encodedDescription);
|
||||
writer.WriteParameterDocumentation("exists", "Whether or not the attribute should be included.");
|
||||
writer.WriteParameterDocumentation("value", "The value to set. It is NOT automatically Html-encoded.");
|
||||
writer.WriteReturnsDocumentation("This instance.");
|
||||
writer.WriteLine($"TSelf {attribute.MaybeMethodName}(bool exists, string? value = null);");
|
||||
}
|
||||
}
|
||||
@@ -1,132 +0,0 @@
|
||||
using AssetRipper.Text.Html.Model;
|
||||
using AssetRipper.Text.SourceGeneration;
|
||||
using System.CodeDom.Compiler;
|
||||
|
||||
namespace HtmlSharp.Generator;
|
||||
|
||||
internal class Program
|
||||
{
|
||||
private const string RepositoryRoot = "../../../../";
|
||||
private const string TargetProject = RepositoryRoot + "AssetRipper.Text.Html/";
|
||||
private const string GeneratedFolder = TargetProject + "Generated/";
|
||||
|
||||
static void Main()
|
||||
{
|
||||
IReadOnlyDictionary<string, HtmlElement> elements = HtmlJsonLoader.Load();
|
||||
|
||||
Directory.CreateDirectory(GeneratedFolder);
|
||||
|
||||
foreach (HtmlElement element in elements.Values)
|
||||
{
|
||||
IndentedTextWriter writer = IndentedTextWriterFactory.Create(GeneratedFolder, element.ClassName);
|
||||
|
||||
writer.WriteGeneratedCodeWarning();
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("#nullable enable");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteFileScopedNamespace("AssetRipper.Text.Html");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine($"public readonly ref partial struct {element.ClassName}");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine($"private const string ElementName = \"{element.Name}\";");
|
||||
writer.WriteLine("private readonly TextWriter writer;");
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine($"public {element.ClassName}(TextWriter writer)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("this.writer = writer;");
|
||||
writer.WriteLine("writer.Write($\"<{ElementName}\");");
|
||||
}
|
||||
foreach (HtmlAttribute attribute in element.Attributes.Values)
|
||||
{
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine($"public string? {attribute.PropertyName}");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("set");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine($"writer.Write(\" {attribute.Name}=\\\"\");");
|
||||
writer.WriteLine("writer.Write(value);");
|
||||
writer.WriteLine("writer.Write('\"');");
|
||||
}
|
||||
}
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine($"public {element.ClassName} {attribute.FluentMethodName}(string? value = null)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine($"{attribute.PropertyName} = value;");
|
||||
writer.WriteLine("return this;");
|
||||
}
|
||||
}
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine($"public {element.ClassName} WithCustomAttribute(string key, string? value = null)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("WriteKey(key);");
|
||||
writer.WriteLine("WriteValue(value);");
|
||||
writer.WriteLine("return this;");
|
||||
}
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine($"public {element.ClassName} WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("foreach ((string key, string? value) in attributes)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("WriteKey(key);");
|
||||
writer.WriteLine("WriteValue(value);");
|
||||
}
|
||||
writer.WriteLine("return this;");
|
||||
}
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("private void WriteKey(string key)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("writer.Write(' ');");
|
||||
writer.WriteLine("writer.Write(key);");
|
||||
}
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("private void WriteValue(string? value)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("writer.Write(\"=\\\"\");");
|
||||
writer.WriteLine("writer.Write(value);");
|
||||
writer.WriteLine("writer.Write('\"');");
|
||||
}
|
||||
if (element.IsVoidElement)
|
||||
{
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("public void Close() => writer.Write(\"/>\");");
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("public void Close() => writer.Write($\"></{ElementName}>\");");
|
||||
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteSummaryDocumentation("End the opening tag, write some text, and write the closing tag.");
|
||||
writer.WriteRemarksDocumentation("The text is automatically Html-encoded.");
|
||||
writer.WriteLine("public void Close(string? text)");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("writer.Write('>');");
|
||||
writer.WriteLine("global::System.Net.WebUtility.HtmlEncode(text, writer);");
|
||||
writer.WriteLine("writer.Write($\"</{ElementName}>\");");
|
||||
}
|
||||
|
||||
writer.WriteLineNoTabs();
|
||||
writer.WriteLine("public HtmlElementCloser End()");
|
||||
using (new CurlyBrackets(writer))
|
||||
{
|
||||
writer.WriteLine("writer.Write('>');");
|
||||
writer.WriteLine("return new HtmlElementCloser(writer, $\"</{ElementName}>\");");
|
||||
}
|
||||
}
|
||||
}
|
||||
Console.WriteLine(element.Name);
|
||||
}
|
||||
Console.WriteLine("Done!");
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFrameworks>netstandard2.0;net9.0</TargetFrameworks>
|
||||
<LangVersion>Latest</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
@@ -11,4 +12,13 @@
|
||||
<EmbeddedResource Include="*.json" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="PolySharp" Version="1.15.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.Linq" Version="4.3.0" />
|
||||
<PackageReference Include="System.Text.Json" Version="9.0.1" PrivateAssets="all" GeneratePathProperty="true" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -3,14 +3,63 @@
|
||||
public sealed class HtmlAttribute
|
||||
{
|
||||
public string Name { get; }
|
||||
public string Description { get; }
|
||||
public string InterfaceName => $"I{PropertyName}Attribute";
|
||||
public string PropertyName { get; }
|
||||
public string FluentMethodName { get; }
|
||||
public string MaybeMethodName { get; }
|
||||
public bool Global { get; }
|
||||
|
||||
public HtmlAttribute(string name, string className)
|
||||
public HtmlAttribute(string name, string description, bool global)
|
||||
{
|
||||
Name = name;
|
||||
string pascal = HtmlHelper.ConvertKebabToPascal(name);
|
||||
PropertyName = HtmlHelper.MaybeAppendUnderscore(pascal, className);
|
||||
FluentMethodName = HtmlHelper.MaybeAppendUnderscore($"With{pascal}", className);
|
||||
Description = description;
|
||||
PropertyName = GetPascalName(name);
|
||||
FluentMethodName = $"With{PropertyName}";
|
||||
MaybeMethodName = $"Maybe{FluentMethodName}";
|
||||
Global = global;
|
||||
}
|
||||
|
||||
public string GetPropertyName(string elementClassName)
|
||||
{
|
||||
return HtmlHelper.MaybeAppendUnderscore(PropertyName, elementClassName);
|
||||
}
|
||||
|
||||
public string GetFluentMethodName(string elementClassName)
|
||||
{
|
||||
return HtmlHelper.MaybeAppendUnderscore(FluentMethodName, elementClassName);
|
||||
}
|
||||
|
||||
private static string GetPascalName(string name) => name switch
|
||||
{
|
||||
"accesskey" => "AccessKey",
|
||||
"bgcolor" => "BgColor",
|
||||
"colspan" => "ColSpan",
|
||||
"contenteditable" => "ContentEditable",
|
||||
"crossorigin" => "CrossOrigin",
|
||||
"datetime" => "DateTime",
|
||||
"dirname" => "DirName",
|
||||
"enterkeyhint" => "EnterKeyHint",
|
||||
"formaction" => "FormAction",
|
||||
"formenctype" => "FormEncType",
|
||||
"formmethod" => "FormMethod",
|
||||
"formnovalidate" => "FormNoValidate",
|
||||
"formtarget" => "FormTarget",
|
||||
"hreflang" => "HrefLang",
|
||||
"inputmode" => "InputMode",
|
||||
"ismap" => "IsMap",
|
||||
"itemprop" => "ItemProp",
|
||||
"playsinline" => "PlaysInline",
|
||||
"minlength" => "MinLength",
|
||||
"maxlength" => "MaxLength",
|
||||
"referrerpolicy" => "ReferrerPolicy",
|
||||
"rowspan" => "RowSpan",
|
||||
"spellcheck" => "SpellCheck",
|
||||
"srclang" => "SrcLang",
|
||||
"srcset" => "SrcSet",
|
||||
"srcdoc" => "SrcDoc",
|
||||
"tabindex" => "TabIndex",
|
||||
"usemap" => "UseMap",
|
||||
_ => HtmlHelper.ConvertKebabToPascal(name),
|
||||
};
|
||||
}
|
||||
@@ -3,20 +3,44 @@
|
||||
public sealed class HtmlElement
|
||||
{
|
||||
public string Name { get; }
|
||||
public string Description { get; }
|
||||
public string ClassName { get; }
|
||||
public bool IsVoidElement { get; }
|
||||
public IReadOnlyDictionary<string, HtmlAttribute> Attributes { get; }
|
||||
|
||||
public HtmlElement(string name, ReadOnlySpan<string> attributes)
|
||||
public HtmlElement(string name, string description, IEnumerable<string> attributes, Dictionary<string, HtmlAttribute> attributeDictionary)
|
||||
{
|
||||
Name = name;
|
||||
ClassName = HtmlHelper.ConvertKebabToPascal(name);
|
||||
Description = description;
|
||||
ClassName = GetPascalName(name);
|
||||
IsVoidElement = HtmlHelper.IsVoidElement(name);
|
||||
Dictionary<string, HtmlAttribute> attributesDictionary = new();
|
||||
Dictionary<string, HtmlAttribute> dictionary = new();
|
||||
foreach (string attribute in attributes)
|
||||
{
|
||||
attributesDictionary.Add(attribute, new(attribute, ClassName));
|
||||
dictionary.Add(attribute, attributeDictionary[attribute]);
|
||||
}
|
||||
Attributes = attributesDictionary;
|
||||
Attributes = dictionary;
|
||||
}
|
||||
|
||||
private static string GetPascalName(string name) => name switch
|
||||
{
|
||||
"blockquote" => "BlockQuote",
|
||||
"colgroup" => "ColGroup",
|
||||
"datalist" => "DataList",
|
||||
"fencedframe" => "FencedFrame",
|
||||
"fieldset" => "FieldSet",
|
||||
"figcaption" => "FigCaption",
|
||||
"frameset" => "FrameSet",
|
||||
"hgroup" => "HGroup",
|
||||
"iframe" => "IFrame",
|
||||
"menuitem" => "MenuItem",
|
||||
"nobr" => "NoBr",
|
||||
"noembed" => "NoEmbed",
|
||||
"noframes" => "NoFrames",
|
||||
"noscript" => "NoScript",
|
||||
"optgroup" => "OptGroup",
|
||||
"plaintext" => "PlainText",
|
||||
"textarea" => "TextArea",
|
||||
_ => HtmlHelper.ConvertKebabToPascal(name),
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace AssetRipper.Text.Html.Model;
|
||||
|
||||
public readonly record struct HtmlElementData(string Name, string Description, List<string> Attributes);
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace AssetRipper.Text.Html.Model;
|
||||
|
||||
public sealed record HtmlJson(List<HtmlElementData> Elements, List<string> GlobalAttributes, List<KeyValuePair<string, string>> AttributeDescriptions)
|
||||
{
|
||||
public HtmlJson() : this([], [], [])
|
||||
{
|
||||
}
|
||||
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonSerializer.Serialize(this, HtmlJsonSerializerContext.Default.HtmlJson);
|
||||
}
|
||||
|
||||
public static HtmlJson FromJson(string json)
|
||||
{
|
||||
return JsonSerializer.Deserialize(json, HtmlJsonSerializerContext.Default.HtmlJson) ?? new();
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,50 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace AssetRipper.Text.Html.Model;
|
||||
namespace AssetRipper.Text.Html.Model;
|
||||
|
||||
public sealed class HtmlJsonLoader
|
||||
{
|
||||
private const string NamespacePrefix = "AssetRipper.Text.Html.Model.";
|
||||
|
||||
public static IReadOnlyDictionary<string, HtmlElement> Load()
|
||||
public static void Load(out List<HtmlAttribute> globalAttributes, out List<HtmlAttribute> localAttributes, out List<HtmlElement> elements)
|
||||
{
|
||||
using Stream stream = typeof(HtmlJsonLoader).Assembly.GetManifestResourceStream(NamespacePrefix + "html-elements-attributes.json")
|
||||
?? throw new NullReferenceException("Could not load resource stream.");
|
||||
|
||||
string json = new StreamReader(stream).ReadToEnd();
|
||||
|
||||
List<KeyValuePair<string, string[]>> data = JsonSerializer.Deserialize(json, HtmlJsonSerializerContext.Default.ListKeyValuePairStringStringArray)
|
||||
?? throw new NullReferenceException("Could not deserialize data from the json text.");
|
||||
HtmlJson data = HtmlJson.FromJson(json);
|
||||
|
||||
Dictionary<string, HtmlElement> result = new();
|
||||
foreach ((string elementName, string[] attributeArray) in data)
|
||||
Dictionary<string, HtmlAttribute> attributeDictionary = new();
|
||||
|
||||
globalAttributes = new();
|
||||
foreach (string name in data.GlobalAttributes)
|
||||
{
|
||||
result.Add(elementName, new HtmlElement(elementName, attributeArray));
|
||||
string description = data.AttributeDescriptions.FirstOrDefault(t => t.Key == name).Value ?? "";
|
||||
HtmlAttribute attribute = new HtmlAttribute(name, description, true);
|
||||
attributeDictionary.Add(name, attribute);
|
||||
globalAttributes.Add(attribute);
|
||||
}
|
||||
|
||||
return result;
|
||||
localAttributes = new();
|
||||
foreach ((_, _, List<string> attributeList) in data.Elements)
|
||||
{
|
||||
foreach (string name in attributeList)
|
||||
{
|
||||
if (attributeDictionary.ContainsKey(name))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
string description = data.AttributeDescriptions.FirstOrDefault(t => t.Key == name).Value ?? "";
|
||||
HtmlAttribute attribute = new HtmlAttribute(name, description, false);
|
||||
attributeDictionary.Add(name, attribute);
|
||||
localAttributes.Add(attribute);
|
||||
}
|
||||
}
|
||||
|
||||
elements = new();
|
||||
foreach ((string elementName, string description, List<string> attributeArray) in data.Elements)
|
||||
{
|
||||
elements.Add(new HtmlElement(elementName, description, attributeArray.Union(data.GlobalAttributes).Order(), attributeDictionary));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
namespace AssetRipper.Text.Html.Model;
|
||||
|
||||
[JsonSerializable(typeof(List<KeyValuePair<string, string[]>>))]
|
||||
[JsonSerializable(typeof(HtmlJson))]
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
internal partial class HtmlJsonSerializerContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace AssetRipper.Text.Html.Model;
|
||||
#if NETSTANDARD
|
||||
internal static class NetStandardExtensions
|
||||
{
|
||||
public static void Deconstruct<TKey, TValue>(this KeyValuePair<TKey, TValue> pair, out TKey key, out TValue value)
|
||||
{
|
||||
key = pair.Key;
|
||||
value = pair.Value;
|
||||
}
|
||||
|
||||
public static IEnumerable<T> Order<T>(this IEnumerable<T> enumerable)
|
||||
{
|
||||
return enumerable.OrderBy(t => t);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
File diff suppressed because it is too large.
Load diff
@@ -2,13 +2,17 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AngleSharp" Version="1.0.7" />
|
||||
<PackageReference Include="AngleSharp" Version="1.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AssetRipper.Text.Html.Model\AssetRipper.Text.Html.Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,11 +1,11 @@
|
||||
using AngleSharp;
|
||||
using AngleSharp.Dom;
|
||||
using AssetRipper.Text.Html.Model;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace AssetRipper.Text.Html.Scraper;
|
||||
|
||||
class Program
|
||||
static class Program
|
||||
{
|
||||
private const string UrlElements = "https://developer.mozilla.org/en-US/docs/Web/HTML/Element";
|
||||
private const string UrlAttributes = "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes";
|
||||
@@ -13,37 +13,54 @@ class Program
|
||||
|
||||
static void Main()
|
||||
{
|
||||
Dictionary<string, List<string>> elements = Scrape();
|
||||
SaveAsJson(elements);
|
||||
HtmlJson elements = Scrape();
|
||||
string json = elements.ToJson();
|
||||
File.WriteAllText("html-elements-attributes.json", json);
|
||||
}
|
||||
|
||||
static Dictionary<string, List<string>> Scrape()
|
||||
static HtmlJson Scrape()
|
||||
{
|
||||
Dictionary<string, List<string>> htmlElements = new();
|
||||
Dictionary<string, (List<string>, string)> htmlElements = new();
|
||||
List<string> globalAttributes = new();
|
||||
Dictionary<string, string> attributeDescriptions = new();
|
||||
ScrapeElements(htmlElements);
|
||||
ScrapeAttributes(htmlElements);
|
||||
return htmlElements;
|
||||
ScrapeAttributes(htmlElements, globalAttributes, attributeDescriptions);
|
||||
globalAttributes.Sort();
|
||||
return new HtmlJson(
|
||||
htmlElements.OrderBy(p => p.Key).Select(p => new HtmlElementData(p.Key, p.Value.Item2, p.Value.Item1)).ToList(),
|
||||
globalAttributes,
|
||||
attributeDescriptions.OrderBy(p => p.Key).ToList());
|
||||
}
|
||||
|
||||
static void ScrapeElements(Dictionary<string, List<string>> htmlElements)
|
||||
static void ScrapeElements(Dictionary<string, (List<string>, string)> htmlElements)
|
||||
{
|
||||
IConfiguration config = Configuration.Default.WithDefaultLoader();
|
||||
IBrowsingContext context = BrowsingContext.New(config);
|
||||
IDocument document = context.OpenAsync(UrlElements).GetAwaiter().GetResult();
|
||||
|
||||
foreach (IElement td in document.QuerySelectorAll("table td:first-child"))
|
||||
|
||||
foreach (IElement tr in document.QuerySelectorAll("table tr"))
|
||||
{
|
||||
foreach (string e in td.TextContent.Split(','))
|
||||
IElement? td1 = tr.QuerySelector("td:first-child");
|
||||
IElement? td2 = tr.QuerySelector("td:nth-child(2)");
|
||||
|
||||
if (td1 == null || td2 == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
string description = td2.TextContent.RemoveExtraWhiteSpace();
|
||||
|
||||
foreach (string e in td1.TextContent.Split(','))
|
||||
{
|
||||
if (TryTrim(e, out string? element))
|
||||
{
|
||||
htmlElements[element] = new();
|
||||
htmlElements[element] = (new(), description);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void ScrapeAttributes(Dictionary<string, List<string>> htmlElements)
|
||||
static void ScrapeAttributes(Dictionary<string, (List<string>, string)> htmlElements, List<string> globalAttributes, Dictionary<string, string> attributeDescriptions)
|
||||
{
|
||||
IConfiguration config = Configuration.Default.WithDefaultLoader();
|
||||
IBrowsingContext context = BrowsingContext.New(config);
|
||||
@@ -53,8 +70,9 @@ class Program
|
||||
{
|
||||
IElement? td1 = tr.QuerySelector("td:first-child code");
|
||||
IElement? td2 = tr.QuerySelector("td:nth-child(2)");
|
||||
IElement? td3 = tr.QuerySelector("td:nth-child(3)");
|
||||
|
||||
if (td1 != null && td2 != null)
|
||||
if (td1 != null && td2 != null && td3 != null)
|
||||
{
|
||||
string attr = td1.TextContent;
|
||||
if (attr is "data-*")
|
||||
@@ -65,20 +83,21 @@ class Program
|
||||
continue;
|
||||
}
|
||||
|
||||
string description = td3.TextContent.RemoveExtraWhiteSpace();
|
||||
|
||||
attributeDescriptions[attr] = description;
|
||||
|
||||
foreach (string e in td2.TextContent.Split(','))
|
||||
{
|
||||
if (TryTrim(e, out string? element))
|
||||
{
|
||||
if (element is GlobalAttribute)
|
||||
{
|
||||
foreach (List<string> value in htmlElements.Values)
|
||||
{
|
||||
value.Add(attr);
|
||||
}
|
||||
globalAttributes.Add(attr);
|
||||
}
|
||||
else
|
||||
{
|
||||
htmlElements[element].Add(attr);
|
||||
htmlElements[element].Item1.Add(attr);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -107,20 +126,8 @@ class Program
|
||||
}
|
||||
}
|
||||
|
||||
static void SaveAsJson(Dictionary<string, List<string>> htmlElements)
|
||||
private static string RemoveExtraWhiteSpace(this string value)
|
||||
{
|
||||
JsonSerializerOptions options = new() { WriteIndented = true };
|
||||
|
||||
using (FileStream stream = File.Create("html-elements.json"))
|
||||
{
|
||||
IOrderedEnumerable<string> sortedElements = htmlElements.Keys.OrderBy(k => k);
|
||||
JsonSerializer.Serialize(stream, sortedElements, options);
|
||||
}
|
||||
|
||||
using (FileStream stream = File.Create("html-elements-attributes.json"))
|
||||
{
|
||||
IOrderedEnumerable<KeyValuePair<string, List<string>>> sortedElements = htmlElements.OrderBy(e => e.Key);
|
||||
JsonSerializer.Serialize(stream, sortedElements, options);
|
||||
}
|
||||
return string.Join(' ', value.Split([' ', '\n', '\r', '\t'], StringSplitOptions.RemoveEmptyEntries));
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
@@ -10,14 +10,17 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
|
||||
<PackageReference Include="NUnit" Version="3.14.0" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
|
||||
<PackageReference Include="NUnit.Analyzers" Version="3.9.0">
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
||||
<PackageReference Include="NUnit" Version="4.3.2" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
|
||||
<PackageReference Include="NUnit.Analyzers" Version="4.6.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.4">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -14,11 +14,14 @@ EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0D674883-9878-44EE-8280-8D67B6C00076}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.editorconfig = .editorconfig
|
||||
.gitignore = .gitignore
|
||||
LICENSE.txt = LICENSE.txt
|
||||
README.md = README.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssetRipper.Text.Html.Model", "AssetRipper.Text.Html.Model\AssetRipper.Text.Html.Model.csproj", "{E07CCCBB-D1CA-4AF2-A6C7-C05B3BC43E66}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AssetRipper.Text.Html.Model", "AssetRipper.Text.Html.Model\AssetRipper.Text.Html.Model.csproj", "{E07CCCBB-D1CA-4AF2-A6C7-C05B3BC43E66}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssetRipper.Text.Html.Converter", "AssetRipper.Text.Html.Converter\AssetRipper.Text.Html.Converter.csproj", "{F7EBBC0A-472A-42DA-B2A2-CC8B42C96CAB}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AssetRipper.Text.Html.Converter", "AssetRipper.Text.Html.Converter\AssetRipper.Text.Html.Converter.csproj", "{F7EBBC0A-472A-42DA-B2A2-CC8B42C96CAB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsAotCompatible>true</IsAotCompatible>
|
||||
|
||||
<Version>1.0.0</Version>
|
||||
<Version>2.1.0</Version>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<Copyright>Copyright © 2023 ds5678</Copyright>
|
||||
<Copyright>Copyright © 2023 - 2025 ds5678</Copyright>
|
||||
<Authors>ds5678</Authors>
|
||||
<Company>AssetRipper</Company>
|
||||
|
||||
@@ -25,9 +25,13 @@
|
||||
|
||||
<NoWarn>1591</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="README.md" Pack="true" PackagePath="\"/>
|
||||
<None Include="../README.md" Pack="true" PackagePath="\"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AssetRipper.Text.Html.Generator\AssetRipper.Text.Html.Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,42 @@
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public static class CustomAttributes
|
||||
{
|
||||
public static TSelf WithCustomAttribute<TSelf>(this TSelf element, string key, string? value = null)
|
||||
where TSelf : IHtmlElement<TSelf>, allows ref struct
|
||||
{
|
||||
WriteKey(element.Writer, key);
|
||||
WriteValue(element.Writer, value);
|
||||
return element;
|
||||
}
|
||||
|
||||
public static TSelf MaybeWithCustomAttribute<TSelf>(this TSelf element, bool exists, string key, string? value = null)
|
||||
where TSelf : IHtmlElement<TSelf>, allows ref struct
|
||||
{
|
||||
return exists ? element.WithCustomAttribute(key, value) : element;
|
||||
}
|
||||
|
||||
public static TSelf WithCustomAttributes<TSelf>(this TSelf element, scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
where TSelf : IHtmlElement<TSelf>, allows ref struct
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(element.Writer, key);
|
||||
WriteValue(element.Writer, value);
|
||||
}
|
||||
return element;
|
||||
}
|
||||
|
||||
private static void WriteKey(TextWriter writer, string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private static void WriteValue(TextWriter writer, string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
/// <summary>
|
||||
/// A class for custom HTML elements.
|
||||
/// </summary>
|
||||
public readonly ref struct CustomHtmlElement : IHtmlElement<CustomHtmlElement>
|
||||
{
|
||||
private readonly TextWriter writer;
|
||||
private readonly string name;
|
||||
|
||||
internal CustomHtmlElement(TextWriter writer, string name)
|
||||
{
|
||||
this.writer = writer;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{name}>");
|
||||
}
|
||||
|
||||
static ReadOnlySpan<string> IHtmlElement<CustomHtmlElement>.SupportedAttributes => [];
|
||||
|
||||
static string IHtmlElement<CustomHtmlElement>.Name => throw new NotSupportedException();
|
||||
|
||||
static bool IHtmlElement<CustomHtmlElement>.IsVoidElement => false;
|
||||
|
||||
TextWriter IHtmlElement<CustomHtmlElement>.Writer => writer;
|
||||
|
||||
static CustomHtmlElement IHtmlElement<CustomHtmlElement>.Create(TextWriter writer)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
}
|
||||
@@ -1,500 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct A
|
||||
{
|
||||
private const string ElementName = "a";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public A(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Download
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" download=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithDownload(string? value = null)
|
||||
{
|
||||
Download = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Href
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" href=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithHref(string? value = null)
|
||||
{
|
||||
Href = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hreflang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hreflang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithHreflang(string? value = null)
|
||||
{
|
||||
Hreflang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Media
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" media=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithMedia(string? value = null)
|
||||
{
|
||||
Media = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Ping
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" ping=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithPing(string? value = null)
|
||||
{
|
||||
Ping = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Referrerpolicy
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" referrerpolicy=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithReferrerpolicy(string? value = null)
|
||||
{
|
||||
Referrerpolicy = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Rel
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" rel=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithRel(string? value = null)
|
||||
{
|
||||
Rel = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Shape
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" shape=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithShape(string? value = null)
|
||||
{
|
||||
Shape = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Target
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" target=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithTarget(string? value = null)
|
||||
{
|
||||
Target = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public A WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public A WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public A WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Abbr
|
||||
{
|
||||
private const string ElementName = "abbr";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Abbr(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Abbr WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Abbr WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Abbr WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Acronym
|
||||
{
|
||||
private const string ElementName = "acronym";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Acronym(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Acronym WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Acronym WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Acronym WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Address
|
||||
{
|
||||
private const string ElementName = "address";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Address(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Address WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Address WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Address WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,497 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Area
|
||||
{
|
||||
private const string ElementName = "area";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Area(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Alt
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" alt=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithAlt(string? value = null)
|
||||
{
|
||||
Alt = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Coords
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" coords=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithCoords(string? value = null)
|
||||
{
|
||||
Coords = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Download
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" download=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithDownload(string? value = null)
|
||||
{
|
||||
Download = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Href
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" href=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithHref(string? value = null)
|
||||
{
|
||||
Href = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Media
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" media=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithMedia(string? value = null)
|
||||
{
|
||||
Media = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Ping
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" ping=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithPing(string? value = null)
|
||||
{
|
||||
Ping = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Referrerpolicy
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" referrerpolicy=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithReferrerpolicy(string? value = null)
|
||||
{
|
||||
Referrerpolicy = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Rel
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" rel=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithRel(string? value = null)
|
||||
{
|
||||
Rel = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Shape
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" shape=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithShape(string? value = null)
|
||||
{
|
||||
Shape = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Target
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" target=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithTarget(string? value = null)
|
||||
{
|
||||
Target = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Area WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Area WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Area WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Article
|
||||
{
|
||||
private const string ElementName = "article";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Article(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Article WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Article WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Article WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Aside
|
||||
{
|
||||
private const string ElementName = "aside";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Aside(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Aside WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Aside WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Aside WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,484 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Audio
|
||||
{
|
||||
private const string ElementName = "audio";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Audio(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autoplay
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autoplay=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithAutoplay(string? value = null)
|
||||
{
|
||||
Autoplay = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Buffered
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" buffered=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithBuffered(string? value = null)
|
||||
{
|
||||
Buffered = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Controls
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" controls=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithControls(string? value = null)
|
||||
{
|
||||
Controls = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Crossorigin
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" crossorigin=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithCrossorigin(string? value = null)
|
||||
{
|
||||
Crossorigin = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Loop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" loop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithLoop(string? value = null)
|
||||
{
|
||||
Loop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Muted
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" muted=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithMuted(string? value = null)
|
||||
{
|
||||
Muted = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Preload
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" preload=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithPreload(string? value = null)
|
||||
{
|
||||
Preload = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Src
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" src=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithSrc(string? value = null)
|
||||
{
|
||||
Src = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Audio WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Audio WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Audio WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct B
|
||||
{
|
||||
private const string ElementName = "b";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public B(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public B WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public B WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public B WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,369 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Base
|
||||
{
|
||||
private const string ElementName = "base";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Base(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Href
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" href=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithHref(string? value = null)
|
||||
{
|
||||
Href = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Target
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" target=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithTarget(string? value = null)
|
||||
{
|
||||
Target = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Base WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Base WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Base WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Bdi
|
||||
{
|
||||
private const string ElementName = "bdi";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Bdi(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdi WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Bdi WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Bdi WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Bdo
|
||||
{
|
||||
private const string ElementName = "bdo";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Bdo(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Bdo WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Bdo WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Bdo WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Big
|
||||
{
|
||||
private const string ElementName = "big";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Big(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Big WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Big WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Big WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Blockquote
|
||||
{
|
||||
private const string ElementName = "blockquote";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Blockquote(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Cite
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" cite=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithCite(string? value = null)
|
||||
{
|
||||
Cite = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Blockquote WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Blockquote WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Blockquote WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,388 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Body
|
||||
{
|
||||
private const string ElementName = "body";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Body(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Background
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" background=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithBackground(string? value = null)
|
||||
{
|
||||
Background = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Bgcolor
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" bgcolor=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithBgcolor(string? value = null)
|
||||
{
|
||||
Bgcolor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Body WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Body WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Body WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,337 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Br
|
||||
{
|
||||
private const string ElementName = "br";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Br(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Br WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Br WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Br WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,516 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Button
|
||||
{
|
||||
private const string ElementName = "button";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Button(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Disabled
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" disabled=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithDisabled(string? value = null)
|
||||
{
|
||||
Disabled = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Form
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" form=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithForm(string? value = null)
|
||||
{
|
||||
Form = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formaction
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formaction=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithFormaction(string? value = null)
|
||||
{
|
||||
Formaction = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formenctype
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formenctype=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithFormenctype(string? value = null)
|
||||
{
|
||||
Formenctype = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formmethod
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formmethod=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithFormmethod(string? value = null)
|
||||
{
|
||||
Formmethod = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formnovalidate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formnovalidate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithFormnovalidate(string? value = null)
|
||||
{
|
||||
Formnovalidate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formtarget
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formtarget=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithFormtarget(string? value = null)
|
||||
{
|
||||
Formtarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Name
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" name=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithName(string? value = null)
|
||||
{
|
||||
Name = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Type
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" type=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithType(string? value = null)
|
||||
{
|
||||
Type = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Value
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" value=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Button WithValue(string? value = null)
|
||||
{
|
||||
Value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Button WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Button WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,388 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Canvas
|
||||
{
|
||||
private const string ElementName = "canvas";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Canvas(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Height
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" height=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithHeight(string? value = null)
|
||||
{
|
||||
Height = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Width
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" width=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Canvas WithWidth(string? value = null)
|
||||
{
|
||||
Width = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Canvas WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Canvas WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Caption
|
||||
{
|
||||
private const string ElementName = "caption";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Caption(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Align
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" align=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithAlign(string? value = null)
|
||||
{
|
||||
Align = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Caption WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Caption WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Caption WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Center
|
||||
{
|
||||
private const string ElementName = "center";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Center(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Center WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Center WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Center WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Cite
|
||||
{
|
||||
private const string ElementName = "cite";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Cite(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Cite WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Cite WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Cite WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Code
|
||||
{
|
||||
private const string ElementName = "code";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Code(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Code WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Code WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Code WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,385 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Col
|
||||
{
|
||||
private const string ElementName = "col";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Col(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Align
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" align=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithAlign(string? value = null)
|
||||
{
|
||||
Align = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Bgcolor
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" bgcolor=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithBgcolor(string? value = null)
|
||||
{
|
||||
Bgcolor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Span
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" span=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithSpan(string? value = null)
|
||||
{
|
||||
Span = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Col WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Col WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Col WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,404 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Colgroup
|
||||
{
|
||||
private const string ElementName = "colgroup";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Colgroup(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Align
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" align=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithAlign(string? value = null)
|
||||
{
|
||||
Align = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Bgcolor
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" bgcolor=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithBgcolor(string? value = null)
|
||||
{
|
||||
Bgcolor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Span
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" span=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithSpan(string? value = null)
|
||||
{
|
||||
Span = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Colgroup WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Colgroup WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Colgroup WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Content
|
||||
{
|
||||
private const string ElementName = "content";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Content(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Content WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Content WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Content WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Data
|
||||
{
|
||||
private const string ElementName = "data";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Data(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Value
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" value=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Data WithValue(string? value = null)
|
||||
{
|
||||
Value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Data WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Data WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Datalist
|
||||
{
|
||||
private const string ElementName = "datalist";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Datalist(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Datalist WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Datalist WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Datalist WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Dd
|
||||
{
|
||||
private const string ElementName = "dd";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Dd(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dd WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dd WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dd WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,388 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Del
|
||||
{
|
||||
private const string ElementName = "del";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Del(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Cite
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" cite=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithCite(string? value = null)
|
||||
{
|
||||
Cite = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Datetime
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" datetime=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithDatetime(string? value = null)
|
||||
{
|
||||
Datetime = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Del WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Del WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Del WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Details
|
||||
{
|
||||
private const string ElementName = "details";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Details(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Open
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" open=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithOpen(string? value = null)
|
||||
{
|
||||
Open = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Details WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Details WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Details WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Dfn
|
||||
{
|
||||
private const string ElementName = "dfn";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Dfn(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dfn WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dfn WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dfn WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Dialog
|
||||
{
|
||||
private const string ElementName = "dialog";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Dialog(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Open
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" open=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithOpen(string? value = null)
|
||||
{
|
||||
Open = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dialog WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dialog WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dialog WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Dir
|
||||
{
|
||||
private const string ElementName = "dir";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Dir(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir_
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithDir(string? value = null)
|
||||
{
|
||||
Dir_ = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dir WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dir WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dir WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Div
|
||||
{
|
||||
private const string ElementName = "div";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Div(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Div WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Div WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Div WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Dl
|
||||
{
|
||||
private const string ElementName = "dl";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Dl(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dl WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dl WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dl WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Dt
|
||||
{
|
||||
private const string ElementName = "dt";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Dt(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Dt WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dt WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dt WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Em
|
||||
{
|
||||
private const string ElementName = "em";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Em(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Em WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Em WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Em WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,401 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Embed
|
||||
{
|
||||
private const string ElementName = "embed";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Embed(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Height
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" height=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithHeight(string? value = null)
|
||||
{
|
||||
Height = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Src
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" src=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithSrc(string? value = null)
|
||||
{
|
||||
Src = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Type
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" type=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithType(string? value = null)
|
||||
{
|
||||
Type = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Width
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" width=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Embed WithWidth(string? value = null)
|
||||
{
|
||||
Width = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Embed WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Embed WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,404 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Fieldset
|
||||
{
|
||||
private const string ElementName = "fieldset";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Fieldset(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Disabled
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" disabled=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithDisabled(string? value = null)
|
||||
{
|
||||
Disabled = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Form
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" form=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithForm(string? value = null)
|
||||
{
|
||||
Form = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Name
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" name=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithName(string? value = null)
|
||||
{
|
||||
Name = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Fieldset WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Fieldset WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Fieldset WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Figcaption
|
||||
{
|
||||
private const string ElementName = "figcaption";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Figcaption(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figcaption WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Figcaption WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Figcaption WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Figure
|
||||
{
|
||||
private const string ElementName = "figure";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Figure(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Figure WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Figure WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Figure WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Font
|
||||
{
|
||||
private const string ElementName = "font";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Font(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Color
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" color=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithColor(string? value = null)
|
||||
{
|
||||
Color = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Font WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Font WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Font WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Footer
|
||||
{
|
||||
private const string ElementName = "footer";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Footer(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Footer WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Footer WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Footer WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,500 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Form
|
||||
{
|
||||
private const string ElementName = "form";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Form(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accept
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accept=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithAccept(string? value = null)
|
||||
{
|
||||
Accept = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? AcceptCharset
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accept-charset=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithAcceptCharset(string? value = null)
|
||||
{
|
||||
AcceptCharset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Action
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" action=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithAction(string? value = null)
|
||||
{
|
||||
Action = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocomplete
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocomplete=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithAutocomplete(string? value = null)
|
||||
{
|
||||
Autocomplete = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Enctype
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" enctype=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithEnctype(string? value = null)
|
||||
{
|
||||
Enctype = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Method
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" method=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithMethod(string? value = null)
|
||||
{
|
||||
Method = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Name
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" name=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithName(string? value = null)
|
||||
{
|
||||
Name = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Novalidate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" novalidate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithNovalidate(string? value = null)
|
||||
{
|
||||
Novalidate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Target
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" target=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithTarget(string? value = null)
|
||||
{
|
||||
Target = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Form WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Form WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Form WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Frame
|
||||
{
|
||||
private const string ElementName = "frame";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Frame(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frame WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Frame WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Frame WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Frameset
|
||||
{
|
||||
private const string ElementName = "frameset";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Frameset(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Frameset WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Frameset WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Frameset WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct H1
|
||||
{
|
||||
private const string ElementName = "h1";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public H1(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H1 WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public H1 WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public H1 WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct H2
|
||||
{
|
||||
private const string ElementName = "h2";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public H2(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H2 WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public H2 WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public H2 WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct H3
|
||||
{
|
||||
private const string ElementName = "h3";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public H3(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H3 WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public H3 WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public H3 WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct H4
|
||||
{
|
||||
private const string ElementName = "h4";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public H4(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H4 WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public H4 WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public H4 WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct H5
|
||||
{
|
||||
private const string ElementName = "h5";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public H5(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H5 WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public H5 WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public H5 WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct H6
|
||||
{
|
||||
private const string ElementName = "h6";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public H6(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public H6 WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public H6 WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public H6 WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Head
|
||||
{
|
||||
private const string ElementName = "head";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Head(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Head WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Head WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Head WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Header
|
||||
{
|
||||
private const string ElementName = "header";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Header(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Header WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Header WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Header WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Hgroup
|
||||
{
|
||||
private const string ElementName = "hgroup";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Hgroup(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hgroup WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Hgroup WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Hgroup WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,369 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Hr
|
||||
{
|
||||
private const string ElementName = "hr";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Hr(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Align
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" align=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithAlign(string? value = null)
|
||||
{
|
||||
Align = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Color
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" color=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithColor(string? value = null)
|
||||
{
|
||||
Color = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Hr WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Hr WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Hr WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Html
|
||||
{
|
||||
private const string ElementName = "html";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Html(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Manifest
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" manifest=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithManifest(string? value = null)
|
||||
{
|
||||
Manifest = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Html WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Html WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Html WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct I
|
||||
{
|
||||
private const string ElementName = "i";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public I(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public I WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public I WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public I WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,532 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Iframe
|
||||
{
|
||||
private const string ElementName = "iframe";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Iframe(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Align
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" align=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithAlign(string? value = null)
|
||||
{
|
||||
Align = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Allow
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" allow=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithAllow(string? value = null)
|
||||
{
|
||||
Allow = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Csp
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" csp=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithCsp(string? value = null)
|
||||
{
|
||||
Csp = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Height
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" height=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithHeight(string? value = null)
|
||||
{
|
||||
Height = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Loading
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" loading=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithLoading(string? value = null)
|
||||
{
|
||||
Loading = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Name
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" name=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithName(string? value = null)
|
||||
{
|
||||
Name = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Referrerpolicy
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" referrerpolicy=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithReferrerpolicy(string? value = null)
|
||||
{
|
||||
Referrerpolicy = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Sandbox
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" sandbox=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithSandbox(string? value = null)
|
||||
{
|
||||
Sandbox = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Src
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" src=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithSrc(string? value = null)
|
||||
{
|
||||
Src = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Srcdoc
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" srcdoc=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithSrcdoc(string? value = null)
|
||||
{
|
||||
Srcdoc = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Width
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" width=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Iframe WithWidth(string? value = null)
|
||||
{
|
||||
Width = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Iframe WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Iframe WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Image
|
||||
{
|
||||
private const string ElementName = "image";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Image(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Image WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Image WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Image WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,577 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Img
|
||||
{
|
||||
private const string ElementName = "img";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Img(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Align
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" align=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithAlign(string? value = null)
|
||||
{
|
||||
Align = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Alt
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" alt=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithAlt(string? value = null)
|
||||
{
|
||||
Alt = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Border
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" border=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithBorder(string? value = null)
|
||||
{
|
||||
Border = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Crossorigin
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" crossorigin=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithCrossorigin(string? value = null)
|
||||
{
|
||||
Crossorigin = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Decoding
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" decoding=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithDecoding(string? value = null)
|
||||
{
|
||||
Decoding = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Height
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" height=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithHeight(string? value = null)
|
||||
{
|
||||
Height = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Intrinsicsize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" intrinsicsize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithIntrinsicsize(string? value = null)
|
||||
{
|
||||
Intrinsicsize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Ismap
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" ismap=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithIsmap(string? value = null)
|
||||
{
|
||||
Ismap = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Loading
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" loading=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithLoading(string? value = null)
|
||||
{
|
||||
Loading = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Referrerpolicy
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" referrerpolicy=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithReferrerpolicy(string? value = null)
|
||||
{
|
||||
Referrerpolicy = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Sizes
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" sizes=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithSizes(string? value = null)
|
||||
{
|
||||
Sizes = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Src
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" src=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithSrc(string? value = null)
|
||||
{
|
||||
Src = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Srcset
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" srcset=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithSrcset(string? value = null)
|
||||
{
|
||||
Srcset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Usemap
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" usemap=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithUsemap(string? value = null)
|
||||
{
|
||||
Usemap = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Width
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" width=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Img WithWidth(string? value = null)
|
||||
{
|
||||
Width = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Img WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Img WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,849 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Input
|
||||
{
|
||||
private const string ElementName = "input";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Input(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accept
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accept=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithAccept(string? value = null)
|
||||
{
|
||||
Accept = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Alt
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" alt=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithAlt(string? value = null)
|
||||
{
|
||||
Alt = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocomplete
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocomplete=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithAutocomplete(string? value = null)
|
||||
{
|
||||
Autocomplete = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Capture
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" capture=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithCapture(string? value = null)
|
||||
{
|
||||
Capture = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Checked
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" checked=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithChecked(string? value = null)
|
||||
{
|
||||
Checked = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dirname
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dirname=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithDirname(string? value = null)
|
||||
{
|
||||
Dirname = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Disabled
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" disabled=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithDisabled(string? value = null)
|
||||
{
|
||||
Disabled = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Form
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" form=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithForm(string? value = null)
|
||||
{
|
||||
Form = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formaction
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formaction=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithFormaction(string? value = null)
|
||||
{
|
||||
Formaction = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formenctype
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formenctype=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithFormenctype(string? value = null)
|
||||
{
|
||||
Formenctype = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formmethod
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formmethod=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithFormmethod(string? value = null)
|
||||
{
|
||||
Formmethod = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formnovalidate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formnovalidate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithFormnovalidate(string? value = null)
|
||||
{
|
||||
Formnovalidate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Formtarget
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" formtarget=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithFormtarget(string? value = null)
|
||||
{
|
||||
Formtarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Height
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" height=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithHeight(string? value = null)
|
||||
{
|
||||
Height = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? List
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" list=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithList(string? value = null)
|
||||
{
|
||||
List = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Max
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" max=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithMax(string? value = null)
|
||||
{
|
||||
Max = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Maxlength
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" maxlength=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithMaxlength(string? value = null)
|
||||
{
|
||||
Maxlength = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Minlength
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" minlength=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithMinlength(string? value = null)
|
||||
{
|
||||
Minlength = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Min
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" min=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithMin(string? value = null)
|
||||
{
|
||||
Min = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Multiple
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" multiple=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithMultiple(string? value = null)
|
||||
{
|
||||
Multiple = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Name
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" name=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithName(string? value = null)
|
||||
{
|
||||
Name = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Pattern
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" pattern=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithPattern(string? value = null)
|
||||
{
|
||||
Pattern = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Placeholder
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" placeholder=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithPlaceholder(string? value = null)
|
||||
{
|
||||
Placeholder = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Readonly
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" readonly=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithReadonly(string? value = null)
|
||||
{
|
||||
Readonly = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Required
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" required=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithRequired(string? value = null)
|
||||
{
|
||||
Required = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Size
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" size=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithSize(string? value = null)
|
||||
{
|
||||
Size = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Src
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" src=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithSrc(string? value = null)
|
||||
{
|
||||
Src = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Step
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" step=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithStep(string? value = null)
|
||||
{
|
||||
Step = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Type
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" type=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithType(string? value = null)
|
||||
{
|
||||
Type = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Usemap
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" usemap=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithUsemap(string? value = null)
|
||||
{
|
||||
Usemap = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Value
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" value=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithValue(string? value = null)
|
||||
{
|
||||
Value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Width
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" width=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Input WithWidth(string? value = null)
|
||||
{
|
||||
Width = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Input WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Input WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,388 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Ins
|
||||
{
|
||||
private const string ElementName = "ins";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Ins(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Cite
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" cite=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithCite(string? value = null)
|
||||
{
|
||||
Cite = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Datetime
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" datetime=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithDatetime(string? value = null)
|
||||
{
|
||||
Datetime = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Ins WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Ins WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Ins WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Kbd
|
||||
{
|
||||
private const string ElementName = "kbd";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Kbd(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Kbd WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Kbd WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Kbd WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,388 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Label
|
||||
{
|
||||
private const string ElementName = "label";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Label(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? For
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" for=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithFor(string? value = null)
|
||||
{
|
||||
For = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Form
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" form=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithForm(string? value = null)
|
||||
{
|
||||
Form = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Label WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Label WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Label WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Legend
|
||||
{
|
||||
private const string ElementName = "legend";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Legend(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Legend WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Legend WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Legend WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Li
|
||||
{
|
||||
private const string ElementName = "li";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Li(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Value
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" value=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Li WithValue(string? value = null)
|
||||
{
|
||||
Value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Li WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Li WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,481 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Link
|
||||
{
|
||||
private const string ElementName = "link";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Link(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Crossorigin
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" crossorigin=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithCrossorigin(string? value = null)
|
||||
{
|
||||
Crossorigin = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Href
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" href=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithHref(string? value = null)
|
||||
{
|
||||
Href = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hreflang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hreflang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithHreflang(string? value = null)
|
||||
{
|
||||
Hreflang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Integrity
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" integrity=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithIntegrity(string? value = null)
|
||||
{
|
||||
Integrity = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Media
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" media=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithMedia(string? value = null)
|
||||
{
|
||||
Media = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Referrerpolicy
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" referrerpolicy=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithReferrerpolicy(string? value = null)
|
||||
{
|
||||
Referrerpolicy = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Rel
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" rel=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithRel(string? value = null)
|
||||
{
|
||||
Rel = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Sizes
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" sizes=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithSizes(string? value = null)
|
||||
{
|
||||
Sizes = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Type
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" type=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Link WithType(string? value = null)
|
||||
{
|
||||
Type = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Link WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Link WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Main
|
||||
{
|
||||
private const string ElementName = "main";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Main(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Main WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Main WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Main WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Map
|
||||
{
|
||||
private const string ElementName = "map";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Map(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Name
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" name=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithName(string? value = null)
|
||||
{
|
||||
Name = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Map WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Map WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Map WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Mark
|
||||
{
|
||||
private const string ElementName = "mark";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Mark(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Mark WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Mark WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Mark WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,388 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Marquee
|
||||
{
|
||||
private const string ElementName = "marquee";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Marquee(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Bgcolor
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" bgcolor=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithBgcolor(string? value = null)
|
||||
{
|
||||
Bgcolor = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Loop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" loop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithLoop(string? value = null)
|
||||
{
|
||||
Loop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Marquee WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Marquee WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Marquee WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Math
|
||||
{
|
||||
private const string ElementName = "math";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Math(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Math WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Math WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Math WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,372 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Menu
|
||||
{
|
||||
private const string ElementName = "menu";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Menu(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Type
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" type=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menu WithType(string? value = null)
|
||||
{
|
||||
Type = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Menu WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Menu WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,356 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Menuitem
|
||||
{
|
||||
private const string ElementName = "menuitem";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Menuitem(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Menuitem WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Menuitem WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Menuitem WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
@@ -1,401 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Meta
|
||||
{
|
||||
private const string ElementName = "meta";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Meta(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Charset
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" charset=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithCharset(string? value = null)
|
||||
{
|
||||
Charset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Content
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" content=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithContent(string? value = null)
|
||||
{
|
||||
Content = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? HttpEquiv
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" http-equiv=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithHttpEquiv(string? value = null)
|
||||
{
|
||||
HttpEquiv = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Name
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" name=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithName(string? value = null)
|
||||
{
|
||||
Name = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meta WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write("/>");
|
||||
}
|
||||
@@ -1,468 +0,0 @@
|
||||
// Auto-generated code. Do not modify manually.
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace AssetRipper.Text.Html;
|
||||
|
||||
public readonly ref partial struct Meter
|
||||
{
|
||||
private const string ElementName = "meter";
|
||||
private readonly TextWriter writer;
|
||||
|
||||
public Meter(TextWriter writer)
|
||||
{
|
||||
this.writer = writer;
|
||||
writer.Write($"<{ElementName}");
|
||||
}
|
||||
|
||||
public string? Accesskey
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" accesskey=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithAccesskey(string? value = null)
|
||||
{
|
||||
Accesskey = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Autocapitalize
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" autocapitalize=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithAutocapitalize(string? value = null)
|
||||
{
|
||||
Autocapitalize = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Class
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" class=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithClass(string? value = null)
|
||||
{
|
||||
Class = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contenteditable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contenteditable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithContenteditable(string? value = null)
|
||||
{
|
||||
Contenteditable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Contextmenu
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" contextmenu=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithContextmenu(string? value = null)
|
||||
{
|
||||
Contextmenu = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Dir
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" dir=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithDir(string? value = null)
|
||||
{
|
||||
Dir = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Draggable
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" draggable=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithDraggable(string? value = null)
|
||||
{
|
||||
Draggable = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Form
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" form=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithForm(string? value = null)
|
||||
{
|
||||
Form = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Hidden
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" hidden=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithHidden(string? value = null)
|
||||
{
|
||||
Hidden = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? High
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" high=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithHigh(string? value = null)
|
||||
{
|
||||
High = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Id
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" id=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithId(string? value = null)
|
||||
{
|
||||
Id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Itemprop
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" itemprop=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithItemprop(string? value = null)
|
||||
{
|
||||
Itemprop = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Lang
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" lang=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithLang(string? value = null)
|
||||
{
|
||||
Lang = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Low
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" low=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithLow(string? value = null)
|
||||
{
|
||||
Low = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Max
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" max=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithMax(string? value = null)
|
||||
{
|
||||
Max = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Min
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" min=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithMin(string? value = null)
|
||||
{
|
||||
Min = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Optimum
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" optimum=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithOptimum(string? value = null)
|
||||
{
|
||||
Optimum = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" role=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithRole(string? value = null)
|
||||
{
|
||||
Role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Slot
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" slot=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithSlot(string? value = null)
|
||||
{
|
||||
Slot = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Spellcheck
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" spellcheck=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithSpellcheck(string? value = null)
|
||||
{
|
||||
Spellcheck = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Style
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" style=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithStyle(string? value = null)
|
||||
{
|
||||
Style = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Tabindex
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" tabindex=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithTabindex(string? value = null)
|
||||
{
|
||||
Tabindex = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" title=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithTitle(string? value = null)
|
||||
{
|
||||
Title = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Translate
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" translate=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithTranslate(string? value = null)
|
||||
{
|
||||
Translate = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public string? Value
|
||||
{
|
||||
set
|
||||
{
|
||||
writer.Write(" value=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
}
|
||||
|
||||
public Meter WithValue(string? value = null)
|
||||
{
|
||||
Value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meter WithCustomAttribute(string key, string? value = null)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meter WithCustomAttributes(scoped ReadOnlySpan<(string, string?)> attributes)
|
||||
{
|
||||
foreach ((string key, string? value) in attributes)
|
||||
{
|
||||
WriteKey(key);
|
||||
WriteValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private void WriteKey(string key)
|
||||
{
|
||||
writer.Write(' ');
|
||||
writer.Write(key);
|
||||
}
|
||||
|
||||
private void WriteValue(string? value)
|
||||
{
|
||||
writer.Write("=\"");
|
||||
writer.Write(value);
|
||||
writer.Write('"');
|
||||
}
|
||||
|
||||
public void Close() => writer.Write($"></{ElementName}>");
|
||||
|
||||
/// <summary>
|
||||
/// End the opening tag, write some text, and write the closing tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text is automatically Html-encoded.
|
||||
/// </remarks>
|
||||
public void Close(string? text)
|
||||
{
|
||||
writer.Write('>');
|
||||
global::System.Net.WebUtility.HtmlEncode(text, writer);
|
||||
writer.Write($"</{ElementName}>");
|
||||
}
|
||||
|
||||
public HtmlElementCloser End()
|
||||
{
|
||||
writer.Write('>');
|
||||
return new HtmlElementCloser(writer, $"</{ElementName}>");
|
||||
}
|
||||
}
|
||||
Loaded 100 of 166 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user