18 references to SequencePrefixLength
System.Console (18)
System\IO\KeyParser.cs (18)
117int 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 128if (IsSequenceEndTag(input[SequencePrefixLength + digitCount])) 131int sequenceLength = SequencePrefixLength + digitCount + 1; 134key = MapEscapeSequenceNumber(byte.Parse(input.Slice(SequencePrefixLength, digitCount))); 140if (IsRxvtModifier(input[SequencePrefixLength + digitCount])) 142modifiers = MapRxvtModifiers(input[SequencePrefixLength + digitCount]); 154if (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)) 162modifiers = MapXtermModifiers(input[SequencePrefixLength + digitCount + 1]); 164key = input[SequencePrefixLength + digitCount + 2] is VtSequenceEndTag 165? MapEscapeSequenceNumber(byte.Parse(input.Slice(SequencePrefixLength, digitCount))) 166: MapKeyIdOXterm(input[SequencePrefixLength + digitCount + 2], terminalFormatStrings.IsRxvtTerm).key; 173startIndex += SequencePrefixLength + digitCount + 3; // 3 stands for separator, modifier and end tag or id