Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Append() [2/2]

void ReLogic.Text.WrappedTextBuilder.Append ( string text)
inline

Definition at line 140 of file WrappedTextBuilder.cs.

141 {
142 StringReader stringReader = new StringReader(text);
144 while (stringReader.Peek() > 0)
145 {
146 if ((ushort)stringReader.Peek() == 10)
147 {
148 stringReader.Read();
150 }
151 else
152 {
153 string text2 = stringReader.ReadUntilBreakable(_culture);
154 Append(new NonBreakingText(_font, text2));
155 }
156 }
157 }
readonly StringBuilder _completedText
override int Read()
override int Peek()
int EnsureCapacity(int capacity)

References ReLogic.Text.WrappedTextBuilder._completedText, ReLogic.Text.WrappedTextBuilder._culture, ReLogic.Text.WrappedTextBuilder._font, System.IO.Append, System.Text.StringBuilder.Capacity, ReLogic.Text.WrappedTextBuilder.CommitWorkingLine(), System.Text.StringBuilder.EnsureCapacity(), System.IO.StringReader.Peek(), and System.IO.StringReader.Read().