1 write to _rtfBytes
PresentationFramework (1)
System\Windows\Documents\RtfToXamlLexer.cs (1)
34
_rtfBytes
= rtfBytes;
33 references to _rtfBytes
PresentationFramework (33)
System\Windows\Documents\RtfToXamlLexer.cs (33)
64
if (_rtfIndex >=
_rtfBytes
.Length)
71
byte tokenChar =
_rtfBytes
[_rtfIndex++];
97
if (_rtfIndex >=
_rtfBytes
.Length)
112
token.Text = CurrentEncoding.GetString(
_rtfBytes
, controlStartIndex - 1, _rtfIndex - rtfStartIndex);
130
token.Text = CurrentEncoding.GetString(
_rtfBytes
, _rtfIndex, 1);
224
if (_rtfIndex + skip <
_rtfBytes
.Length)
230
_rtfIndex =
_rtfBytes
.Length - 1;
237
byte tokenChar =
_rtfBytes
[_rtfIndex];
242
tokenChar =
_rtfBytes
[_rtfIndex++];
253
byte tokenChar =
_rtfBytes
[_rtfIndex];
266
tokenNextChar =
_rtfBytes
[_rtfIndex + 1];
281
tokenChar =
_rtfBytes
[_rtfIndex];
319
return
_rtfBytes
[_rtfIndex];
351
while (e <
_rtfBytes
.Length)
353
if (IsControl(
_rtfBytes
[e]))
355
if (
_rtfBytes
[e] == (byte)'\\'
356
&& e + 3 <
_rtfBytes
.Length
357
&&
_rtfBytes
[e + 1] == '\''
358
&& IsHex(
_rtfBytes
[e + 2])
359
&& IsHex(
_rtfBytes
[e + 3]))
369
else if (
_rtfBytes
[e] == '\r' ||
_rtfBytes
[e] == '\n' ||
_rtfBytes
[e] == 0)
394
if (
_rtfBytes
[s] == '\\')
396
bytes[i++] = (byte)((byte)(HexToByte(
_rtfBytes
[s + 2]) << 4) + HexToByte(
_rtfBytes
[s + 3]));
401
bytes[i++] =
_rtfBytes
[s++];
409
token.Text = CurrentEncoding.GetString(
_rtfBytes
, s, e - s);
433
while (_rtfIndex <
_rtfBytes
.Length && IsControlCharValid(CurByte))
439
string controlName = CurrentEncoding.GetString(
_rtfBytes
, controlStartIndex, controlLength);
451
if (_rtfIndex <
_rtfBytes
.Length)
471
while (_rtfIndex <
_rtfBytes
.Length && IsParameterFollow(CurByte))
480
if (_rtfIndex <
_rtfBytes
.Length && CurByte == ' ')