You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor Quoters/Delimiters and add validation logic
Refactored `Quoters` and `Delimiters` properties to use private
backing fields and added validation to prevent overlapping
characters between them. Introduced a constant error message
`CommonCharactersErrorMessage` for validation failures.
Changed `CsvDelimiters` to use `ImmutableHashSet` for immutability.
Added a new test case `TestMethodSingleCommon` to ensure validation
logic works as expected. Updated imports to include
`System.Collections.Immutable`.
privateconststringCommonCharactersErrorMessage="The delimiters and quoters have common characters. This might lead to undesired result. Quoters will always be evaluated first!";
30
+
28
31
/// <summary>
29
32
/// quote characters
30
33
/// default are double quote(") and single quote (')
@@ -33,16 +36,42 @@ public class QuotedStringSplitter
33
36
/// '"a.b"' will return ["a.b"] not matter what delimiters
34
37
/// ''a.b'' will return ["a","b"] if . is the delimiter and TreatTwoQuotesAsLiteral as literal is false else it will return ["'a.b'"]
0 commit comments