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];
3356
_ps.
chars
= newChars;
3407
_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)
67
chars
= null!;
345 references to chars
System.Private.Xml (345)
System\Xml\Core\XmlTextReaderImpl.cs (220)
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);
3316
_ps.bytePos += _ps.encoding.GetByteCount(_ps.
chars
, 0, _ps.charPos);
3341
Debug.Assert(_ps.
chars
!= null);
3346
if (_ps.charsUsed == _ps.
chars
.Length - 1)
3354
char[] newChars = new char[_ps.
chars
.Length * 2];
3355
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
3374
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
3382
int charsLen = _ps.
chars
.Length;
3398
BlockCopyChars(_ps.
chars
, _ps.charPos, _ps.
chars
, 0, copyCharsCount);
3405
char[] newChars = new char[_ps.
chars
.Length * 2];
3406
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
3431
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
3465
charsRead = _ps.textReader.Read(_ps.
chars
, _ps.charsUsed, _ps.
chars
.Length - _ps.charsUsed - 1);
3477
Debug.Assert(_ps.charsUsed < _ps.
chars
.Length);
3481
_ps.
chars
[_ps.charsUsed] = (char)0;
3489
Debug.Assert(_ps.
chars
!= null);
3490
Debug.Assert(maxCharsCount <= _ps.
chars
.Length - _ps.charsUsed - 1);
3504
_ps.decoder.Convert(_ps.bytes, _ps.bytePos, bytesCount, _ps.
chars
, _ps.charsUsed, maxCharsCount, false, out bytesCount, out charsCount, out completed);
3531
Debug.Assert(_ps.
chars
!= null);
3532
_ps.decoder.Convert(_ps.bytes, _ps.bytePos + bytesDecoded, 1, _ps.
chars
, _ps.charsUsed + charsDecoded, 2, false, out bDec, out chDec, out completed);
3579
Debug.Assert(_ps.
chars
!= null);
3580
BlockCopyChars(_ps.
chars
, sourcePos, _ps.
chars
, destPos, count);
3594
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith(XmlDeclarationBeginning) ||
3595
XmlCharType.IsNameSingleChar(_ps.
chars
![_ps.charPos + 5]))
3622
if (_ps.
chars
[_ps.charPos] == '?')
3626
if (_ps.
chars
[_ps.charPos + 1] == '>')
3692
switch (_ps.
chars
.AsSpan(_ps.charPos, nameEndPos - _ps.charPos))
3733
sb.Append(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
3737
if (_ps.
chars
[_ps.charPos] != '=')
3740
if (_ps.
chars
[_ps.charPos] != '=')
3748
char quoteChar = _ps.
chars
[_ps.charPos];
3752
quoteChar = _ps.
chars
[_ps.charPos];
3771
chars = _ps.
chars
;
3777
if (_ps.
chars
[pos] == quoteChar)
3784
if (_ps.
chars
.AsSpan(_ps.charPos).StartsWith("1.0"))
3789
attr.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3795
string badVersion = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3800
string encName = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3810
switch (_ps.
chars
.AsSpan(_ps.charPos, pos - _ps.charPos))
3826
attr.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3895
Debug.Assert(_ps.
chars
!= null);
3896
char[] chars = _ps.
chars
;
4120
Debug.Assert(_ps.
chars
!= null);
4121
char[] chars = _ps.
chars
;
4294
Debug.Assert(_ps.
chars
!= null);
4295
char[] chars = _ps.
chars
;
4356
chars = _ps.
chars
;
4419
chars = _ps.
chars
;
4545
Debug.Assert(_ps.
chars
!= null);
4546
char[] chars = _ps.
chars
;
4573
chars = _ps.
chars
;
4656
Debug.Assert(_ps.
chars
!= null);
4661
args[3] = new string(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
4675
Debug.Assert(_ps.
chars
!= null);
4676
char[] chars = _ps.
chars
;
4827
chars = _ps.
chars
;
4833
chars = _ps.
chars
;
4898
chars = _ps.
chars
;
4930
chars = _ps.
chars
;
5096
Debug.Assert(_ps.
chars
!= null);
5097
char[] chars = _ps.
chars
;
5273
chars = _ps.
chars
;
5310
if (_ps.
chars
[_ps.charPos] != (char)0xD)
5346
chars = _ps.
chars
;
5419
Debug.Assert(_ps.
chars
!= null);
5420
_curNode.SetValueNode(nodeType, _ps.
chars
, startPos, endPos - startPos);
5433
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5439
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5464
Debug.Assert(_ps.
chars
!= null);
5465
_curNode.SetValueNode(XmlNodeType.Text, _ps.
chars
, startPos, endPos - startPos);
5474
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5481
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5539
Debug.Assert(_ps.
chars
!= null);
5540
char[] chars = _ps.
chars
;
5653
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[pos - 1]))
5662
chars = _ps.
chars
;
5709
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos + offset);
5725
if (_ps.
chars
[_ps.charPos] != (char)0xD && _ps.
chars
[_ps.charPos] != ']')
5749
chars = _ps.
chars
;
5782
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5784
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5904
Debug.Assert(_ps.
chars
!= null);
5908
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos))
5917
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos))
5929
if (XmlCharType.IsCharData(_ps.
chars
[_ps.charPos]))
5935
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos);
5942
Debug.Assert(_ps.
chars
!= null);
5943
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
5952
Debug.Assert(_ps.
chars
!= null);
5953
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
5964
if (_ps.
chars
[_ps.charPos + 1] == '#')
6005
if (_ps.
chars
[endPos] != ';')
6011
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
6207
Debug.Assert(_ps.
chars
!= null);
6208
string target = _nameTable.Add(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
6229
char ch = _ps.
chars
[_ps.charPos];
6237
if (ch != '?' || _ps.
chars
[_ps.charPos + 1] != '>')
6239
Throw(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.
chars
, _ps.charsUsed, _ps.charPos));
6255
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
6260
piInDtdStringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6283
sb.Append(_ps.
chars
, startPos, endPos - startPos);
6285
sb.Append(_ps.
chars
, startPos, endPos - startPos);
6308
Debug.Assert(_ps.
chars
!= null);
6310
char[] chars = _ps.
chars
;
6480
Debug.Assert(_ps.
chars
!= null);
6481
_curNode.SetValueNode(type, _ps.
chars
, startPos, endPos - startPos);
6487
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6490
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6513
Debug.Assert(_ps.
chars
!= null);
6515
char[] chars = _ps.
chars
;
6681
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("DOCTYPE"))
6686
Debug.Assert(_ps.
chars
!= null);
6687
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[_ps.charPos + 7]))
6751
Debug.Assert(_ps.
chars
!= null);
6752
if (_ps.
chars
[_ps.charPos] == 'P')
6763
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("PUBLIC"))
6789
else if (_ps.
chars
[_ps.charPos] == 'S')
6800
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("SYSTEM"))
6817
else if (_ps.
chars
[_ps.charPos] != '[' && _ps.
chars
[_ps.charPos] != '>')
6823
if (_ps.
chars
[_ps.charPos] == '[')
6830
if (_ps.
chars
[_ps.charPos] != '>')
6835
else if (_ps.
chars
[_ps.charPos] == '>')
6848
Debug.Assert(_ps.
chars
!= null);
6850
char quoteChar = _ps.
chars
[_ps.charPos];
6867
Debug.Assert(_ps.
chars
!= null);
6868
char[] chars = _ps.
chars
;
7043
if (_ps.
chars
[_ps.charPos] != (char)0xD)
7055
chars = _ps.
chars
;
7064
Debug.Assert(_ps.
chars
!= null);
7065
char[] chars = _ps.
chars
;
7120
sb?.Append(_ps.
chars
, _ps.charPos, tmp2);
7133
sb?.Append(_ps.
chars
, _ps.charPos, tmp3);
7144
if (_ps.
chars
[_ps.charPos] != (char)0xD)
7152
chars = _ps.
chars
;
7158
Debug.Assert(_ps.
chars
!= null);
7159
Debug.Assert(_ps.
chars
[startPos] == '&');
7160
if (_ps.
chars
[startPos + 1] == '#')
7192
Debug.Assert(_ps.
chars
!= null);
7193
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
7213
Debug.Assert(_ps.
chars
!= null);
7214
Debug.Assert(_ps.
chars
[startPos] == '&' && _ps.
chars
[startPos + 1] == '#');
7222
chars = _ps.
chars
;
7291
Throw((_ps.
chars
[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(ch, '\0'));
7296
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos + 1);
7317
Throw((_ps.
chars
[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(high, low));
7324
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos + 1);
7355
Debug.Assert(_ps.
chars
!= null);
7356
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
7377
Debug.Assert(_ps.
chars
!= null);
7378
Debug.Assert(_ps.
chars
[startPos] == '&');
7379
Debug.Assert(_ps.
chars
[startPos + 1] != '#');
7382
char[] chars = _ps.
chars
;
7490
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
7491
_ps.
chars
[pos - 1] = ch;
7512
Debug.Assert(_ps.
chars
!= null);
7513
char[] chars = _ps.
chars
;
7575
Debug.Assert(_ps.
chars
!= null);
7576
chars = _ps.
chars
;
7608
Debug.Assert(_ps.
chars
!= null);
7611
if (_ps.
chars
[endPos] != ';')
7616
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
7661
Debug.Assert(_ps.
chars
!= null);
7666
string localName = _nameTable.Add(_ps.
chars
, _ps.charPos, endNamePos - _ps.charPos);
7674
if (prefixLen == _lastPrefix.Length && _ps.
chars
.AsSpan(_ps.charPos).StartsWith(_lastPrefix))
7676
return AddAttribute(_nameTable.Add(_ps.
chars
, colonPos + 1, endNamePos - colonPos - 1),
7682
string prefix = _nameTable.Add(_ps.
chars
, startPos, prefixLen);
7684
return AddAttribute(_nameTable.Add(_ps.
chars
, colonPos + 1, endNamePos - colonPos - 1),
8174
Debug.Assert(_ps.
chars
!= null);
8184
count = _incReadDecoder.Decode(_ps.
chars
, _incReadLeftStartPos, charsLeft);
8223
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 2).StartsWith("?>"));
8231
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 3).StartsWith("-->"));
8239
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 3).StartsWith("]]>"));
8268
char[] chars = _ps.
chars
;
8380
(_ps.
chars
[endPos] == '>' || XmlCharType.IsWhiteSpace(_ps.
chars
[endPos])))
8389
if (XmlCharType.IsWhiteSpace(_ps.
chars
[endPos]))
8393
if (_ps.
chars
[_ps.charPos] != '>')
8406
chars = _ps.
chars
;
8418
if (endPos - _ps.charPos - 1 == _curNode.localName.Length && _ps.
chars
.AsSpan(_ps.charPos + 1).StartsWith(_curNode.localName) &&
8419
(_ps.
chars
[endPos] == '>' || _ps.
chars
[endPos] == '/' || XmlCharType.IsWhiteSpace(_ps.
chars
[endPos])))
8428
chars = _ps.
chars
;
8503
count = _incReadDecoder.Decode(_ps.
chars
, startPos, charsParsed);
8564
Debug.Assert(_ps.
chars
!= null);
8566
char[] chars = _ps.
chars
;
8626
chars = _ps.
chars
;
8648
chars = _ps.
chars
;
8709
chars = _ps.
chars
;
8783
Debug.Assert(_ps.
chars
!= null);
8785
if (XmlCharType.IsNCNameSingleChar(_ps.
chars
[_ps.charPos]))
8788
while (XmlCharType.IsNCNameSingleChar(_ps.
chars
[pos]))
8792
return new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
8797
return new string(_ps.
chars
, _ps.charPos, 1);
8861
Debug.Assert(_ps.
chars
!= null);
8863
if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.
chars
[pos] == (char)0 && ReadData() == 0 && _ps.isStreamEof)
9385
Debug.Assert(_ps.
chars
!= null);
9401
charsRead = _incReadDecoder.Decode(_ps.
chars
, startPos, endPos - startPos);
9416
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
9418
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);