From 7ccedbeac5eee7a70b99ad39e84ff7b0cb1f6823 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 30 Sep 2025 21:25:56 -0400 Subject: [PATCH] Move Compare to better namespace --- README.MD | 8 ++++---- SabreTools.IO.Test/Compare/NaturalComparerTests.cs | 2 +- SabreTools.IO.Test/Compare/NaturalComparerUtilTests.cs | 2 +- .../Compare/NaturalReversedComparerTests.cs | 2 +- SabreTools.IO/Compare/NaturalComparer.cs | 2 +- SabreTools.IO/Compare/NaturalComparerUtil.cs | 2 +- SabreTools.IO/Compare/NaturalReversedComparer.cs | 2 +- SabreTools.IO/PathTool.cs | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.MD b/README.MD index ba3b50c..b0159be 100644 --- a/README.MD +++ b/README.MD @@ -14,10 +14,6 @@ Below are a list of the included namespaces and their overall utility. Generic helper classes that involve custom functionality and utility. -### `SabreTools.IO.Compare` - -Classes focused on string comparison by natural sorting. For example, "5" would be sorted before "100". - ### `SabreTools.IO.Compression` Various compression implementations that are used across multiple projects. Most of the implementations are be ports of existing C and C++ code. @@ -96,6 +92,10 @@ Custom `Stream` implementations that are required for specialized use: - `ReadOnlyCompositeStream`: A readonly stream implementation that wraps multiple source streams in a set order - `ViewStream`: A readonly stream implementation representing a view into source data +### `SabreTools.Text.Compare` + +Classes focused on string comparison by natural sorting. For example, "5" would be sorted before "100". + ## Releases For the most recent stable build, download the latest release here: [Releases Page](https://github.com/SabreTools/SabreTools.IO/releases) diff --git a/SabreTools.IO.Test/Compare/NaturalComparerTests.cs b/SabreTools.IO.Test/Compare/NaturalComparerTests.cs index 67bdea6..fe3f7c9 100644 --- a/SabreTools.IO.Test/Compare/NaturalComparerTests.cs +++ b/SabreTools.IO.Test/Compare/NaturalComparerTests.cs @@ -1,6 +1,6 @@ using System; using System.Linq; -using SabreTools.IO.Compare; +using SabreTools.Text.Compare; using Xunit; namespace SabreTools.IO.Test.Compare diff --git a/SabreTools.IO.Test/Compare/NaturalComparerUtilTests.cs b/SabreTools.IO.Test/Compare/NaturalComparerUtilTests.cs index 718a69b..b4ae1c8 100644 --- a/SabreTools.IO.Test/Compare/NaturalComparerUtilTests.cs +++ b/SabreTools.IO.Test/Compare/NaturalComparerUtilTests.cs @@ -1,4 +1,4 @@ -using SabreTools.IO.Compare; +using SabreTools.Text.Compare; using Xunit; namespace SabreTools.IO.Test.Compare diff --git a/SabreTools.IO.Test/Compare/NaturalReversedComparerTests.cs b/SabreTools.IO.Test/Compare/NaturalReversedComparerTests.cs index 420e2ea..dab7e5e 100644 --- a/SabreTools.IO.Test/Compare/NaturalReversedComparerTests.cs +++ b/SabreTools.IO.Test/Compare/NaturalReversedComparerTests.cs @@ -1,6 +1,6 @@ using System; using System.Linq; -using SabreTools.IO.Compare; +using SabreTools.Text.Compare; using Xunit; namespace SabreTools.IO.Test.Compare diff --git a/SabreTools.IO/Compare/NaturalComparer.cs b/SabreTools.IO/Compare/NaturalComparer.cs index 7c3f4a9..b3eca51 100644 --- a/SabreTools.IO/Compare/NaturalComparer.cs +++ b/SabreTools.IO/Compare/NaturalComparer.cs @@ -13,7 +13,7 @@ using System; using System.Collections.Generic; using System.Text.RegularExpressions; -namespace SabreTools.IO.Compare +namespace SabreTools.Text.Compare { public class NaturalComparer : Comparer, IDisposable { diff --git a/SabreTools.IO/Compare/NaturalComparerUtil.cs b/SabreTools.IO/Compare/NaturalComparerUtil.cs index 7b8ab34..481c8f1 100644 --- a/SabreTools.IO/Compare/NaturalComparerUtil.cs +++ b/SabreTools.IO/Compare/NaturalComparerUtil.cs @@ -1,4 +1,4 @@ -namespace SabreTools.IO.Compare +namespace SabreTools.Text.Compare { internal static class NaturalComparerUtil { diff --git a/SabreTools.IO/Compare/NaturalReversedComparer.cs b/SabreTools.IO/Compare/NaturalReversedComparer.cs index 9c72585..38be07f 100644 --- a/SabreTools.IO/Compare/NaturalReversedComparer.cs +++ b/SabreTools.IO/Compare/NaturalReversedComparer.cs @@ -13,7 +13,7 @@ using System; using System.Collections.Generic; using System.Text.RegularExpressions; -namespace SabreTools.IO.Compare +namespace SabreTools.Text.Compare { public class NaturalReversedComparer : Comparer, IDisposable { diff --git a/SabreTools.IO/PathTool.cs b/SabreTools.IO/PathTool.cs index 6f47db4..ebf15c7 100644 --- a/SabreTools.IO/PathTool.cs +++ b/SabreTools.IO/PathTool.cs @@ -2,8 +2,8 @@ using System; using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; -using SabreTools.IO.Compare; using SabreTools.IO.Extensions; +using SabreTools.Text.Compare; namespace SabreTools.IO {