7 writes to Operand
Microsoft.AspNetCore.Rewrite (4)
ApacheModRewrite\ConditionPatternParser.cs (1)
123
results.
Operand
= condition.Substring(context.GetIndex());
ApacheModRewrite\ParsedModRewriteCondition.cs (1)
20
Operand
= operand;
ApacheModRewrite\RuleRegexParser.cs (2)
16
return new ParsedModRewriteInput { Invert = true,
Operand
= regex.Substring(1) };
20
return new ParsedModRewriteInput { Invert = false,
Operand
= regex };
Microsoft.AspNetCore.Rewrite.Tests (3)
ApacheModRewrite\ConditionPatternParserTest.cs (3)
20
var expected = new ParsedModRewriteInput { OperationType = (OperationType)operation, ConditionType = (ConditionType)conditionType,
Operand
= variable, Invert = false };
30
var expected = new ParsedModRewriteInput { ConditionType = ConditionType.Regex,
Operand
= "(.*)", Invert = false };
81
var expected = new ParsedModRewriteInput { ConditionType = (ConditionType)cond, OperationType = (OperationType)operation, Invert = false,
Operand
= variable };
23 references to Operand
Microsoft.AspNetCore.Rewrite (20)
ApacheModRewrite\ConditionPatternParser.cs (1)
218
if (!int.TryParse(results.
Operand
, NumberStyles.None, CultureInfo.InvariantCulture, out _))
ApacheModRewrite\RuleBuilder.cs (19)
65
Debug.Assert(input.
Operand
!= null);
68
match = new RegexMatch(new Regex(input.
Operand
, RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase, _regexTimeout), input.Invert);
72
match = new RegexMatch(new Regex(input.
Operand
, RegexOptions.CultureInvariant | RegexOptions.Compiled, _regexTimeout), input.Invert);
76
Debug.Assert(input.
Operand
!= null);
80
match = new IntegerMatch(input.
Operand
, IntegerOperationType.Equal);
83
match = new IntegerMatch(input.
Operand
, IntegerOperationType.Greater);
86
match = new IntegerMatch(input.
Operand
, IntegerOperationType.GreaterEqual);
89
match = new IntegerMatch(input.
Operand
, IntegerOperationType.Less);
92
match = new IntegerMatch(input.
Operand
, IntegerOperationType.LessEqual);
95
match = new IntegerMatch(input.
Operand
, IntegerOperationType.NotEqual);
102
Debug.Assert(input.
Operand
!= null);
106
match = new StringMatch(input.
Operand
, StringOperationType.Equal, input.Invert);
109
match = new StringMatch(input.
Operand
, StringOperationType.Greater, input.Invert);
112
match = new StringMatch(input.
Operand
, StringOperationType.GreaterEqual, input.Invert);
115
match = new StringMatch(input.
Operand
, StringOperationType.Less, input.Invert);
118
match = new StringMatch(input.
Operand
, StringOperationType.LessEqual, input.Invert);
162
Debug.Assert(input.
Operand
!= null);
165
_match = new RegexMatch(new Regex(input.
Operand
, RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase, _regexTimeout), input.Invert);
169
_match = new RegexMatch(new Regex(input.
Operand
, RegexOptions.CultureInvariant | RegexOptions.Compiled, _regexTimeout), input.Invert);
Microsoft.AspNetCore.Rewrite.Tests (3)
ApacheModRewrite\ConditionPatternParserTest.cs (2)
105
i1.
Operand
!= i2.
Operand
||
ApacheModRewrite\RuleRegexParserTest.cs (1)
27
Assert.Equal("(.*)", results.
Operand
);