11 writes to chars
System.Private.Xml (11)
System\Xml\Core\XmlTextReaderImpl.cs (6)
2878
_ps.
chars
= new char[bufferSize + 1];
2928
_ps.
chars
= new char[XmlReader.AsyncBufferSize + 1];
2932
_ps.
chars
= new char[XmlReader.DefaultBufferSize + 1];
2955
_ps.
chars
= new char[len + 1];
3373
_ps.
chars
= newChars;
3424
_ps.
chars
= newChars;
System\Xml\Core\XmlTextReaderImplAsync.cs (4)
906
_ps.
chars
= new char[bufferSize + 1];
964
_ps.
chars
= new char[bufferSize + 1];
1045
_ps.
chars
= newChars;
1095
_ps.
chars
= newChars;
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
68
chars
= null!;
346 references to chars
System.Private.Xml (346)
System\Xml\Core\XmlTextReaderImpl.cs (221)
1867
Debug.Assert(_ps.
chars
!= null);
1868
BlockCopyChars(_ps.
chars
, startPos, buffer, (index + readCount), copyCount);
1891
Debug.Assert(_ps.
chars
!= null);
1892
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
2178
_stringBuilder.Append(_ps.
chars
, _incReadLeftStartPos, _incReadLeftEndPos - _incReadLeftStartPos);
2191
_stringBuilder.Append(_ps.
chars
, _ps.charPos, _ps.charsUsed - _ps.charPos);
2384
return _ps.
chars
;
2876
if (_ps.
chars
== null || _ps.
chars
.Length < bufferSize + 1)
2924
if (_ps.
chars
== null)
2956
str.CopyTo(0, _ps.
chars
, 0, str.Length);
2958
_ps.
chars
[len] = (char)0;
3315
Debug.Assert(_ps.
chars
!= null);
3324
int encodingByteCount = _ps.encoding.GetByteCount(_ps.
chars
, 0, _ps.charPos);
3332
_ps.bytePos += _ps.encoding.GetByteCount(_ps.
chars
, 0, _ps.charPos);
3358
Debug.Assert(_ps.
chars
!= null);
3363
if (_ps.charsUsed == _ps.
chars
.Length - 1)
3371
char[] newChars = new char[_ps.
chars
.Length * 2];
3372
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
3391
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
3399
int charsLen = _ps.
chars
.Length;
3415
BlockCopyChars(_ps.
chars
, _ps.charPos, _ps.
chars
, 0, copyCharsCount);
3422
char[] newChars = new char[_ps.
chars
.Length * 2];
3423
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
3448
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
3482
charsRead = _ps.textReader.Read(_ps.
chars
, _ps.charsUsed, _ps.
chars
.Length - _ps.charsUsed - 1);
3494
Debug.Assert(_ps.charsUsed < _ps.
chars
.Length);
3498
_ps.
chars
[_ps.charsUsed] = (char)0;
3506
Debug.Assert(_ps.
chars
!= null);
3507
Debug.Assert(maxCharsCount <= _ps.
chars
.Length - _ps.charsUsed - 1);
3521
_ps.decoder.Convert(_ps.bytes, _ps.bytePos, bytesCount, _ps.
chars
, _ps.charsUsed, maxCharsCount, false, out bytesCount, out charsCount, out completed);
3548
Debug.Assert(_ps.
chars
!= null);
3549
_ps.decoder.Convert(_ps.bytes, _ps.bytePos + bytesDecoded, 1, _ps.
chars
, _ps.charsUsed + charsDecoded, 2, false, out bDec, out chDec, out completed);
3596
Debug.Assert(_ps.
chars
!= null);
3597
BlockCopyChars(_ps.
chars
, sourcePos, _ps.
chars
, destPos, count);
3611
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith(XmlDeclarationBeginning) ||
3612
XmlCharType.IsNameSingleChar(_ps.
chars
![_ps.charPos + 5]))
3639
if (_ps.
chars
[_ps.charPos] == '?')
3643
if (_ps.
chars
[_ps.charPos + 1] == '>')
3709
switch (_ps.
chars
.AsSpan(_ps.charPos, nameEndPos - _ps.charPos))
3750
sb.Append(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
3754
if (_ps.
chars
[_ps.charPos] != '=')
3757
if (_ps.
chars
[_ps.charPos] != '=')
3765
char quoteChar = _ps.
chars
[_ps.charPos];
3769
quoteChar = _ps.
chars
[_ps.charPos];
3788
chars = _ps.
chars
;
3794
if (_ps.
chars
[pos] == quoteChar)
3801
if (_ps.
chars
.AsSpan(_ps.charPos).StartsWith("1.0"))
3806
attr.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3812
string badVersion = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3817
string encName = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3827
switch (_ps.
chars
.AsSpan(_ps.charPos, pos - _ps.charPos))
3843
attr.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3912
Debug.Assert(_ps.
chars
!= null);
3913
char[] chars = _ps.
chars
;
4137
Debug.Assert(_ps.
chars
!= null);
4138
char[] chars = _ps.
chars
;
4311
Debug.Assert(_ps.
chars
!= null);
4312
char[] chars = _ps.
chars
;
4373
chars = _ps.
chars
;
4436
chars = _ps.
chars
;
4562
Debug.Assert(_ps.
chars
!= null);
4563
char[] chars = _ps.
chars
;
4590
chars = _ps.
chars
;
4673
Debug.Assert(_ps.
chars
!= null);
4678
args[3] = new string(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
4692
Debug.Assert(_ps.
chars
!= null);
4693
char[] chars = _ps.
chars
;
4844
chars = _ps.
chars
;
4850
chars = _ps.
chars
;
4915
chars = _ps.
chars
;
4947
chars = _ps.
chars
;
5106
Debug.Assert(_ps.
chars
!= null);
5107
char[] chars = _ps.
chars
;
5283
chars = _ps.
chars
;
5320
if (_ps.
chars
[_ps.charPos] != (char)0xD)
5356
chars = _ps.
chars
;
5429
Debug.Assert(_ps.
chars
!= null);
5430
_curNode.SetValueNode(nodeType, _ps.
chars
, startPos, endPos - startPos);
5443
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5449
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5474
Debug.Assert(_ps.
chars
!= null);
5475
_curNode.SetValueNode(XmlNodeType.Text, _ps.
chars
, startPos, endPos - startPos);
5484
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5491
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5549
Debug.Assert(_ps.
chars
!= null);
5550
char[] chars = _ps.
chars
;
5663
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[pos - 1]))
5672
chars = _ps.
chars
;
5719
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos + offset);
5735
if (_ps.
chars
[_ps.charPos] != (char)0xD && _ps.
chars
[_ps.charPos] != ']')
5759
chars = _ps.
chars
;
5792
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5794
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5914
Debug.Assert(_ps.
chars
!= null);
5918
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos))
5927
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos))
5939
if (XmlCharType.IsCharData(_ps.
chars
[_ps.charPos]))
5945
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos);
5952
Debug.Assert(_ps.
chars
!= null);
5953
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
5962
Debug.Assert(_ps.
chars
!= null);
5963
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
5974
if (_ps.
chars
[_ps.charPos + 1] == '#')
6015
if (_ps.
chars
[endPos] != ';')
6021
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
6217
Debug.Assert(_ps.
chars
!= null);
6218
string target = _nameTable.Add(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
6239
char ch = _ps.
chars
[_ps.charPos];
6247
if (ch != '?' || _ps.
chars
[_ps.charPos + 1] != '>')
6249
Throw(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.
chars
, _ps.charsUsed, _ps.charPos));
6265
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
6270
piInDtdStringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6293
sb.Append(_ps.
chars
, startPos, endPos - startPos);
6295
sb.Append(_ps.
chars
, startPos, endPos - startPos);
6318
Debug.Assert(_ps.
chars
!= null);
6320
char[] chars = _ps.
chars
;
6490
Debug.Assert(_ps.
chars
!= null);
6491
_curNode.SetValueNode(type, _ps.
chars
, startPos, endPos - startPos);
6497
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6500
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6523
Debug.Assert(_ps.
chars
!= null);
6525
char[] chars = _ps.
chars
;
6691
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("DOCTYPE"))
6696
Debug.Assert(_ps.
chars
!= null);
6697
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[_ps.charPos + 7]))
6761
Debug.Assert(_ps.
chars
!= null);
6762
if (_ps.
chars
[_ps.charPos] == 'P')
6773
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("PUBLIC"))
6799
else if (_ps.
chars
[_ps.charPos] == 'S')
6810
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("SYSTEM"))
6827
else if (_ps.
chars
[_ps.charPos] != '[' && _ps.
chars
[_ps.charPos] != '>')
6833
if (_ps.
chars
[_ps.charPos] == '[')
6840
if (_ps.
chars
[_ps.charPos] != '>')
6845
else if (_ps.
chars
[_ps.charPos] == '>')
6858
Debug.Assert(_ps.
chars
!= null);
6860
char quoteChar = _ps.
chars
[_ps.charPos];
6877
Debug.Assert(_ps.
chars
!= null);
6878
char[] chars = _ps.
chars
;
7053
if (_ps.
chars
[_ps.charPos] != (char)0xD)
7065
chars = _ps.
chars
;
7074
Debug.Assert(_ps.
chars
!= null);
7075
char[] chars = _ps.
chars
;
7130
sb?.Append(_ps.
chars
, _ps.charPos, tmp2);
7143
sb?.Append(_ps.
chars
, _ps.charPos, tmp3);
7154
if (_ps.
chars
[_ps.charPos] != (char)0xD)
7162
chars = _ps.
chars
;
7168
Debug.Assert(_ps.
chars
!= null);
7169
Debug.Assert(_ps.
chars
[startPos] == '&');
7170
if (_ps.
chars
[startPos + 1] == '#')
7202
Debug.Assert(_ps.
chars
!= null);
7203
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
7223
Debug.Assert(_ps.
chars
!= null);
7224
Debug.Assert(_ps.
chars
[startPos] == '&' && _ps.
chars
[startPos + 1] == '#');
7232
chars = _ps.
chars
;
7301
Throw((_ps.
chars
[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(ch, '\0'));
7306
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos + 1);
7327
Throw((_ps.
chars
[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(high, low));
7334
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos + 1);
7365
Debug.Assert(_ps.
chars
!= null);
7366
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
7387
Debug.Assert(_ps.
chars
!= null);
7388
Debug.Assert(_ps.
chars
[startPos] == '&');
7389
Debug.Assert(_ps.
chars
[startPos + 1] != '#');
7392
char[] chars = _ps.
chars
;
7500
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
7501
_ps.
chars
[pos - 1] = ch;
7522
Debug.Assert(_ps.
chars
!= null);
7523
char[] chars = _ps.
chars
;
7585
Debug.Assert(_ps.
chars
!= null);
7586
chars = _ps.
chars
;
7618
Debug.Assert(_ps.
chars
!= null);
7621
if (_ps.
chars
[endPos] != ';')
7626
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
7671
Debug.Assert(_ps.
chars
!= null);
7676
string localName = _nameTable.Add(_ps.
chars
, _ps.charPos, endNamePos - _ps.charPos);
7684
if (prefixLen == _lastPrefix.Length && _ps.
chars
.AsSpan(_ps.charPos).StartsWith(_lastPrefix))
7686
return AddAttribute(_nameTable.Add(_ps.
chars
, colonPos + 1, endNamePos - colonPos - 1),
7692
string prefix = _nameTable.Add(_ps.
chars
, startPos, prefixLen);
7694
return AddAttribute(_nameTable.Add(_ps.
chars
, colonPos + 1, endNamePos - colonPos - 1),
8184
Debug.Assert(_ps.
chars
!= null);
8194
count = _incReadDecoder.Decode(_ps.
chars
, _incReadLeftStartPos, charsLeft);
8233
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 2).StartsWith("?>"));
8241
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 3).StartsWith("-->"));
8249
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 3).StartsWith("]]>"));
8278
char[] chars = _ps.
chars
;
8390
(_ps.
chars
[endPos] == '>' || XmlCharType.IsWhiteSpace(_ps.
chars
[endPos])))
8399
if (XmlCharType.IsWhiteSpace(_ps.
chars
[endPos]))
8403
if (_ps.
chars
[_ps.charPos] != '>')
8416
chars = _ps.
chars
;
8428
if (endPos - _ps.charPos - 1 == _curNode.localName.Length && _ps.
chars
.AsSpan(_ps.charPos + 1).StartsWith(_curNode.localName) &&
8429
(_ps.
chars
[endPos] == '>' || _ps.
chars
[endPos] == '/' || XmlCharType.IsWhiteSpace(_ps.
chars
[endPos])))
8438
chars = _ps.
chars
;
8513
count = _incReadDecoder.Decode(_ps.
chars
, startPos, charsParsed);
8574
Debug.Assert(_ps.
chars
!= null);
8576
char[] chars = _ps.
chars
;
8636
chars = _ps.
chars
;
8658
chars = _ps.
chars
;
8719
chars = _ps.
chars
;
8793
Debug.Assert(_ps.
chars
!= null);
8795
if (XmlCharType.IsNCNameSingleChar(_ps.
chars
[_ps.charPos]))
8798
while (XmlCharType.IsNCNameSingleChar(_ps.
chars
[pos]))
8802
return new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
8807
return new string(_ps.
chars
, _ps.charPos, 1);
8871
Debug.Assert(_ps.
chars
!= null);
8873
if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.
chars
[pos] == (char)0 && ReadData() == 0 && _ps.isStreamEof)
9395
Debug.Assert(_ps.
chars
!= null);
9411
charsRead = _incReadDecoder.Decode(_ps.
chars
, startPos, endPos - startPos);
9426
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
9428
AdjustLineInfo(_ps.
chars
, startPos - charsRead, startPos, _ps.eolNormalized, ref _incReadLineInfo);
System\Xml\Core\XmlTextReaderImplAsync.cs (125)
695
BlockCopyChars(_ps.
chars
, startPos, buffer, (index + readCount), copyCount);
718
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
904
if (_ps.
chars
== null || _ps.
chars
.Length < bufferSize + 1)
951
if (_ps.
chars
== null)
1035
if (_ps.charsUsed == _ps.
chars
.Length - 1)
1043
char[] newChars = new char[_ps.
chars
.Length * 2];
1044
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
1062
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
1070
int charsLen = _ps.
chars
.Length;
1086
BlockCopyChars(_ps.
chars
, _ps.charPos, _ps.
chars
, 0, copyCharsCount);
1093
char[] newChars = new char[_ps.
chars
.Length * 2];
1094
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
1117
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
1149
charsRead = await _ps.textReader.ReadAsync(_ps.
chars
.AsMemory(_ps.charsUsed, _ps.
chars
.Length - _ps.charsUsed - 1)).ConfigureAwait(false);
1161
Debug.Assert(_ps.charsUsed < _ps.
chars
.Length);
1164
_ps.
chars
[_ps.charsUsed] = (char)0;
1179
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith(XmlDeclarationBeginning) ||
1180
XmlCharType.IsNameSingleChar(_ps.
chars
[_ps.charPos + 5]))
1206
if (_ps.
chars
[_ps.charPos] == '?')
1210
if (_ps.
chars
[_ps.charPos + 1] == '>')
1276
switch (_ps.
chars
.AsSpan(_ps.charPos, nameEndPos - _ps.charPos))
1315
sb.Append(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
1319
if (_ps.
chars
[_ps.charPos] != '=')
1322
if (_ps.
chars
[_ps.charPos] != '=')
1330
char quoteChar = _ps.
chars
[_ps.charPos];
1334
quoteChar = _ps.
chars
[_ps.charPos];
1352
chars = _ps.
chars
;
1359
if (_ps.
chars
[pos] == quoteChar)
1366
if (_ps.
chars
.AsSpan(_ps.charPos).StartsWith("1.0"))
1370
attr!.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
1376
string badVersion = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
1381
string encName = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
1390
switch (_ps.
chars
.AsSpan(_ps.charPos, pos - _ps.charPos))
1405
attr!.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
1475
char[] chars = _ps.
chars
;
1734
char[] chars = _ps.
chars
;
1859
char[] chars = _ps.
chars
;
1951
char[] chars = _ps.
chars
;
2004
char[] chars = _ps.
chars
;
2105
char[] chars = _ps.
chars
;
2188
chars = _ps.
chars
;
2294
args[3] = new string(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
2308
char[] chars = _ps.
chars
;
2466
chars = _ps.
chars
;
2476
chars = _ps.
chars
;
2541
chars = _ps.
chars
;
2573
chars = _ps.
chars
;
2606
char[] chars = _ps.
chars
;
2788
chars = _ps.
chars
;
2825
if (_ps.
chars
[_ps.charPos] != (char)0xD)
2862
chars = _ps.
chars
;
2930
_curNode.SetValueNode(nodeType, _ps.
chars
, startPos, endPos - startPos);
2989
_curNode.SetValueNode(nodeType, _ps.
chars
, startPos, endPos - startPos);
3004
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3015
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3040
_curNode.SetValueNode(XmlNodeType.Text, _ps.
chars
, startPos, endPos - startPos);
3049
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3062
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3169
Task<(int, int, int, bool)> task = ParseTextAsync(outOrChars, _ps.
chars
, _ps.charPos, 0, -1, outOrChars);
3403
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[pos - 1]))
3412
chars = _ps.
chars
;
3444
chars = _ps.
chars
;
3452
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos + offset);
3471
if (_ps.
chars
[_ps.charPos] != (char)0xD && _ps.
chars
[_ps.charPos] != ']')
3500
chars = _ps.
chars
;
3546
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3553
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3684
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || await ZeroEndingStreamAsync(_ps.charPos).ConfigureAwait(false))
3693
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || await ZeroEndingStreamAsync(_ps.charPos).ConfigureAwait(false))
3705
if (XmlCharType.IsCharData(_ps.
chars
[_ps.charPos]))
3711
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos);
3718
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
3729
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
3740
if (_ps.
chars
[_ps.charPos + 1] == '#')
3789
if (_ps.
chars
[endPos] != ';')
3795
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
3912
string target = _nameTable.Add(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
3933
char ch = _ps.
chars
[_ps.charPos];
3941
if (ch != '?' || _ps.
chars
[_ps.charPos + 1] != '>')
3943
Throw(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.
chars
, _ps.charsUsed, _ps.charPos));
3964
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
3969
piInDtdStringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3999
sb.Append(_ps.
chars
, startPos, endPos - startPos);
4006
sb.Append(_ps.
chars
, startPos, endPos - startPos);
4032
char[] chars = _ps.
chars
;
4210
_curNode.SetValueNode(type, _ps.
chars
, startPos, endPos - startPos);
4218
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
4225
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
4257
char[] chars = _ps.
chars
;
4424
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("DOCTYPE"))
4428
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[_ps.charPos + 7]))
4497
if (_ps.
chars
[_ps.charPos] == 'P')
4508
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("PUBLIC"))
4534
else if (_ps.
chars
[_ps.charPos] == 'S')
4545
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("SYSTEM"))
4562
else if (_ps.
chars
[_ps.charPos] != '[' && _ps.
chars
[_ps.charPos] != '>')
4568
if (_ps.
chars
[_ps.charPos] == '[')
4575
if (_ps.
chars
[_ps.charPos] != '>')
4580
else if (_ps.
chars
[_ps.charPos] == '>')
4594
char quoteChar = _ps.
chars
[_ps.charPos];
4611
char[] chars = _ps.
chars
;
4786
if (_ps.
chars
[_ps.charPos] != (char)0xD)
4798
chars = _ps.
chars
;
4807
char[] chars = _ps.
chars
;
4862
sb?.Append(_ps.
chars
, _ps.charPos, tmp2);
4875
sb?.Append(_ps.
chars
, _ps.charPos, tmp3);
4886
if (_ps.
chars
[_ps.charPos] != (char)0xD)
4894
chars = _ps.
chars
;
4920
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
4954
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
4985
char[] chars = _ps.
chars
;
5053
chars = _ps.
chars
;
5088
if (_ps.
chars
[endPos] != ';')
5093
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
5245
if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.
chars
[pos] == (char)0 && await ReadDataAsync().ConfigureAwait(false) == 0 && _ps.isStreamEof)
5413
charsRead = _incReadDecoder.Decode(_ps.
chars
, startPos, endPos - startPos);
5427
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
5429
AdjustLineInfo(_ps.
chars
, startPos - charsRead, startPos, _ps.eolNormalized, ref _incReadLineInfo);