diff --git a/csharp/Platform.RegularExpressions.Transformer.Tests/FileTransformerTests.cs b/csharp/Platform.RegularExpressions.Transformer.Tests/FileTransformerTests.cs
index 0563f88..1fb387c 100644
--- a/csharp/Platform.RegularExpressions.Transformer.Tests/FileTransformerTests.cs
+++ b/csharp/Platform.RegularExpressions.Transformer.Tests/FileTransformerTests.cs
@@ -7,7 +7,6 @@ namespace Platform.RegularExpressions.Transformer.Tests
///
/// Represents the file transformer tests.
///
- ///
///
public class FileTransformerTests
{
@@ -15,7 +14,6 @@ public class FileTransformerTests
///
/// Tests that folder to folder transfomation test.
///
- ///
///
[Fact]
public void FolderToFolderTransfomationTest()
diff --git a/csharp/Platform.RegularExpressions.Transformer.Tests/MarkovAlgorithmsTests.cs b/csharp/Platform.RegularExpressions.Transformer.Tests/MarkovAlgorithmsTests.cs
index a7310b1..aacbbb9 100644
--- a/csharp/Platform.RegularExpressions.Transformer.Tests/MarkovAlgorithmsTests.cs
+++ b/csharp/Platform.RegularExpressions.Transformer.Tests/MarkovAlgorithmsTests.cs
@@ -7,7 +7,6 @@ namespace Platform.RegularExpressions.Transformer.Tests
///
/// Represents the markov algorithms tests.
///
- ///
///
public class MarkovAlgorithmsTests
{
@@ -21,7 +20,7 @@ public void BinaryToUnaryNumbersTest()
{
("1", "0|", int.MaxValue), // "1" -> "0|" repeated forever
// | symbol should be escaped for regular expression pattern, but not in the substitution pattern
- (@"\|0", "0||", int.MaxValue), // "\|0" -> "0||" repeated forever
+ (@"\|0", "0||", int.MaxValue), // "\|0" -> "0||" repeated forever
("0", "", int.MaxValue), // "0" -> "" repeated forever
};
var transformer = new TextTransformer(rules);
diff --git a/csharp/Platform.RegularExpressions.Transformer.Tests/SubstitutionRuleTests.cs b/csharp/Platform.RegularExpressions.Transformer.Tests/SubstitutionRuleTests.cs
index 2c9e2fc..26ef334 100644
--- a/csharp/Platform.RegularExpressions.Transformer.Tests/SubstitutionRuleTests.cs
+++ b/csharp/Platform.RegularExpressions.Transformer.Tests/SubstitutionRuleTests.cs
@@ -7,7 +7,6 @@ namespace Platform.RegularExpressions.Transformer.Tests
///
/// Represents the substitution rule tests.
///
- ///
///
public class SubstitutionRuleTests
{
@@ -15,7 +14,6 @@ public class SubstitutionRuleTests
///
/// Tests that options override test.
///
- ///
///
[Fact]
public void OptionsOverrideTest()
diff --git a/csharp/Platform.RegularExpressions.Transformer.Tests/TextTransformerTests.cs b/csharp/Platform.RegularExpressions.Transformer.Tests/TextTransformerTests.cs
index 17786fc..422944c 100644
--- a/csharp/Platform.RegularExpressions.Transformer.Tests/TextTransformerTests.cs
+++ b/csharp/Platform.RegularExpressions.Transformer.Tests/TextTransformerTests.cs
@@ -9,7 +9,6 @@ namespace Platform.RegularExpressions.Transformer.Tests
///
/// Represents the text transformer tests.
///
- ///
///
public class TextTransformerTests
{
@@ -17,7 +16,6 @@ public class TextTransformerTests
///
/// Tests that debug output test.
///
- ///
///
[Fact]
public void DebugOutputTest()
@@ -42,7 +40,6 @@ public void DebugOutputTest()
///
/// Tests that debug files output test.
///
- ///
///
[Fact]
public void DebugFilesOutputTest()
@@ -67,23 +64,18 @@ public void DebugFilesOutputTest()
///
/// Checks the and clean up two rules files using the specified first step reference text.
///
- ///
///
///
/// The first step reference text.
- ///
///
///
/// The second step reference text.
- ///
///
///
/// The transformer.
- ///
///
///
/// The target filename.
- ///
///
private static void CheckAndCleanUpTwoRulesFiles(string firstStepReferenceText, string secondStepReferenceText, TextTransformer transformer, string targetFilename)
{
@@ -112,7 +104,6 @@ private static void CheckAndCleanUpTwoRulesFiles(string firstStepReferenceText,
///
/// Tests that files with no changes skiped test.
///
- ///
///
[Fact]
public void FilesWithNoChangesSkipedTest()
@@ -138,23 +129,18 @@ public void FilesWithNoChangesSkipedTest()
///
/// Checks the and clean up three rules files using the specified first step reference text.
///
- ///
///
///
/// The first step reference text.
- ///
///
///
/// The third step reference text.
- ///
///
///
/// The transformer.
- ///
///
///
/// The target filename.
- ///
///
private static void CheckAndCleanUpThreeRulesFiles(string firstStepReferenceText, string thirdStepReferenceText, TextTransformer transformer, string targetFilename)
{
@@ -189,7 +175,6 @@ private static void CheckAndCleanUpThreeRulesFiles(string firstStepReferenceText
///
/// Tests that debug output using transformers generation test.
///
- ///
///
[Fact]
public void DebugOutputUsingTransformersGenerationTest()
@@ -214,7 +199,6 @@ public void DebugOutputUsingTransformersGenerationTest()
///
/// Tests that debug files output using transformers generation test.
///
- ///
///
[Fact]
public void DebugFilesOutputUsingTransformersGenerationTest()
@@ -239,7 +223,6 @@ public void DebugFilesOutputUsingTransformersGenerationTest()
///
/// Tests that files with no changes skiped when using transformers generation test.
///
- ///
///
[Fact]
public void FilesWithNoChangesSkipedWhenUsingTransformersGenerationTest()
diff --git a/csharp/Platform.RegularExpressions.Transformer/FileTransformer.cs b/csharp/Platform.RegularExpressions.Transformer/FileTransformer.cs
index a0a6246..d8d61d5 100644
--- a/csharp/Platform.RegularExpressions.Transformer/FileTransformer.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/FileTransformer.cs
@@ -14,7 +14,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the file transformer.
///
- ///
///
///
public class FileTransformer : IFileTransformer
@@ -23,7 +22,6 @@ public class FileTransformer : IFileTransformer
///
/// The text transformer.
///
- ///
///
protected readonly ITextTransformer _textTransformer;
@@ -31,7 +29,6 @@ public class FileTransformer : IFileTransformer
///
/// Gets or sets the source file extension value.
///
- ///
///
public string SourceFileExtension
{
@@ -45,7 +42,6 @@ public string SourceFileExtension
///
/// Gets or sets the target file extension value.
///
- ///
///
public string TargetFileExtension
{
@@ -59,7 +55,6 @@ public string TargetFileExtension
///
/// Gets the rules value.
///
- ///
///
public IList Rules
{
@@ -71,19 +66,15 @@ public IList Rules
///
/// Initializes a new instance.
///
- ///
///
///
/// A text transformer.
- ///
///
///
/// A source file extension.
- ///
///
///
/// A target file extension.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public FileTransformer(ITextTransformer textTransformer, string sourceFileExtension, string targetFileExtension)
@@ -97,19 +88,15 @@ public FileTransformer(ITextTransformer textTransformer, string sourceFileExtens
///
/// Transforms the source path.
///
- ///
///
///
/// The source path.
- ///
///
///
/// The target path.
- ///
///
///
- ///
- ///
+ /// Thrown when the path type is not supported.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Transform(string sourcePath, string targetPath)
@@ -163,15 +150,12 @@ public void Transform(string sourcePath, string targetPath)
///
/// Transforms the folder using the specified source path.
///
- ///
///
///
/// The source path.
- ///
///
///
/// The target path.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected virtual void TransformFolder(string sourcePath, string targetPath)
@@ -207,15 +191,12 @@ protected virtual void TransformFolder(string sourcePath, string targetPath)
///
/// Transforms the file using the specified source path.
///
- ///
///
///
/// The source path.
- ///
///
///
/// The target path.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected virtual void TransformFile(string sourcePath, string targetPath)
@@ -238,19 +219,15 @@ protected virtual void TransformFile(string sourcePath, string targetPath)
///
/// Gets the target file name using the specified source path.
///
- ///
///
///
/// The source path.
- ///
///
///
/// The target directory.
- ///
///
///
/// The string
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected string GetTargetFileName(string sourcePath, string targetDirectory) => Path.ChangeExtension(Path.Combine(targetDirectory, Path.GetFileName(sourcePath)), TargetFileExtension);
@@ -259,19 +236,15 @@ protected virtual void TransformFile(string sourcePath, string targetPath)
///
/// Counts the files recursively using the specified path.
///
- ///
///
///
/// The path.
- ///
///
///
/// The extension.
- ///
///
///
/// The result.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static long CountFilesRecursively(string path, string extension)
@@ -297,19 +270,15 @@ private static long CountFilesRecursively(string path, string extension)
///
/// Determines whether file extension matches.
///
- ///
///
///
/// The file.
- ///
///
///
/// The extension.
- ///
///
///
/// The bool
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool FileExtensionMatches(string file, string extension) => file.EndsWith(extension, StringComparison.OrdinalIgnoreCase);
@@ -318,11 +287,9 @@ private static long CountFilesRecursively(string path, string extension)
///
/// Ensures the target file directory exists using the specified target path.
///
- ///
///
///
/// The target path.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void EnsureTargetFileDirectoryExists(string targetPath)
@@ -337,11 +304,9 @@ private static void EnsureTargetFileDirectoryExists(string targetPath)
///
/// Ensures the target directory exists using the specified target path.
///
- ///
///
///
/// The target path.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void EnsureTargetDirectoryExists(string targetPath) => EnsureTargetDirectoryExists(targetPath, DirectoryExists(targetPath));
@@ -350,15 +315,12 @@ private static void EnsureTargetFileDirectoryExists(string targetPath)
///
/// Ensures the target directory exists using the specified target path.
///
- ///
///
///
/// The target path.
- ///
///
///
/// The target directory exists.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void EnsureTargetDirectoryExists(string targetPath, bool targetDirectoryExists)
@@ -373,15 +335,12 @@ private static void EnsureTargetDirectoryExists(string targetPath, bool targetDi
///
/// Ensures the source file exists using the specified source path.
///
- ///
///
///
/// The source path.
- ///
///
///
/// Source file does not exists.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void EnsureSourceFileExists(string sourcePath)
@@ -396,11 +355,9 @@ private static void EnsureSourceFileExists(string sourcePath)
///
/// Ensures the directory is created using the specified target path.
///
- ///
///
///
/// The target path.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void EnsureDirectoryIsCreated(string targetPath) => Directory.CreateDirectory(Path.GetDirectoryName(targetPath));
@@ -409,15 +366,12 @@ private static void EnsureSourceFileExists(string sourcePath)
///
/// Determines whether directory exists.
///
- ///
///
///
/// The path.
- ///
///
///
/// The bool
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool DirectoryExists(string path) => Directory.Exists(path) && File.GetAttributes(path).HasFlag(FileAttributes.Directory);
@@ -426,15 +380,12 @@ private static void EnsureSourceFileExists(string sourcePath)
///
/// Determines whether looks like directory path.
///
- ///
///
///
/// The path.
- ///
///
///
/// The bool
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool LooksLikeDirectoryPath(string path) => path.EndsWith(Path.DirectorySeparatorChar.ToString()) || path.EndsWith(Path.AltDirectorySeparatorChar.ToString());
diff --git a/csharp/Platform.RegularExpressions.Transformer/IFileTransformer.cs b/csharp/Platform.RegularExpressions.Transformer/IFileTransformer.cs
index 7ceb47d..56cce75 100644
--- a/csharp/Platform.RegularExpressions.Transformer/IFileTransformer.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/IFileTransformer.cs
@@ -8,7 +8,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Defines the file transformer.
///
- ///
///
///
public interface IFileTransformer : ITransformer
@@ -17,7 +16,6 @@ public interface IFileTransformer : ITransformer
///
/// Gets the source file extension value.
///
- ///
///
string SourceFileExtension
{
@@ -29,7 +27,6 @@ string SourceFileExtension
///
/// Gets the target file extension value.
///
- ///
///
string TargetFileExtension
{
@@ -41,15 +38,12 @@ string TargetFileExtension
///
/// Transforms the source path.
///
- ///
///
///
/// The source path.
- ///
///
///
/// The target path.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
void Transform(string sourcePath, string targetPath);
diff --git a/csharp/Platform.RegularExpressions.Transformer/ISubstitutionRule.cs b/csharp/Platform.RegularExpressions.Transformer/ISubstitutionRule.cs
index f24e825..70be955 100644
--- a/csharp/Platform.RegularExpressions.Transformer/ISubstitutionRule.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/ISubstitutionRule.cs
@@ -9,7 +9,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Defines the substitution rule.
///
- ///
///
public interface ISubstitutionRule
{
@@ -17,7 +16,6 @@ public interface ISubstitutionRule
///
/// Gets the match pattern value.
///
- ///
///
Regex MatchPattern
{
@@ -29,7 +27,6 @@ Regex MatchPattern
///
/// Gets the substitution pattern value.
///
- ///
///
string SubstitutionPattern
{
@@ -41,7 +38,6 @@ string SubstitutionPattern
///
/// Gets the maximum repeat count value.
///
- ///
///
int MaximumRepeatCount
{
@@ -49,4 +45,4 @@ int MaximumRepeatCount
get;
}
}
-}
\ No newline at end of file
+}
diff --git a/csharp/Platform.RegularExpressions.Transformer/ITextTransformer.cs b/csharp/Platform.RegularExpressions.Transformer/ITextTransformer.cs
index 22107ed..42114d9 100644
--- a/csharp/Platform.RegularExpressions.Transformer/ITextTransformer.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/ITextTransformer.cs
@@ -8,7 +8,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Defines the text transformer.
///
- ///
///
///
public interface ITextTransformer : ITransformer
@@ -17,15 +16,12 @@ public interface ITextTransformer : ITransformer
///
/// Transforms the source text.
///
- ///
///
///
/// The source text.
- ///
///
///
/// The string
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
string Transform(string sourceText);
diff --git a/csharp/Platform.RegularExpressions.Transformer/ITextTransformerExtensions.cs b/csharp/Platform.RegularExpressions.Transformer/ITextTransformerExtensions.cs
index 7322bdf..654dca1 100644
--- a/csharp/Platform.RegularExpressions.Transformer/ITextTransformerExtensions.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/ITextTransformerExtensions.cs
@@ -12,7 +12,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the text transformer extensions.
///
- ///
///
public static class ITextTransformerExtensions
{
@@ -20,15 +19,12 @@ public static class ITextTransformerExtensions
///
/// Generates the transformers for each rule using the specified transformer.
///
- ///
///
///
/// The transformer.
- ///
///
///
/// The transformers.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IList GenerateTransformersForEachRule(this ITextTransformer transformer)
@@ -45,19 +41,15 @@ public static IList GenerateTransformersForEachRule(this IText
///
/// Gets the steps using the specified transformer.
///
- ///
///
///
/// The transformer.
- ///
///
///
/// The source text.
- ///
///
///
/// A list of string
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IList GetSteps(this ITextTransformer transformer, string sourceText)
@@ -82,23 +74,18 @@ public static IList GetSteps(this ITextTransformer transformer, string s
///
/// Writes the steps to files using the specified transformer.
///
- ///
///
///
/// The transformer.
- ///
///
///
/// The source text.
- ///
///
///
/// The target path.
- ///
///
///
/// The skip files with no changes.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void WriteStepsToFiles(this ITextTransformer transformer, string sourceText, string targetPath, bool skipFilesWithNoChanges)
diff --git a/csharp/Platform.RegularExpressions.Transformer/ITextTransformersListExtensions.cs b/csharp/Platform.RegularExpressions.Transformer/ITextTransformersListExtensions.cs
index 74d8f6a..058dd8d 100644
--- a/csharp/Platform.RegularExpressions.Transformer/ITextTransformersListExtensions.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/ITextTransformersListExtensions.cs
@@ -11,7 +11,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the text transformers list extensions.
///
- ///
///
public static class ITextTransformersListExtensions
{
@@ -19,19 +18,15 @@ public static class ITextTransformersListExtensions
///
/// Transforms the with all using the specified transformers.
///
- ///
///
///
/// The transformers.
- ///
///
///
/// The source.
- ///
///
///
/// A list of string
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IList TransformWithAll(this IList transformers, string source)
@@ -55,23 +50,18 @@ public static IList TransformWithAll(this IList transf
///
/// Transforms the with all to files using the specified transformers.
///
- ///
///
///
/// The transformers.
- ///
///
///
/// The source text.
- ///
///
///
/// The target path.
- ///
///
///
/// The skip files with no changes.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void TransformWithAllToFiles(this IList transformers, string sourceText, string targetPath, bool skipFilesWithNoChanges)
diff --git a/csharp/Platform.RegularExpressions.Transformer/ITransformer.cs b/csharp/Platform.RegularExpressions.Transformer/ITransformer.cs
index 24407c5..62face8 100644
--- a/csharp/Platform.RegularExpressions.Transformer/ITransformer.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/ITransformer.cs
@@ -9,7 +9,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Defines the transformer.
///
- ///
///
public interface ITransformer
{
@@ -17,7 +16,6 @@ public interface ITransformer
///
/// Gets the rules value.
///
- ///
///
IList Rules
{
diff --git a/csharp/Platform.RegularExpressions.Transformer/LoggingFileTransformer.cs b/csharp/Platform.RegularExpressions.Transformer/LoggingFileTransformer.cs
index c059af6..c19797a 100644
--- a/csharp/Platform.RegularExpressions.Transformer/LoggingFileTransformer.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/LoggingFileTransformer.cs
@@ -10,7 +10,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the logging file transformer.
///
- ///
///
///
public class LoggingFileTransformer : FileTransformer
@@ -19,19 +18,15 @@ public class LoggingFileTransformer : FileTransformer
///
/// Initializes a new instance.
///
- ///
///
///
/// A text transformer.
- ///
///
///
/// A source file extension.
- ///
///
///
/// A target file extension.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public LoggingFileTransformer(ITextTransformer textTransformer, string sourceFileExtension, string targetFileExtension) : base(textTransformer, sourceFileExtension, targetFileExtension) { }
@@ -40,15 +35,12 @@ public LoggingFileTransformer(ITextTransformer textTransformer, string sourceFil
///
/// Transforms the file using the specified source path.
///
- ///
///
///
/// The source path.
- ///
///
///
/// The target path.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected override void TransformFile(string sourcePath, string targetPath)
diff --git a/csharp/Platform.RegularExpressions.Transformer/RegexExtensions.cs b/csharp/Platform.RegularExpressions.Transformer/RegexExtensions.cs
index fd56eb9..2a4a3f9 100644
--- a/csharp/Platform.RegularExpressions.Transformer/RegexExtensions.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/RegexExtensions.cs
@@ -10,7 +10,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the regex extensions.
///
- ///
///
public static class RegexExtensions
{
@@ -18,23 +17,18 @@ public static class RegexExtensions
///
/// Overrides the options using the specified regex.
///
- ///
///
///
/// The regex.
- ///
///
///
/// The options.
- ///
///
///
/// The match timeout.
- ///
///
///
/// The regex
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Regex OverrideOptions(this Regex regex, RegexOptions options, TimeSpan matchTimeout)
diff --git a/csharp/Platform.RegularExpressions.Transformer/Steps.cs b/csharp/Platform.RegularExpressions.Transformer/Steps.cs
index 40e736d..d7388fd 100644
--- a/csharp/Platform.RegularExpressions.Transformer/Steps.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/Steps.cs
@@ -9,7 +9,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the steps.
///
- ///
///
public static class Steps
{
@@ -17,19 +16,15 @@ public static class Steps
///
/// Deletes the all steps using the specified directory name.
///
- ///
///
///
/// The directory name.
- ///
///
///
/// The target filename.
- ///
///
///
/// The target extension.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void DeleteAllSteps(string directoryName, string targetFilename, string targetExtension)
@@ -42,39 +37,30 @@ public static void DeleteAllSteps(string directoryName, string targetFilename, s
///
/// Writes the step using the specified transformer.
///
- ///
///
///
/// The transformer.
- ///
///
///
/// The directory name.
- ///
///
///
/// The target filename.
- ///
///
///
/// The target extension.
- ///
///
///
/// The current step.
- ///
///
///
/// The last text.
- ///
///
///
/// The new text.
- ///
///
///
/// The skip files with no changes.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void WriteStep(ITransformer transformer, string directoryName, string targetFilename, string targetExtension, int currentStep, ref string lastText, string newText, bool skipFilesWithNoChanges)
diff --git a/csharp/Platform.RegularExpressions.Transformer/StringExtensions.cs b/csharp/Platform.RegularExpressions.Transformer/StringExtensions.cs
index cddbeb1..55ac7e7 100644
--- a/csharp/Platform.RegularExpressions.Transformer/StringExtensions.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/StringExtensions.cs
@@ -10,7 +10,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the string extensions.
///
- ///
///
internal static class StringExtensions
{
@@ -18,23 +17,18 @@ internal static class StringExtensions
///
/// Gets the path parts using the specified path.
///
- ///
///
///
/// The path.
- ///
///
///
/// The directory name.
- ///
///
///
/// The target filename.
- ///
///
///
/// The target extension.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void GetPathParts(this string path, out string directoryName, out string targetFilename, out string targetExtension) => (directoryName, targetFilename, targetExtension) = (Path.GetDirectoryName(path), Path.GetFileNameWithoutExtension(path), Path.GetExtension(path));
@@ -43,19 +37,15 @@ internal static class StringExtensions
///
/// Writes the to file using the specified text.
///
- ///
///
///
/// The text.
- ///
///
///
/// The directory name.
- ///
///
///
/// The target filename.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void WriteToFile(this string text, string directoryName, string targetFilename) => File.WriteAllText(Path.Combine(directoryName, targetFilename), text, Encoding.UTF8);
diff --git a/csharp/Platform.RegularExpressions.Transformer/SubstitutionRule.cs b/csharp/Platform.RegularExpressions.Transformer/SubstitutionRule.cs
index 150343a..0268df6 100644
--- a/csharp/Platform.RegularExpressions.Transformer/SubstitutionRule.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/SubstitutionRule.cs
@@ -11,7 +11,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the substitution rule.
///
- ///
///
///
public class SubstitutionRule : ISubstitutionRule
@@ -20,14 +19,12 @@ public class SubstitutionRule : ISubstitutionRule
///
/// The from minutes.
///
- ///
///
public static readonly TimeSpan DefaultMatchTimeout = TimeSpan.FromMinutes(5);
///
///
/// The multiline.
///
- ///
///
public static readonly RegexOptions DefaultMatchPatternRegexOptions = RegexOptions.Compiled | RegexOptions.Multiline;
@@ -35,7 +32,6 @@ public class SubstitutionRule : ISubstitutionRule
///
/// Gets or sets the match pattern value.
///
- ///
///
public Regex MatchPattern
{
@@ -49,7 +45,6 @@ public Regex MatchPattern
///
/// Gets or sets the substitution pattern value.
///
- ///
///
public string SubstitutionPattern
{
@@ -63,7 +58,6 @@ public string SubstitutionPattern
///
/// Gets or sets the path pattern value.
///
- ///
///
public Regex PathPattern
{
@@ -77,7 +71,6 @@ public Regex PathPattern
///
/// Gets or sets the maximum repeat count value.
///
- ///
///
public int MaximumRepeatCount
{
@@ -91,27 +84,21 @@ public int MaximumRepeatCount
///
/// Initializes a new instance.
///
- ///
///
///
/// A match pattern.
- ///
///
///
/// A substitution pattern.
- ///
///
///
/// A maximum repeat count.
- ///
///
///
/// A match pattern options.
- ///
///
///
/// A match timeout.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public SubstitutionRule(Regex matchPattern, string substitutionPattern, int maximumRepeatCount, RegexOptions? matchPatternOptions, TimeSpan? matchTimeout)
@@ -126,23 +113,18 @@ public SubstitutionRule(Regex matchPattern, string substitutionPattern, int maxi
///
/// Initializes a new instance.
///
- ///
///
///
/// A match pattern.
- ///
///
///
/// A substitution pattern.
- ///
///
///
/// A maximum repeat count.
- ///
///
///
/// A use default options.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public SubstitutionRule(Regex matchPattern, string substitutionPattern, int maximumRepeatCount, bool useDefaultOptions) : this(matchPattern, substitutionPattern, maximumRepeatCount, useDefaultOptions ? DefaultMatchPatternRegexOptions : (RegexOptions?)null, useDefaultOptions ? DefaultMatchTimeout : (TimeSpan?)null) { }
@@ -151,19 +133,15 @@ public SubstitutionRule(Regex matchPattern, string substitutionPattern, int maxi
///
/// Initializes a new instance.
///
- ///
///
///
/// A match pattern.
- ///
///
///
/// A substitution pattern.
- ///
///
///
/// A maximum repeat count.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public SubstitutionRule(Regex matchPattern, string substitutionPattern, int maximumRepeatCount) : this(matchPattern, substitutionPattern, maximumRepeatCount, true) { }
@@ -172,15 +150,12 @@ public SubstitutionRule(Regex matchPattern, string substitutionPattern, int maxi
///
/// Initializes a new instance.
///
- ///
///
///
/// A match pattern.
- ///
///
///
/// A substitution pattern.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public SubstitutionRule(Regex matchPattern, string substitutionPattern) : this(matchPattern, substitutionPattern, 0) { }
@@ -201,15 +176,12 @@ public SubstitutionRule(Regex matchPattern, string substitutionPattern) : this(m
///
/// Overrides the match pattern options using the specified options.
///
- ///
///
///
/// The options.
- ///
///
///
/// The match timeout.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void OverrideMatchPatternOptions(RegexOptions options, TimeSpan matchTimeout) => MatchPattern = MatchPattern.OverrideOptions(options, matchTimeout);
@@ -218,15 +190,12 @@ public SubstitutionRule(Regex matchPattern, string substitutionPattern) : this(m
///
/// Overrides the path pattern options using the specified options.
///
- ///
///
///
/// The options.
- ///
///
///
/// The match timeout.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void OverridePathPatternOptions(RegexOptions options, TimeSpan matchTimeout) => PathPattern = PathPattern.OverrideOptions(options, matchTimeout);
@@ -235,11 +204,9 @@ public SubstitutionRule(Regex matchPattern, string substitutionPattern) : this(m
///
/// Returns the string.
///
- ///
///
///
/// The string
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public override string ToString()
diff --git a/csharp/Platform.RegularExpressions.Transformer/TextSteppedTransformer.cs b/csharp/Platform.RegularExpressions.Transformer/TextSteppedTransformer.cs
index 0b7e8f2..d908a25 100644
--- a/csharp/Platform.RegularExpressions.Transformer/TextSteppedTransformer.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/TextSteppedTransformer.cs
@@ -10,7 +10,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the text stepped transformer.
///
- ///
///
///
public class TextSteppedTransformer : ITransformer
@@ -19,7 +18,6 @@ public class TextSteppedTransformer : ITransformer
///
/// Gets or sets the rules value.
///
- ///
///
public IList Rules
{
@@ -33,7 +31,6 @@ public IList Rules
///
/// Gets or sets the text value.
///
- ///
///
public string Text
{
@@ -47,7 +44,6 @@ public string Text
///
/// Gets or sets the current value.
///
- ///
///
public int Current
{
@@ -61,19 +57,15 @@ public int Current
///
/// Initializes a new instance.
///
- ///
///
///
/// A rules.
- ///
///
///
/// A text.
- ///
///
///
/// A current.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public TextSteppedTransformer(IList rules, string text, int current) => Reset(rules, text, current);
@@ -82,15 +74,12 @@ public int Current
///
/// Initializes a new instance.
///
- ///
///
///
/// A rules.
- ///
///
///
/// A text.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public TextSteppedTransformer(IList rules, string text) => Reset(rules, text);
@@ -99,11 +88,9 @@ public int Current
///
/// Initializes a new instance.
///
- ///
///
///
/// A rules.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public TextSteppedTransformer(IList rules) => Reset(rules);
@@ -112,7 +99,6 @@ public int Current
///
/// Initializes a new instance.
///
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public TextSteppedTransformer() => Reset();
@@ -121,19 +107,15 @@ public int Current
///
/// Resets the rules.
///
- ///
///
///
/// The rules.
- ///
///
///
/// The text.
- ///
///
///
/// The current.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Reset(IList rules, string text, int current)
@@ -147,15 +129,12 @@ public void Reset(IList rules, string text, int current)
///
/// Resets the rules.
///
- ///
///
///
/// The rules.
- ///
///
///
/// The text.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Reset(IList rules, string text) => Reset(rules, text, -1);
@@ -164,11 +143,9 @@ public void Reset(IList rules, string text, int current)
///
/// Resets the rules.
///
- ///
///
///
/// The rules.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Reset(IList rules) => Reset(rules, "", -1);
@@ -177,11 +154,9 @@ public void Reset(IList rules, string text, int current)
///
/// Resets the text.
///
- ///
///
///
/// The text.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Reset(string text) => Reset(Rules, text, -1);
@@ -190,7 +165,6 @@ public void Reset(IList rules, string text, int current)
///
/// Resets this instance.
///
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Reset() => Reset(Array.Empty(), "", -1);
@@ -199,11 +173,9 @@ public void Reset(IList rules, string text, int current)
///
/// Determines whether this instance next.
///
- ///
///
///
/// The bool
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public bool Next()
diff --git a/csharp/Platform.RegularExpressions.Transformer/TextTransformer.cs b/csharp/Platform.RegularExpressions.Transformer/TextTransformer.cs
index 227eb6f..0db0e90 100644
--- a/csharp/Platform.RegularExpressions.Transformer/TextTransformer.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/TextTransformer.cs
@@ -9,7 +9,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the text transformer.
///
- ///
///
///
public class TextTransformer : ITextTransformer
@@ -18,7 +17,6 @@ public class TextTransformer : ITextTransformer
///
/// Gets or sets the rules value.
///
- ///
///
public IList Rules
{
@@ -32,11 +30,9 @@ public IList Rules
///
/// Initializes a new instance.
///
- ///
///
///
/// A substitution rules.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public TextTransformer(IList substitutionRules)
@@ -48,15 +44,12 @@ public TextTransformer(IList substitutionRules)
///
/// Transforms the source.
///
- ///
///
///
/// The source.
- ///
///
///
/// The string
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public string Transform(string source)
diff --git a/csharp/Platform.RegularExpressions.Transformer/TransformerCLI.cs b/csharp/Platform.RegularExpressions.Transformer/TransformerCLI.cs
index 58f0356..d296a02 100644
--- a/csharp/Platform.RegularExpressions.Transformer/TransformerCLI.cs
+++ b/csharp/Platform.RegularExpressions.Transformer/TransformerCLI.cs
@@ -9,7 +9,6 @@ namespace Platform.RegularExpressions.Transformer
///
/// Represents the transformer cli.
///
- ///
///
public class TransformerCLI
{
@@ -17,7 +16,6 @@ public class TransformerCLI
///
/// The transformer.
///
- ///
///
private readonly IFileTransformer _transformer;
@@ -25,11 +23,9 @@ public class TransformerCLI
///
/// Initializes a new instance.
///
- ///
///
///
/// A transformer.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public TransformerCLI(IFileTransformer transformer) => _transformer = transformer;
@@ -38,11 +34,9 @@ public class TransformerCLI
///
/// Runs the args.
///
- ///
///
///
/// The args.
- ///
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Run(string[] args)