// Token: 0x060032B7 RID: 12983 RVA: 0x000E4290 File Offset: 0x000E2490 private void SetRtfIndex(RtfToken token, int controlStartIndex) { while (this._rtfIndex < this._rtfBytes.Length && this.IsControlCharValid(this.CurByte)) { this._rtfIndex++; } int num = this._rtfIndex - controlStartIndex; string @string = this.CurrentEncoding.GetString(this._rtfBytes, controlStartIndex, num); if (num > 32) { token.Type = RtfTokenType.TokenInvalid; return; } token.Type = RtfTokenType.TokenControl; token.RtfControlWordInfo = RtfToXamlLexer.RtfControlWordLookup(@string); if (this._rtfIndex < this._rtfBytes.Length) { if (this.CurByte == 32) { this._rtfIndex++; return; } if (this.IsParameterStart(this.CurByte)) { bool flag = false; if (this.CurByte == 45) { flag = true; this._rtfIndex++; } long num2 = 0L; int rtfIndex = this._rtfIndex; while (this._rtfIndex < this._rtfBytes.Length && this.IsParameterFollow(this.CurByte)) { num2 = num2 * 10L + (long)(this.CurByte - 48); this._rtfIndex++; } int num3 = this._rtfIndex - rtfIndex; if (this._rtfIndex < this._rtfBytes.Length && this.CurByte == 32) { this._rtfIndex++; } if (flag) { num2 = -num2; } if (num3 > 10) { token.Type = RtfTokenType.TokenInvalid; return; } token.Parameter = num2; } } }
private void Initialize() { _lexer = new RtfToXamlLexer(_rtfBytes); _converterState = new ConverterState(); _converterState.RtfFormatStack.Push(); _outerXamlBuilder = new StringBuilder(); }