From 102d45fa636b1b09ad3da3a9412952cefade4d8d Mon Sep 17 00:00:00 2001 From: nsnail Date: Sat, 17 Dec 2022 11:49:45 +0800 Subject: [PATCH] .. --- git-clean.cmd | 3 ++- src/Text/Main.Output.cs | 26 -------------------------- src/Text/Main.cs | 25 ++++++++++++++++++++++--- 3 files changed, 24 insertions(+), 30 deletions(-) delete mode 100644 src/Text/Main.Output.cs diff --git a/git-clean.cmd b/git-clean.cmd index 5f7b39a..07b006c 100644 --- a/git-clean.cmd +++ b/git-clean.cmd @@ -1 +1,2 @@ -git reset --hard | git clean -d -fx . \ No newline at end of file +git reset --hard +git clean -d -fx . \ No newline at end of file diff --git a/src/Text/Main.Output.cs b/src/Text/Main.Output.cs deleted file mode 100644 index e41fcee..0000000 --- a/src/Text/Main.Output.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace Dot.Text; - -internal sealed partial class Main -{ - private ref struct Output - { - public ReadOnlySpan AndUnicode; - public ReadOnlySpan BacksLantUnicode; - public ReadOnlySpan Base64; - public ReadOnlySpan Base64DeCode; - public ReadOnlySpan Base64DeCodeHex; - public ReadOnlySpan EncodingName; - public ReadOnlySpan Hex; - public ReadOnlySpan HtmlDecode; - public ReadOnlySpan HtmlEncode; - public ReadOnlySpan Md5; - public ReadOnlySpan OriginText; - public ReadOnlySpan PercentUnicode; - public ReadOnlySpan Sha1; - public ReadOnlySpan Sha256; - public ReadOnlySpan Sha512; - public ReadOnlySpan UnicodeDecode; - public ReadOnlySpan UrlDecode; - public ReadOnlySpan UrlEncode; - } -} \ No newline at end of file diff --git a/src/Text/Main.cs b/src/Text/Main.cs index 6433e7a..e3eaca2 100644 --- a/src/Text/Main.cs +++ b/src/Text/Main.cs @@ -1,6 +1,5 @@ // ReSharper disable ClassNeverInstantiated.Global -using System.Globalization; using System.Security.Cryptography; using System.Text; using NSExt.Extensions; @@ -13,7 +12,7 @@ namespace Dot.Text; [Description(nameof(Str.TextTool))] [Localization(typeof(Str))] -internal sealed partial class Main : ToolBase