This commit is contained in:
2023-12-29 16:16:05 +08:00
parent 6b88f5bd40
commit c53d2927bb
24 changed files with 909 additions and 386 deletions

View File

@@ -1,4 +1,6 @@
using System.Text.RegularExpressions;
using System.Text;
using System.Text.RegularExpressions;
using ConsoleApp2.Entities;
namespace ConsoleApp2.Helpers;
@@ -73,19 +75,24 @@ public static partial class DumpDataHelper
if (str.StartsWith('\"'))
return false;
var isDigit = true;
var isAllDigit = true;
foreach (var c in str)
{
if (!char.IsAsciiHexDigit(c))
return false;
if (!char.IsNumber(c))
isDigit = false;
isAllDigit = false;
}
if (isDigit)
if (isAllDigit) //避免全数字
return false;
return true;
}
// public static string EliminateEscapeChars(ReadOnlySpan<char> str)
// {
// char[] escapeChars = ['0','\''];
// }
}