1 write to _rtfBytes
PresentationFramework (1)
System\Windows\Documents\RtfToXamlLexer.cs (1)
35
_rtfBytes
= rtfBytes;
33 references to _rtfBytes
PresentationFramework (33)
System\Windows\Documents\RtfToXamlLexer.cs (33)
65
if (_rtfIndex >=
_rtfBytes
.Length)
72
byte tokenChar =
_rtfBytes
[_rtfIndex++];
98
if (_rtfIndex >=
_rtfBytes
.Length)
113
token.Text = CurrentEncoding.GetString(
_rtfBytes
, controlStartIndex - 1, _rtfIndex - rtfStartIndex);
131
token.Text = CurrentEncoding.GetString(
_rtfBytes
, _rtfIndex, 1);
225
if (_rtfIndex + skip <
_rtfBytes
.Length)
231
_rtfIndex =
_rtfBytes
.Length - 1;
238
byte tokenChar =
_rtfBytes
[_rtfIndex];
243
tokenChar =
_rtfBytes
[_rtfIndex++];
254
byte tokenChar =
_rtfBytes
[_rtfIndex];
267
tokenNextChar =
_rtfBytes
[_rtfIndex + 1];
282
tokenChar =
_rtfBytes
[_rtfIndex];
320
return
_rtfBytes
[_rtfIndex];
352
while (e <
_rtfBytes
.Length)
354
if (IsControl(
_rtfBytes
[e]))
356
if (
_rtfBytes
[e] == (byte)'\\'
357
&& e + 3 <
_rtfBytes
.Length
358
&&
_rtfBytes
[e + 1] == '\''
359
&& IsHex(
_rtfBytes
[e + 2])
360
&& IsHex(
_rtfBytes
[e + 3]))
370
else if (
_rtfBytes
[e] == '\r' ||
_rtfBytes
[e] == '\n' ||
_rtfBytes
[e] == 0)
395
if (
_rtfBytes
[s] == '\\')
397
bytes[i++] = (byte)((byte)(HexToByte(
_rtfBytes
[s + 2]) << 4) + HexToByte(
_rtfBytes
[s + 3]));
402
bytes[i++] =
_rtfBytes
[s++];
410
token.Text = CurrentEncoding.GetString(
_rtfBytes
, s, e - s);
434
while (_rtfIndex <
_rtfBytes
.Length && IsControlCharValid(CurByte))
440
string controlName = CurrentEncoding.GetString(
_rtfBytes
, controlStartIndex, controlLength);
452
if (_rtfIndex <
_rtfBytes
.Length)
472
while (_rtfIndex <
_rtfBytes
.Length && IsParameterFollow(CurByte))
481
if (_rtfIndex <
_rtfBytes
.Length && CurByte == ' ')