mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
@@ -42,14 +42,14 @@ namespace NaturalSort
|
||||
string[] x1, y1;
|
||||
if (!table.TryGetValue(x, out x1))
|
||||
{
|
||||
//x1 = Regex.Split(x.Replace(" ", String.Empty), "([0-9]+)");
|
||||
x1 = Regex.Split(x, "([0-9]+)").Where(s => s != String.Empty).ToArray();
|
||||
//x1 = Regex.Split(x.Replace(" ", ""), "([0-9]+)");
|
||||
x1 = Regex.Split(x, "([0-9]+)").Where(s => s != "").ToArray();
|
||||
table.Add(x, x1);
|
||||
}
|
||||
if (!table.TryGetValue(y, out y1))
|
||||
{
|
||||
//y1 = Regex.Split(y.Replace(" ", String.Empty), "([0-9]+)");
|
||||
y1 = Regex.Split(y, "([0-9]+)").Where(s => s != String.Empty).ToArray();
|
||||
//y1 = Regex.Split(y.Replace(" ", ""), "([0-9]+)");
|
||||
y1 = Regex.Split(y, "([0-9]+)").Where(s => s != "").ToArray();
|
||||
table.Add(y, y1);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,14 +42,14 @@ namespace NaturalSort
|
||||
string[] x1, y1;
|
||||
if (!table.TryGetValue(x, out x1))
|
||||
{
|
||||
//x1 = Regex.Split(x.Replace(" ", String.Empty), "([0-9]+)");
|
||||
x1 = Regex.Split(x, "([0-9]+)").Where(s => s != String.Empty).ToArray();
|
||||
//x1 = Regex.Split(x.Replace(" ", ""), "([0-9]+)");
|
||||
x1 = Regex.Split(x, "([0-9]+)").Where(s => s != "").ToArray();
|
||||
table.Add(x, x1);
|
||||
}
|
||||
if (!table.TryGetValue(y, out y1))
|
||||
{
|
||||
//y1 = Regex.Split(y.Replace(" ", String.Empty), "([0-9]+)");
|
||||
y1 = Regex.Split(y, "([0-9]+)").Where(s => s != String.Empty).ToArray();
|
||||
//y1 = Regex.Split(y.Replace(" ", ""), "([0-9]+)");
|
||||
y1 = Regex.Split(y, "([0-9]+)").Where(s => s != "").ToArray();
|
||||
table.Add(y, y1);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace ROMVault2.SupportedFiles.Zip
|
||||
|
||||
public string ZipFilename
|
||||
{
|
||||
get { return (_zipFileInfo != null ? _zipFileInfo.FullName : String.Empty); }
|
||||
get { return (_zipFileInfo != null ? _zipFileInfo.FullName : ""); }
|
||||
}
|
||||
public long TimeStamp
|
||||
{
|
||||
@@ -944,7 +944,7 @@ namespace ROMVault2.SupportedFiles.Zip
|
||||
switch (zr)
|
||||
{
|
||||
case ZipReturn.ZipGood:
|
||||
ret = String.Empty;
|
||||
ret = "";
|
||||
break;
|
||||
case ZipReturn.ZipFileCountError:
|
||||
ret = "The number of file in the Zip does not mach the number of files in the Zips Centeral Directory";
|
||||
|
||||
4
SabreTools.Helper/External/Zlib/Deflate.cs
vendored
4
SabreTools.Helper/External/Zlib/Deflate.cs
vendored
@@ -153,14 +153,14 @@ namespace Ionic.Zlib
|
||||
{
|
||||
"need dictionary",
|
||||
"stream end",
|
||||
String.Empty,
|
||||
"",
|
||||
"file error",
|
||||
"stream error",
|
||||
"data error",
|
||||
"insufficient memory",
|
||||
"buffer error",
|
||||
"incompatible version",
|
||||
String.Empty
|
||||
""
|
||||
};
|
||||
|
||||
// preset dictionary flag in zlib header
|
||||
|
||||
Reference in New Issue
Block a user