diff --git a/SabreTools.Matching/Content/ContentMatchSet.cs b/SabreTools.Matching/Content/ContentMatchSet.cs index f8c72b1..418fddd 100644 --- a/SabreTools.Matching/Content/ContentMatchSet.cs +++ b/SabreTools.Matching/Content/ContentMatchSet.cs @@ -19,8 +19,8 @@ namespace SabreTools.Matching.Content /// A content version method takes the file path, the file contents, /// and a list of found positions and returns a single string. That /// string is either a version string, in which case it will be appended - /// to the protection name, or `null`, in which case it will cause - /// the protection to be omitted. + /// to the match name, or `null`, in which case it will cause + /// the match name to be omitted. /// public Func, string?>? GetArrayVersion { get; } @@ -31,34 +31,34 @@ namespace SabreTools.Matching.Content /// A content version method takes the file path, the file contents, /// and a list of found positions and returns a single string. That /// string is either a version string, in which case it will be appended - /// to the protection name, or `null`, in which case it will cause - /// the protection to be omitted. + /// to the match name, or `null`, in which case it will cause + /// the match name to be omitted. /// public Func, string?>? GetStreamVersion { get; } #region Generic Constructors - public ContentMatchSet(byte?[] needle, string protectionName) - : this([needle], getArrayVersion: null, protectionName) { } + public ContentMatchSet(byte?[] needle, string matchName) + : this([needle], getArrayVersion: null, matchName) { } - public ContentMatchSet(List needles, string protectionName) - : this(needles, getArrayVersion: null, protectionName) { } + public ContentMatchSet(List needles, string matchName) + : this(needles, getArrayVersion: null, matchName) { } - public ContentMatchSet(ContentMatch needle, string protectionName) - : this([needle], getArrayVersion: null, protectionName) { } + public ContentMatchSet(ContentMatch needle, string matchName) + : this([needle], getArrayVersion: null, matchName) { } - public ContentMatchSet(List needles, string protectionName) - : this(needles, getArrayVersion: null, protectionName) { } + public ContentMatchSet(List needles, string matchName) + : this(needles, getArrayVersion: null, matchName) { } #endregion #region Array Constructors - public ContentMatchSet(byte?[] needle, Func, string?>? getArrayVersion, string protectionName) - : this([needle], getArrayVersion, protectionName) { } + public ContentMatchSet(byte?[] needle, Func, string?>? getArrayVersion, string matchName) + : this([needle], getArrayVersion, matchName) { } #if NET20 || NET35 - public ContentMatchSet(List needles, Func, string?>? getArrayVersion, string protectionName) + public ContentMatchSet(List needles, Func, string?>? getArrayVersion, string matchName) { var matchers = new List(); foreach (var n in needles) @@ -68,32 +68,32 @@ namespace SabreTools.Matching.Content Matchers = matchers; GetArrayVersion = getArrayVersion; - MatchName = protectionName; + MatchName = matchName; } #else - public ContentMatchSet(List needles, Func, string?>? getArrayVersion, string protectionName) - : this(needles.Select(n => new ContentMatch(n)).ToList(), getArrayVersion, protectionName) { } + public ContentMatchSet(List needles, Func, string?>? getArrayVersion, string matchName) + : this(needles.Select(n => new ContentMatch(n)).ToList(), getArrayVersion, matchName) { } #endif - public ContentMatchSet(ContentMatch needle, Func, string?>? getArrayVersion, string protectionName) - : this([needle], getArrayVersion, protectionName) { } + public ContentMatchSet(ContentMatch needle, Func, string?>? getArrayVersion, string matchName) + : this([needle], getArrayVersion, matchName) { } - public ContentMatchSet(List needles, Func, string?>? getArrayVersion, string protectionName) + public ContentMatchSet(List needles, Func, string?>? getArrayVersion, string matchName) { Matchers = needles; GetArrayVersion = getArrayVersion; - MatchName = protectionName; + MatchName = matchName; } #endregion #region Stream Constructors - public ContentMatchSet(byte?[] needle, Func, string?>? getStreamVersion, string protectionName) - : this([needle], getStreamVersion, protectionName) { } + public ContentMatchSet(byte?[] needle, Func, string?>? getStreamVersion, string matchName) + : this([needle], getStreamVersion, matchName) { } #if NET20 || NET35 - public ContentMatchSet(List needles, Func, string?>? getStreamVersion, string protectionName) + public ContentMatchSet(List needles, Func, string?>? getStreamVersion, string matchName) { var matchers = new List(); foreach (var n in needles) @@ -103,21 +103,21 @@ namespace SabreTools.Matching.Content Matchers = matchers; GetStreamVersion = getStreamVersion; - MatchName = protectionName; + MatchName = matchName; } #else - public ContentMatchSet(List needles, Func, string?>? getStreamVersion, string protectionName) - : this(needles.Select(n => new ContentMatch(n)).ToList(), getStreamVersion, protectionName) { } + public ContentMatchSet(List needles, Func, string?>? getStreamVersion, string matchName) + : this(needles.Select(n => new ContentMatch(n)).ToList(), getStreamVersion, matchName) { } #endif - public ContentMatchSet(ContentMatch needle, Func, string?>? getStreamVersion, string protectionName) - : this([needle], getStreamVersion, protectionName) { } + public ContentMatchSet(ContentMatch needle, Func, string?>? getStreamVersion, string matchName) + : this([needle], getStreamVersion, matchName) { } - public ContentMatchSet(List needles, Func, string?>? getStreamVersion, string protectionName) + public ContentMatchSet(List needles, Func, string?>? getStreamVersion, string matchName) { Matchers = needles; GetStreamVersion = getStreamVersion; - MatchName = protectionName; + MatchName = matchName; } #endregion diff --git a/SabreTools.Matching/Paths/PathMatchSet.cs b/SabreTools.Matching/Paths/PathMatchSet.cs index fff043c..08e3f74 100644 --- a/SabreTools.Matching/Paths/PathMatchSet.cs +++ b/SabreTools.Matching/Paths/PathMatchSet.cs @@ -17,24 +17,24 @@ namespace SabreTools.Matching.Paths /// /// A path version method takes the matched path and an enumerable of files /// and returns a single string. That string is either a version string, - /// in which case it will be appended to the protection name, or `null`, - /// in which case it will cause the protection to be omitted. + /// in which case it will be appended to the match name, or `null`, + /// in which case it will cause the match name to be omitted. /// public Func?, string?>? GetVersion { get; } #region Constructors - public PathMatchSet(string needle, string protectionName) - : this([needle], null, protectionName) { } + public PathMatchSet(string needle, string matchName) + : this([needle], null, matchName) { } - public PathMatchSet(List needles, string protectionName) - : this(needles, null, protectionName) { } + public PathMatchSet(List needles, string matchName) + : this(needles, null, matchName) { } - public PathMatchSet(string needle, Func?, string?>? getVersion, string protectionName) - : this([needle], getVersion, protectionName) { } + public PathMatchSet(string needle, Func?, string?>? getVersion, string matchName) + : this([needle], getVersion, matchName) { } #if NET20 || NET35 - public PathMatchSet(List needles, Func?, string?>? getVersion, string protectionName) + public PathMatchSet(List needles, Func?, string?>? getVersion, string matchName) { var matchers = new List(); foreach (var n in needles) @@ -44,27 +44,27 @@ namespace SabreTools.Matching.Paths Matchers = matchers; GetVersion = getVersion; - MatchName = protectionName; + MatchName = matchName; } #else - public PathMatchSet(List needles, Func?, string?>? getVersion, string protectionName) - : this(needles.Select(n => new PathMatch(n)).ToList(), getVersion, protectionName) { } + public PathMatchSet(List needles, Func?, string?>? getVersion, string matchName) + : this(needles.Select(n => new PathMatch(n)).ToList(), getVersion, matchName) { } #endif - public PathMatchSet(PathMatch needle, string protectionName) - : this([needle], null, protectionName) { } + public PathMatchSet(PathMatch needle, string matchName) + : this([needle], null, matchName) { } - public PathMatchSet(List needles, string protectionName) - : this(needles, null, protectionName) { } + public PathMatchSet(List needles, string matchName) + : this(needles, null, matchName) { } - public PathMatchSet(PathMatch needle, Func?, string?>? getVersion, string protectionName) - : this([needle], getVersion, protectionName) { } + public PathMatchSet(PathMatch needle, Func?, string?>? getVersion, string matchName) + : this([needle], getVersion, matchName) { } - public PathMatchSet(List needles, Func?, string?>? getVersion, string protectionName) + public PathMatchSet(List needles, Func?, string?>? getVersion, string matchName) { Matchers = needles; GetVersion = getVersion; - MatchName = protectionName; + MatchName = matchName; } #endregion