23 references to Codes
System.Text.RegularExpressions (23)
System\Text\RegularExpressions\RegexInterpreter.cs (5)
50
SetOperator((RegexOpcode)_code.
Codes
[_codepos]);
59
SetOperator((RegexOpcode)_code.
Codes
[newpos]);
141
SetOperator((RegexOpcode)(_code.
Codes
[newpos] | back));
198
private int Operand(int i) => _code.
Codes
[_codepos + i + 1];
371
SetOperator((RegexOpcode)_code.
Codes
[0]);
System\Text\RegularExpressions\RegexInterpreterCode.cs (18)
18
/// <summary>The string / set table. <see cref="
Codes
"/> includes offsets into this table, for string and set arguments.</summary>
22
/// <summary>How many instructions in <see cref="
Codes
"/> use backtracking.</summary>
129
for (int i = 0; i <
Codes
.Length; i += OpcodeSize((RegexOpcode)
Codes
[i]))
140
RegexOpcode opcode = (RegexOpcode)
Codes
[opcodeOffset];
165
sb.Append(Indent()).Append('\'').Append(RegexCharClass.DescribeChar((char)
Codes
[opcodeOffset + 1])).Append('\'');
173
sb.Append(Indent()).Append(RegexCharClass.DescribeSet(Strings[
Codes
[opcodeOffset + 1]]));
177
sb.Append(Indent()).Append('"').Append(Strings[
Codes
[opcodeOffset + 1]]).Append('"');
182
sb.Append(Indent()).Append("index = ").Append(
Codes
[opcodeOffset + 1]);
186
sb.Append(Indent()).Append("index = ").Append(
Codes
[opcodeOffset + 1]);
187
if (
Codes
[opcodeOffset + 2] != -1)
189
sb.Append(", unindex = ").Append(
Codes
[opcodeOffset + 2]);
195
sb.Append(Indent()).Append("value = ").Append(
Codes
[opcodeOffset + 1]);
204
sb.Append(Indent()).Append("addr = ").Append(
Codes
[opcodeOffset + 1]);
222
sb.Append(", rep = ").Append(
Codes
[opcodeOffset + 2] == int.MaxValue ? "inf" :
Codes
[opcodeOffset + 2]);
227
sb.Append(", limit = ").Append(
Codes
[opcodeOffset + 2] == int.MaxValue ? "inf" :
Codes
[opcodeOffset + 2]);