11 writes to chars
System.Private.Xml (11)
System\Xml\Core\XmlTextReaderImpl.cs (6)
2879
_ps.
chars
= new char[bufferSize + 1];
2929
_ps.
chars
= new char[XmlReader.AsyncBufferSize + 1];
2933
_ps.
chars
= new char[XmlReader.DefaultBufferSize + 1];
2956
_ps.
chars
= new char[len + 1];
3389
_ps.
chars
= newChars;
3455
_ps.
chars
= newChars;
System\Xml\Core\XmlTextReaderImplAsync.cs (4)
906
_ps.
chars
= new char[bufferSize + 1];
964
_ps.
chars
= new char[bufferSize + 1];
1060
_ps.
chars
= newChars;
1125
_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)
1868
Debug.Assert(_ps.
chars
!= null);
1869
BlockCopyChars(_ps.
chars
, startPos, buffer, (index + readCount), copyCount);
1892
Debug.Assert(_ps.
chars
!= null);
1893
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
2179
_stringBuilder.Append(_ps.
chars
, _incReadLeftStartPos, _incReadLeftEndPos - _incReadLeftStartPos);
2192
_stringBuilder.Append(_ps.
chars
, _ps.charPos, _ps.charsUsed - _ps.charPos);
2385
return _ps.
chars
;
2877
if (_ps.
chars
== null || _ps.
chars
.Length < bufferSize + 1)
2925
if (_ps.
chars
== null)
2957
str.CopyTo(0, _ps.
chars
, 0, str.Length);
2959
_ps.
chars
[len] = (char)0;
3316
Debug.Assert(_ps.
chars
!= null);
3325
int encodingByteCount = _ps.encoding.GetByteCount(_ps.
chars
, 0, _ps.charPos);
3333
_ps.bytePos += _ps.encoding.GetByteCount(_ps.
chars
, 0, _ps.charPos);
3359
Debug.Assert(_ps.
chars
!= null);
3364
if (_ps.charsUsed == _ps.
chars
.Length - 1)
3387
char[] newChars = new char[_ps.
chars
.Length * 2];
3388
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
3407
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
3415
int charsLen = _ps.
chars
.Length;
3446
BlockCopyChars(_ps.
chars
, _ps.charPos, _ps.
chars
, 0, copyCharsCount);
3453
char[] newChars = new char[_ps.
chars
.Length * 2];
3454
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
3479
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
3513
charsRead = _ps.textReader.Read(_ps.
chars
, _ps.charsUsed, _ps.
chars
.Length - _ps.charsUsed - 1);
3525
Debug.Assert(_ps.charsUsed < _ps.
chars
.Length);
3529
_ps.
chars
[_ps.charsUsed] = (char)0;
3537
Debug.Assert(_ps.
chars
!= null);
3538
Debug.Assert(maxCharsCount <= _ps.
chars
.Length - _ps.charsUsed - 1);
3552
_ps.decoder.Convert(_ps.bytes, _ps.bytePos, bytesCount, _ps.
chars
, _ps.charsUsed, maxCharsCount, false, out bytesCount, out charsCount, out completed);
3579
Debug.Assert(_ps.
chars
!= null);
3580
_ps.decoder.Convert(_ps.bytes, _ps.bytePos + bytesDecoded, 1, _ps.
chars
, _ps.charsUsed + charsDecoded, 2, false, out bDec, out chDec, out completed);
3627
Debug.Assert(_ps.
chars
!= null);
3628
BlockCopyChars(_ps.
chars
, sourcePos, _ps.
chars
, destPos, count);
3642
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith(XmlDeclarationBeginning) ||
3643
XmlCharType.IsNameSingleChar(_ps.
chars
![_ps.charPos + 5]))
3670
if (_ps.
chars
[_ps.charPos] == '?')
3674
if (_ps.
chars
[_ps.charPos + 1] == '>')
3740
switch (_ps.
chars
.AsSpan(_ps.charPos, nameEndPos - _ps.charPos))
3781
sb.Append(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
3785
if (_ps.
chars
[_ps.charPos] != '=')
3788
if (_ps.
chars
[_ps.charPos] != '=')
3796
char quoteChar = _ps.
chars
[_ps.charPos];
3800
quoteChar = _ps.
chars
[_ps.charPos];
3819
chars = _ps.
chars
;
3825
if (_ps.
chars
[pos] == quoteChar)
3832
if (_ps.
chars
.AsSpan(_ps.charPos).StartsWith("1.0"))
3837
attr.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3843
string badVersion = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3848
string encName = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3858
switch (_ps.
chars
.AsSpan(_ps.charPos, pos - _ps.charPos))
3874
attr.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
3943
Debug.Assert(_ps.
chars
!= null);
3944
char[] chars = _ps.
chars
;
4168
Debug.Assert(_ps.
chars
!= null);
4169
char[] chars = _ps.
chars
;
4342
Debug.Assert(_ps.
chars
!= null);
4343
char[] chars = _ps.
chars
;
4404
chars = _ps.
chars
;
4467
chars = _ps.
chars
;
4593
Debug.Assert(_ps.
chars
!= null);
4594
char[] chars = _ps.
chars
;
4621
chars = _ps.
chars
;
4704
Debug.Assert(_ps.
chars
!= null);
4709
args[3] = new string(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
4723
Debug.Assert(_ps.
chars
!= null);
4724
char[] chars = _ps.
chars
;
4875
chars = _ps.
chars
;
4881
chars = _ps.
chars
;
4946
chars = _ps.
chars
;
4978
chars = _ps.
chars
;
5137
Debug.Assert(_ps.
chars
!= null);
5138
char[] chars = _ps.
chars
;
5314
chars = _ps.
chars
;
5351
if (_ps.
chars
[_ps.charPos] != (char)0xD)
5387
chars = _ps.
chars
;
5460
Debug.Assert(_ps.
chars
!= null);
5461
_curNode.SetValueNode(nodeType, _ps.
chars
, startPos, endPos - startPos);
5474
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5480
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5505
Debug.Assert(_ps.
chars
!= null);
5506
_curNode.SetValueNode(XmlNodeType.Text, _ps.
chars
, startPos, endPos - startPos);
5515
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5522
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5580
Debug.Assert(_ps.
chars
!= null);
5581
char[] chars = _ps.
chars
;
5694
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[pos - 1]))
5703
chars = _ps.
chars
;
5750
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos + offset);
5766
if (_ps.
chars
[_ps.charPos] != (char)0xD && _ps.
chars
[_ps.charPos] != ']')
5790
chars = _ps.
chars
;
5823
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5825
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
5945
Debug.Assert(_ps.
chars
!= null);
5949
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos))
5958
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos))
5970
if (XmlCharType.IsCharData(_ps.
chars
[_ps.charPos]))
5976
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos);
5983
Debug.Assert(_ps.
chars
!= null);
5984
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
5993
Debug.Assert(_ps.
chars
!= null);
5994
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
6005
if (_ps.
chars
[_ps.charPos + 1] == '#')
6046
if (_ps.
chars
[endPos] != ';')
6052
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
6248
Debug.Assert(_ps.
chars
!= null);
6249
string target = _nameTable.Add(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
6270
char ch = _ps.
chars
[_ps.charPos];
6278
if (ch != '?' || _ps.
chars
[_ps.charPos + 1] != '>')
6280
Throw(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.
chars
, _ps.charsUsed, _ps.charPos));
6296
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
6301
piInDtdStringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6324
sb.Append(_ps.
chars
, startPos, endPos - startPos);
6326
sb.Append(_ps.
chars
, startPos, endPos - startPos);
6349
Debug.Assert(_ps.
chars
!= null);
6351
char[] chars = _ps.
chars
;
6521
Debug.Assert(_ps.
chars
!= null);
6522
_curNode.SetValueNode(type, _ps.
chars
, startPos, endPos - startPos);
6528
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6531
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
6554
Debug.Assert(_ps.
chars
!= null);
6556
char[] chars = _ps.
chars
;
6722
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("DOCTYPE"))
6727
Debug.Assert(_ps.
chars
!= null);
6728
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[_ps.charPos + 7]))
6792
Debug.Assert(_ps.
chars
!= null);
6793
if (_ps.
chars
[_ps.charPos] == 'P')
6804
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("PUBLIC"))
6830
else if (_ps.
chars
[_ps.charPos] == 'S')
6841
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("SYSTEM"))
6858
else if (_ps.
chars
[_ps.charPos] != '[' && _ps.
chars
[_ps.charPos] != '>')
6864
if (_ps.
chars
[_ps.charPos] == '[')
6871
if (_ps.
chars
[_ps.charPos] != '>')
6876
else if (_ps.
chars
[_ps.charPos] == '>')
6889
Debug.Assert(_ps.
chars
!= null);
6891
char quoteChar = _ps.
chars
[_ps.charPos];
6908
Debug.Assert(_ps.
chars
!= null);
6909
char[] chars = _ps.
chars
;
7084
if (_ps.
chars
[_ps.charPos] != (char)0xD)
7096
chars = _ps.
chars
;
7105
Debug.Assert(_ps.
chars
!= null);
7106
char[] chars = _ps.
chars
;
7161
sb?.Append(_ps.
chars
, _ps.charPos, tmp2);
7174
sb?.Append(_ps.
chars
, _ps.charPos, tmp3);
7185
if (_ps.
chars
[_ps.charPos] != (char)0xD)
7193
chars = _ps.
chars
;
7199
Debug.Assert(_ps.
chars
!= null);
7200
Debug.Assert(_ps.
chars
[startPos] == '&');
7201
if (_ps.
chars
[startPos + 1] == '#')
7233
Debug.Assert(_ps.
chars
!= null);
7234
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
7254
Debug.Assert(_ps.
chars
!= null);
7255
Debug.Assert(_ps.
chars
[startPos] == '&' && _ps.
chars
[startPos + 1] == '#');
7263
chars = _ps.
chars
;
7332
Throw((_ps.
chars
[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(ch, '\0'));
7337
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos + 1);
7358
Throw((_ps.
chars
[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(high, low));
7365
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos + 1);
7396
Debug.Assert(_ps.
chars
!= null);
7397
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
7418
Debug.Assert(_ps.
chars
!= null);
7419
Debug.Assert(_ps.
chars
[startPos] == '&');
7420
Debug.Assert(_ps.
chars
[startPos + 1] != '#');
7423
char[] chars = _ps.
chars
;
7531
internalSubsetBuilder?.Append(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
7532
_ps.
chars
[pos - 1] = ch;
7553
Debug.Assert(_ps.
chars
!= null);
7554
char[] chars = _ps.
chars
;
7616
Debug.Assert(_ps.
chars
!= null);
7617
chars = _ps.
chars
;
7649
Debug.Assert(_ps.
chars
!= null);
7652
if (_ps.
chars
[endPos] != ';')
7657
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
7702
Debug.Assert(_ps.
chars
!= null);
7707
string localName = _nameTable.Add(_ps.
chars
, _ps.charPos, endNamePos - _ps.charPos);
7715
if (prefixLen == _lastPrefix.Length && _ps.
chars
.AsSpan(_ps.charPos).StartsWith(_lastPrefix))
7717
return AddAttribute(_nameTable.Add(_ps.
chars
, colonPos + 1, endNamePos - colonPos - 1),
7723
string prefix = _nameTable.Add(_ps.
chars
, startPos, prefixLen);
7725
return AddAttribute(_nameTable.Add(_ps.
chars
, colonPos + 1, endNamePos - colonPos - 1),
8216
Debug.Assert(_ps.
chars
!= null);
8226
count = _incReadDecoder.Decode(_ps.
chars
, _incReadLeftStartPos, charsLeft);
8265
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 2).StartsWith("?>"));
8273
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 3).StartsWith("-->"));
8281
Debug.Assert(_ps.
chars
.AsSpan(_ps.charPos - 3).StartsWith("]]>"));
8310
char[] chars = _ps.
chars
;
8422
(_ps.
chars
[endPos] == '>' || XmlCharType.IsWhiteSpace(_ps.
chars
[endPos])))
8431
if (XmlCharType.IsWhiteSpace(_ps.
chars
[endPos]))
8435
if (_ps.
chars
[_ps.charPos] != '>')
8448
chars = _ps.
chars
;
8460
if (endPos - _ps.charPos - 1 == _curNode.localName.Length && _ps.
chars
.AsSpan(_ps.charPos + 1).StartsWith(_curNode.localName) &&
8461
(_ps.
chars
[endPos] == '>' || _ps.
chars
[endPos] == '/' || XmlCharType.IsWhiteSpace(_ps.
chars
[endPos])))
8470
chars = _ps.
chars
;
8545
count = _incReadDecoder.Decode(_ps.
chars
, startPos, charsParsed);
8606
Debug.Assert(_ps.
chars
!= null);
8608
char[] chars = _ps.
chars
;
8668
chars = _ps.
chars
;
8690
chars = _ps.
chars
;
8751
chars = _ps.
chars
;
8825
Debug.Assert(_ps.
chars
!= null);
8827
if (XmlCharType.IsNCNameSingleChar(_ps.
chars
[_ps.charPos]))
8830
while (XmlCharType.IsNCNameSingleChar(_ps.
chars
[pos]))
8834
return new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
8839
return new string(_ps.
chars
, _ps.charPos, 1);
8903
Debug.Assert(_ps.
chars
!= null);
8905
if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.
chars
[pos] == (char)0 && ReadData() == 0 && _ps.isStreamEof)
9427
Debug.Assert(_ps.
chars
!= null);
9443
charsRead = _incReadDecoder.Decode(_ps.
chars
, startPos, endPos - startPos);
9458
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
9460
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)
1058
char[] newChars = new char[_ps.
chars
.Length * 2];
1059
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
1077
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
1085
int charsLen = _ps.
chars
.Length;
1116
BlockCopyChars(_ps.
chars
, _ps.charPos, _ps.
chars
, 0, copyCharsCount);
1123
char[] newChars = new char[_ps.
chars
.Length * 2];
1124
BlockCopyChars(_ps.
chars
, 0, newChars, 0, _ps.
chars
.Length);
1147
charsRead = _ps.
chars
.Length - _ps.charsUsed - 1;
1179
charsRead = await _ps.textReader.ReadAsync(_ps.
chars
.AsMemory(_ps.charsUsed, _ps.
chars
.Length - _ps.charsUsed - 1)).ConfigureAwait(false);
1191
Debug.Assert(_ps.charsUsed < _ps.
chars
.Length);
1194
_ps.
chars
[_ps.charsUsed] = (char)0;
1209
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith(XmlDeclarationBeginning) ||
1210
XmlCharType.IsNameSingleChar(_ps.
chars
[_ps.charPos + 5]))
1236
if (_ps.
chars
[_ps.charPos] == '?')
1240
if (_ps.
chars
[_ps.charPos + 1] == '>')
1306
switch (_ps.
chars
.AsSpan(_ps.charPos, nameEndPos - _ps.charPos))
1345
sb.Append(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
1349
if (_ps.
chars
[_ps.charPos] != '=')
1352
if (_ps.
chars
[_ps.charPos] != '=')
1360
char quoteChar = _ps.
chars
[_ps.charPos];
1364
quoteChar = _ps.
chars
[_ps.charPos];
1382
chars = _ps.
chars
;
1389
if (_ps.
chars
[pos] == quoteChar)
1396
if (_ps.
chars
.AsSpan(_ps.charPos).StartsWith("1.0"))
1400
attr!.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
1406
string badVersion = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
1411
string encName = new string(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
1420
switch (_ps.
chars
.AsSpan(_ps.charPos, pos - _ps.charPos))
1435
attr!.SetValue(_ps.
chars
, _ps.charPos, pos - _ps.charPos);
1505
char[] chars = _ps.
chars
;
1764
char[] chars = _ps.
chars
;
1889
char[] chars = _ps.
chars
;
1981
char[] chars = _ps.
chars
;
2034
char[] chars = _ps.
chars
;
2135
char[] chars = _ps.
chars
;
2218
chars = _ps.
chars
;
2324
args[3] = new string(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
2338
char[] chars = _ps.
chars
;
2496
chars = _ps.
chars
;
2506
chars = _ps.
chars
;
2571
chars = _ps.
chars
;
2603
chars = _ps.
chars
;
2636
char[] chars = _ps.
chars
;
2818
chars = _ps.
chars
;
2855
if (_ps.
chars
[_ps.charPos] != (char)0xD)
2892
chars = _ps.
chars
;
2960
_curNode.SetValueNode(nodeType, _ps.
chars
, startPos, endPos - startPos);
3019
_curNode.SetValueNode(nodeType, _ps.
chars
, startPos, endPos - startPos);
3034
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3045
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3070
_curNode.SetValueNode(XmlNodeType.Text, _ps.
chars
, startPos, endPos - startPos);
3079
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3092
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3199
Task<(int, int, int, bool)> task = ParseTextAsync(outOrChars, _ps.
chars
, _ps.charPos, 0, -1, outOrChars);
3433
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[pos - 1]))
3442
chars = _ps.
chars
;
3474
chars = _ps.
chars
;
3482
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos + offset);
3501
if (_ps.
chars
[_ps.charPos] != (char)0xD && _ps.
chars
[_ps.charPos] != ']')
3530
chars = _ps.
chars
;
3576
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3583
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
3714
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || await ZeroEndingStreamAsync(_ps.charPos).ConfigureAwait(false))
3723
if (_ps.
chars
[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || await ZeroEndingStreamAsync(_ps.charPos).ConfigureAwait(false))
3735
if (XmlCharType.IsCharData(_ps.
chars
[_ps.charPos]))
3741
ThrowInvalidChar(_ps.
chars
, _ps.charsUsed, _ps.charPos);
3748
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
3759
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
3770
if (_ps.
chars
[_ps.charPos + 1] == '#')
3819
if (_ps.
chars
[endPos] != ';')
3825
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
3942
string target = _nameTable.Add(_ps.
chars
, _ps.charPos, nameEndPos - _ps.charPos);
3963
char ch = _ps.
chars
[_ps.charPos];
3971
if (ch != '?' || _ps.
chars
[_ps.charPos + 1] != '>')
3973
Throw(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.
chars
, _ps.charsUsed, _ps.charPos));
3994
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
3999
piInDtdStringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
4029
sb.Append(_ps.
chars
, startPos, endPos - startPos);
4036
sb.Append(_ps.
chars
, startPos, endPos - startPos);
4062
char[] chars = _ps.
chars
;
4240
_curNode.SetValueNode(type, _ps.
chars
, startPos, endPos - startPos);
4248
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
4255
_stringBuilder.Append(_ps.
chars
, startPos, endPos - startPos);
4287
char[] chars = _ps.
chars
;
4454
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("DOCTYPE"))
4458
if (!XmlCharType.IsWhiteSpace(_ps.
chars
[_ps.charPos + 7]))
4527
if (_ps.
chars
[_ps.charPos] == 'P')
4538
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("PUBLIC"))
4564
else if (_ps.
chars
[_ps.charPos] == 'S')
4575
if (!_ps.
chars
.AsSpan(_ps.charPos).StartsWith("SYSTEM"))
4592
else if (_ps.
chars
[_ps.charPos] != '[' && _ps.
chars
[_ps.charPos] != '>')
4598
if (_ps.
chars
[_ps.charPos] == '[')
4605
if (_ps.
chars
[_ps.charPos] != '>')
4610
else if (_ps.
chars
[_ps.charPos] == '>')
4624
char quoteChar = _ps.
chars
[_ps.charPos];
4641
char[] chars = _ps.
chars
;
4816
if (_ps.
chars
[_ps.charPos] != (char)0xD)
4828
chars = _ps.
chars
;
4837
char[] chars = _ps.
chars
;
4892
sb?.Append(_ps.
chars
, _ps.charPos, tmp2);
4905
sb?.Append(_ps.
chars
, _ps.charPos, tmp3);
4916
if (_ps.
chars
[_ps.charPos] != (char)0xD)
4924
chars = _ps.
chars
;
4950
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
4984
Debug.Assert(_ps.
chars
[_ps.charPos] == '&');
5015
char[] chars = _ps.
chars
;
5083
chars = _ps.
chars
;
5118
if (_ps.
chars
[endPos] != ';')
5123
string entityName = _nameTable.Add(_ps.
chars
, _ps.charPos, endPos - _ps.charPos);
5275
if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.
chars
[pos] == (char)0 && await ReadDataAsync().ConfigureAwait(false) == 0 && _ps.isStreamEof)
5443
charsRead = _incReadDecoder.Decode(_ps.
chars
, startPos, endPos - startPos);
5457
_curNode.SetValue(_ps.
chars
, startPos, endPos - startPos);
5459
AdjustLineInfo(_ps.
chars
, startPos - charsRead, startPos, _ps.eolNormalized, ref _incReadLineInfo);