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)
67
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
;
5113
Debug.Assert(_ps.
chars
!= null);
5114
char[] chars = _ps.
chars
;
5290
chars = _ps.
chars
;
5327
if (_ps.
chars
[_ps.charPos] != (char)0xD)
5363
chars = _ps.
chars
;
5436
Debug.Assert(_ps.
chars
!= null);
5437
_curNode.SetValueNode(nodeType, _ps.
chars
, startPos, endPos - startPos);
5450
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5456
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5481
Debug.Assert(_ps.
chars
!= null);
5482
_curNode.SetValueNode(XmlNodeType.Text, _ps.
chars
, startPos, endPos - startPos);
5491
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5498
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5556
Debug.Assert(_ps.
chars
!= null);
5557
char[] chars = _ps.
chars
;
5670
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[pos - 1]))
5679
chars = _ps.
chars
;
5726
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos + offset);
5742
if (_ps.
chars
[_ps.charPos] != (char)0xD && _ps.
chars
[_ps.charPos] != ']')
5766
chars = _ps.
chars
;
5799
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5801
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5921
Debug.Assert(_ps.
chars
!= null);
5925
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos))
5934
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos))
5946
if (XmlCharType.IsCharData(_ps.
chars
[_ps.charPos]))
5952
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos);
5959
Debug.Assert(_ps.
chars
!= null);
5960
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
5969
Debug.Assert(_ps.
chars
!= null);
5970
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
5981
if (_ps.
chars
[_ps.charPos + 1] == '#')
6022
if (_ps.
chars
[endPos] != ';')
6028
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
6224
Debug.Assert(_ps.
chars
!= null);
6225
string target = _nameTable.Add(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
6246
char ch = _ps.
chars
[_ps.charPos];
6254
if (ch != '?' || _ps.
chars
[_ps.charPos + 1] != '>')
6256
Throw(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.
chars
, _ps.charsUsed, _ps.charPos));
6272
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
6277
piInDtdStringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6300
sb.Append(_ps.
chars
, startPos, endPos - startPos);
6302
sb.Append(_ps.
chars
, startPos, endPos - startPos);
6325
Debug.Assert(_ps.
chars
!= null);
6327
char[] chars = _ps.
chars
;
6497
Debug.Assert(_ps.
chars
!= null);
6498
_curNode.SetValueNode(type, _ps.
chars
, startPos, endPos - startPos);
6504
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6507
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6530
Debug.Assert(_ps.
chars
!= null);
6532
char[] chars = _ps.
chars
;
6698
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("DOCTYPE"))
6703
Debug.Assert(_ps.
chars
!= null);
6704
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[_ps.charPos + 7]))
6768
Debug.Assert(_ps.
chars
!= null);
6769
if (_ps.
chars
[_ps.charPos] == 'P')
6780
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("PUBLIC"))
6806
else if (_ps.
chars
[_ps.charPos] == 'S')
6817
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("SYSTEM"))
6834
else if (_ps.
chars
[_ps.charPos] != '[' && _ps.
chars
[_ps.charPos] != '>')
6840
if (_ps.
chars
[_ps.charPos] == '[')
6847
if (_ps.
chars
[_ps.charPos] != '>')
6852
else if (_ps.
chars
[_ps.charPos] == '>')
6865
Debug.Assert(_ps.
chars
!= null);
6867
char quoteChar = _ps.
chars
[_ps.charPos];
6884
Debug.Assert(_ps.
chars
!= null);
6885
char[] chars = _ps.
chars
;
7060
if (_ps.
chars
[_ps.charPos] != (char)0xD)
7072
chars = _ps.
chars
;
7081
Debug.Assert(_ps.
chars
!= null);
7082
char[] chars = _ps.
chars
;
7137
sb?.Append(_ps.
chars
, _ps.charPos, tmp2);
7150
sb?.Append(_ps.
chars
, _ps.charPos, tmp3);
7161
if (_ps.
chars
[_ps.charPos] != (char)0xD)
7169
chars = _ps.
chars
;
7175
Debug.Assert(_ps.
chars
!= null);
7176
Debug.Assert(_ps.
chars
[startPos] == '&');
7177
if (_ps.
chars
[startPos + 1] == '#')
7209
Debug.Assert(_ps.
chars
!= null);
7210
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
7230
Debug.Assert(_ps.
chars
!= null);
7231
Debug.Assert(_ps.
chars
[startPos] == '&' && _ps.
chars
[startPos + 1] == '#');
7239
chars = _ps.
chars
;
7308
Throw((_ps.
chars
[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(ch, '\0'));
7313
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos + 1);
7334
Throw((_ps.
chars
[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(high, low));
7341
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos + 1);
7372
Debug.Assert(_ps.
chars
!= null);
7373
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
7394
Debug.Assert(_ps.
chars
!= null);
7395
Debug.Assert(_ps.
chars
[startPos] == '&');
7396
Debug.Assert(_ps.
chars
[startPos + 1] != '#');
7399
char[] chars = _ps.
chars
;
7507
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
7508
_ps.
chars
[pos - 1] = ch;
7529
Debug.Assert(_ps.
chars
!= null);
7530
char[] chars = _ps.
chars
;
7592
Debug.Assert(_ps.
chars
!= null);
7593
chars = _ps.
chars
;
7625
Debug.Assert(_ps.
chars
!= null);
7628
if (_ps.
chars
[endPos] != ';')
7633
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
7678
Debug.Assert(_ps.
chars
!= null);
7683
string localName = _nameTable.Add(_ps.
chars
, _ps.charPos, endNamePos - _ps.charPos);
7691
if (prefixLen == _lastPrefix.Length && _ps.
chars
.AsSpan(_ps.charPos).StartsWith(_lastPrefix))
7693
return AddAttribute(_nameTable.Add(_ps.
chars
, colonPos + 1, endNamePos - colonPos - 1),
7699
string prefix = _nameTable.Add(_ps.
chars
, startPos, prefixLen);
7701
return AddAttribute(_nameTable.Add(_ps.
chars
, colonPos + 1, endNamePos - colonPos - 1),
8191
Debug.Assert(_ps.
chars
!= null);
8201
count = _incReadDecoder.Decode(_ps.
chars
, _incReadLeftStartPos, charsLeft);
8240
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 2).StartsWith("?>"));
8248
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 3).StartsWith("-->"));
8256
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 3).StartsWith("]]>"));
8285
char[] chars = _ps.
chars
;
8397
(_ps.
chars
[endPos] == '>' || XmlCharType.IsWhiteSpace(_ps.
chars
[endPos])))
8406
if (XmlCharType.IsWhiteSpace(_ps.
chars
[endPos]))
8410
if (_ps.
chars
[_ps.charPos] != '>')
8423
chars = _ps.
chars
;
8435
if (endPos - _ps.charPos - 1 == _curNode.localName.Length && _ps.
chars
.AsSpan(_ps.charPos + 1).StartsWith(_curNode.localName) &&
8436
(_ps.
chars
[endPos] == '>' || _ps.
chars
[endPos] == '/' || XmlCharType.IsWhiteSpace(_ps.
chars
[endPos])))
8445
chars = _ps.
chars
;
8520
count = _incReadDecoder.Decode(_ps.
chars
, startPos, charsParsed);
8581
Debug.Assert(_ps.
chars
!= null);
8583
char[] chars = _ps.
chars
;
8643
chars = _ps.
chars
;
8665
chars = _ps.
chars
;
8726
chars = _ps.
chars
;
8800
Debug.Assert(_ps.
chars
!= null);
8802
if (XmlCharType.IsNCNameSingleChar(_ps.
chars
[_ps.charPos]))
8805
while (XmlCharType.IsNCNameSingleChar(_ps.
chars
[pos]))
8809
return new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
8814
return new string(_ps.
chars
, _ps.charPos, 1);
8878
Debug.Assert(_ps.
chars
!= null);
8880
if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.
chars
[pos] == (char)0 && ReadData() == 0 && _ps.isStreamEof)
9402
Debug.Assert(_ps.
chars
!= null);
9418
charsRead = _incReadDecoder.Decode(_ps.
chars
, startPos, endPos - startPos);
9433
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
9435
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);