terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Replace() [2/2]

StringBuilder System.Text.StringBuilder.Replace ( string oldValue,
string newValue,
int startIndex,
int count )
inline

Definition at line 636 of file StringBuilder.cs.

637 {
638 do
639 {
640 int chunkLength = this.m_ChunkLength;
641 int maxCapacity = this.m_MaxCapacity;
642 }
643 while (oldValue == null || oldValue._stringLength == 0);
644 if (newValue == null)
645 {
646 }
648 int chunkOffset = chunkPrevious.m_ChunkOffset;
649 if (!this.StartsWith(chunkPrevious, startIndex, count, oldValue) || count == 0)
650 {
651 int stringLength = oldValue._stringLength;
652 if (count == 0)
653 {
654 goto IL_0055;
655 }
656 }
657 int chunkLength2 = chunkPrevious.m_ChunkLength;
658 IL_0055:
659 int chunkOffset2 = chunkPrevious.m_ChunkOffset;
660 int stringLength2 = oldValue._stringLength;
661 int stringLength3 = oldValue._stringLength;
662 int chunkOffset3 = this.m_ChunkOffset;
664 return this;
665 }
class f__AnonymousType0<< Count > j__TPar
bool StartsWith(StringBuilder chunk, int indexInChunk, int count, string value)

References System.count, j__TPar, System.Text.StringBuilder.m_ChunkLength, System.Text.StringBuilder.m_ChunkOffset, System.Text.StringBuilder.m_ChunkPrevious, System.Text.StringBuilder.m_MaxCapacity, System.startIndex, and System.Text.StringBuilder.StartsWith().