18 references to SequencePrefixLength
System.Console (18)
System\IO\KeyParser.cs (18)
117
int digitCount = !char.IsBetween(input[
SequencePrefixLength
], '1', '9') // not using IsAsciiDigit as 0 is invalid
119
: char.IsDigit(input[
SequencePrefixLength
+ 1]) ? 2 : 1;
122
||
SequencePrefixLength
+ digitCount >= input.Length) // it's too short to be a complete sequence
128
if (IsSequenceEndTag(input[
SequencePrefixLength
+ digitCount]))
131
int sequenceLength =
SequencePrefixLength
+ digitCount + 1;
134
key = MapEscapeSequenceNumber(byte.Parse(input.Slice(
SequencePrefixLength
, digitCount)));
140
if (IsRxvtModifier(input[
SequencePrefixLength
+ digitCount]))
142
modifiers = MapRxvtModifiers(input[
SequencePrefixLength
+ digitCount]);
154
if (input[
SequencePrefixLength
+ digitCount] is not ModifierSeparator
155
||
SequencePrefixLength
+ digitCount + 2 >= input.Length
156
|| !char.IsBetween(input[
SequencePrefixLength
+ digitCount + 1], '2', '8')
157
|| (!char.IsAsciiLetterUpper(input[
SequencePrefixLength
+ digitCount + 2]) && input[
SequencePrefixLength
+ digitCount + 2] is not VtSequenceEndTag))
162
modifiers = MapXtermModifiers(input[
SequencePrefixLength
+ digitCount + 1]);
164
key = input[
SequencePrefixLength
+ digitCount + 2] is VtSequenceEndTag
165
? MapEscapeSequenceNumber(byte.Parse(input.Slice(
SequencePrefixLength
, digitCount)))
166
: MapKeyIdOXterm(input[
SequencePrefixLength
+ digitCount + 2], terminalFormatStrings.IsRxvtTerm).key;
173
startIndex +=
SequencePrefixLength
+ digitCount + 3; // 3 stands for separator, modifier and end tag or id