-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* . * . * .... * t * p * rename * \" ? * StringParser_ParseStringAndUnescapeTwoDoubleQuotesByASingleDoubleQuote * fix * .
- Loading branch information
Showing
7 changed files
with
130 additions
and
45 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/System.Linq.Dynamic.Core/Config/StringLiteralParsingType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace System.Linq.Dynamic.Core.Config; | ||
|
||
/// <summary> | ||
/// Defines the types of string literal parsing that can be performed. | ||
/// </summary> | ||
public enum StringLiteralParsingType : byte | ||
{ | ||
/// <summary> | ||
/// Represents the default string literal parsing type. Double quotes should be escaped using the default escape character (a \). | ||
/// To check if a Value equals a double quote, use this c# code: | ||
/// <code> | ||
/// var expression = "Value == \"\\\"\""; | ||
/// </code> | ||
/// </summary> | ||
Default = 0, | ||
|
||
/// <summary> | ||
/// Represents a string literal parsing type where a double quote should be escaped by an extra double quote ("). | ||
/// To check if a Value equals a double quote, use this c# code: | ||
/// <code> | ||
/// var expression = "Value == \"\"\"\""; | ||
/// </code> | ||
/// </summary> | ||
EscapeDoubleQuoteByTwoDoubleQuotes = 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters