2 writes to _stringBuilder
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (2)
348
_stringBuilder
= new BufferBuilder();
414
_stringBuilder
= new BufferBuilder();
76 references to _stringBuilder
dotnet-svcutil-lib (76)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (76)
2228
Debug.Assert(
_stringBuilder
.Length == 0);
2240
_stringBuilder
.Append(_ps.chars, _incReadLeftStartPos, _incReadLeftEndPos - _incReadLeftStartPos);
2253
_stringBuilder
.Append(_ps.chars, _ps.charPos, _ps.charsUsed - _ps.charPos);
2259
string remainer =
_stringBuilder
.ToString();
2260
_stringBuilder
.Length = 0;
3660
Debug.Assert(
_stringBuilder
.Length == 0 || isTextDecl);
3661
BufferBuilder sb = isTextDecl ? new BufferBuilder() :
_stringBuilder
;
4343
_stringBuilder
.Length = 0;
4351
_stringBuilder
.Append(el.GetNameWPrefix(_nameTable));
4354
_stringBuilder
.Append(", ");
4358
_stringBuilder
.Append(".");
4361
Throw(_ps.charsUsed, ResXml.Xml_UnexpectedEOFInElementContent,
_stringBuilder
.ToString());
5227
Debug.Assert(
_stringBuilder
.Length == 0);
5242
_stringBuilder
.Append(chars, _ps.charPos, pos - _ps.charPos);
5260
_stringBuilder
.Append((char)0x20); // CDATA normalization of 0xA
5270
_stringBuilder
.Append(_ps.eolNormalized ? "\u0020\u0020" : "\u0020"); // CDATA normalization of 0xD 0xA
5279
_stringBuilder
.Append((char)0x20); // CDATA normalization of 0xD and 0xD 0xA
5294
_stringBuilder
.Append((char)0x20); // CDATA normalization of 0x9
5311
_stringBuilder
.Append(chars, _ps.charPos, pos - _ps.charPos);
5327
int valueChunkLen =
_stringBuilder
.Length - valueChunkStartPos;
5333
textChunk.SetValueNode(XmlNodeType.Text,
_stringBuilder
.ToString(valueChunkStartPos, valueChunkLen));
5349
_stringBuilder
.Append('&');
5350
_stringBuilder
.Append(entityName);
5351
_stringBuilder
.Append(';');
5354
valueChunkStartPos =
_stringBuilder
.Length;
5371
int valueChunkLen =
_stringBuilder
.Length - valueChunkStartPos;
5377
textChunk.SetValueNode(XmlNodeType.Text,
_stringBuilder
.ToString(valueChunkStartPos, valueChunkLen));
5465
valueChunkStartPos =
_stringBuilder
.Length;
5478
int valueChunkLen =
_stringBuilder
.Length - valueChunkStartPos;
5484
textChunk.SetValueNode(XmlNodeType.Text,
_stringBuilder
.ToString(valueChunkStartPos, valueChunkLen));
5491
attr.SetValue(
_stringBuilder
.ToString());
5492
_stringBuilder
.Length = 0;
5528
Debug.Assert(
_stringBuilder
.Length == 0);
5556
_stringBuilder
.Append(_ps.chars, startPos, endPos - startPos);
5562
_stringBuilder
.Append(_ps.chars, startPos, endPos - startPos);
5565
Debug.Assert(
_stringBuilder
.Length > 0);
5570
_stringBuilder
.Length = 0;
5574
_curNode.SetValueNode(nodeType,
_stringBuilder
.ToString());
5575
_stringBuilder
.Length = 0;
5596
_stringBuilder
.Append(_ps.chars, startPos, endPos - startPos);
5603
_stringBuilder
.Append(_ps.chars, startPos, endPos - startPos);
5605
} while (!fullValue && orChars <= 0x20 &&
_stringBuilder
.Length < MinWhitespaceLookahedCount);
5608
XmlNodeType nodeType = (
_stringBuilder
.Length < MinWhitespaceLookahedCount) ? GetTextNodeType(orChars) : XmlNodeType.Text;
5612
_stringBuilder
.Length = 0;
5620
_curNode.SetValueNode(nodeType,
_stringBuilder
.ToString());
5621
_stringBuilder
.Length = 0;
5895
Debug.Assert(
_stringBuilder
.Length == 0);
5899
_curNode.CopyTo(_readValueOffset,
_stringBuilder
);
5906
_stringBuilder
.Append(_ps.chars, startPos, endPos - startPos);
5908
_stringBuilder
.Append(_ps.chars, startPos, endPos - startPos);
5910
Debug.Assert(
_stringBuilder
.Length > 0);
5911
_curNode.SetValue(
_stringBuilder
.ToString());
5912
_stringBuilder
.Length = 0;
6026
Debug.Assert(
_stringBuilder
.Length == 0);
6041
EatWhitespaces(
_stringBuilder
);
6044
if (
_stringBuilder
.Length > 0)
6046
_curNode.SetValueNode(nodeType,
_stringBuilder
.ToString());
6047
_stringBuilder
.Length = 0;
6323
Debug.Assert(
_stringBuilder
.Length == 0);
6392
sb =
_stringBuilder
;
6393
Debug.Assert(
_stringBuilder
.Length == 0);
6408
_curNode.SetValue(
_stringBuilder
.ToString());
6409
_stringBuilder
.Length = 0;
6598
Debug.Assert(
_stringBuilder
.Length == 0);
6607
_stringBuilder
.Append(_ps.chars, startPos, endPos - startPos);
6609
_stringBuilder
.Append(_ps.chars, startPos, endPos - startPos);
6610
_curNode.SetValueNode(type,
_stringBuilder
.ToString());
6611
_stringBuilder
.Length = 0;
8720
Debug.Assert(
_stringBuilder
.Length == 0);
8759
_stringBuilder
.Append(chars, _ps.charPos, pos - _ps.charPos);
8776
if (
_stringBuilder
.Length == 0)
8824
_stringBuilder
.Append(chars, _ps.charPos, pos - _ps.charPos);
8830
if (
_stringBuilder
.Length > 0)
8855
_stringBuilder
.Append(chars, _ps.charPos, pos - _ps.charPos);
8858
_curNode.SetValueNode(XmlNodeType.Text,
_stringBuilder
.ToString());
8859
_stringBuilder
.Length = 0;