forked from samus/mongodb-csharp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce MongoRegexOption which allows to simply set the option with…
…out knowing the correct char. It dose noting more then changing the RawOptions so future server extensions are still possible with it.
- Loading branch information
Showing
6 changed files
with
203 additions
and
73 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
|
||
namespace MongoDB | ||
{ | ||
/// <summary> | ||
/// Mongo Regex options | ||
/// </summary> | ||
[Flags] | ||
public enum MongoRegexOption | ||
{ | ||
/// <summary> | ||
/// Specifies that no options are set. | ||
/// </summary> | ||
None = 0, | ||
/// <summary> | ||
/// i - Specifies case-insensitive matching. | ||
/// </summary> | ||
IgnoreCase = 1, | ||
/// <summary> | ||
/// m - Multiline mode. Changes the meaning of ^ and $ so they match at the beginning | ||
/// and end, respectively, of any line, and not just the beginning and end of the | ||
/// entire string. | ||
/// </summary> | ||
Multiline = 2, | ||
/// <summary> | ||
/// g - Eliminates unescaped white space from the pattern. | ||
/// </summary> | ||
IgnorePatternWhitespace = 3 | ||
} | ||
} |