|
| FastString (int initialCapacity=32) |
|
bool | IsEmpty () |
|
override string | ToString () |
|
bool | IsModified (int newControlValue) |
|
bool | IsModified (object newControlValue) |
|
void | Set (string str) |
|
void | Set (object str) |
|
void | Set< T1, T2 > (T1 str1, T2 str2) |
|
void | Set< T1, T2, T3 > (T1 str1, T2 str2, T3 str3) |
|
void | Set< T1, T2, T3, T4 > (T1 str1, T2 str2, T3 str3, T4 str4) |
|
void | Set (params object[] str) |
|
FastString | Clear () |
|
FastString | Append (string value) |
|
FastString | Append (object value) |
|
FastString | Append (int value) |
|
FastString | Append (float valueF) |
|
FastString | Replace (string oldStr, string newStr) |
|
Definition at line 4 of file FastString.cs.
◆ FastString()
FastString.FastString |
( |
int |
initialCapacity = 32 | ) |
|
|
inline |
◆ Append() [1/4]
Definition at line 164 of file FastString.cs.
165 {
166 double num = valueF;
169 if (num == 0.0)
170 {
172 return this;
173 }
174 if (num < 0.0)
175 {
176 num = 0.0 - num;
178 }
179 int num2 = 0;
180 while (num < 1000000.0)
181 {
182 num *= 10.0;
183 num2++;
184 }
185 long num3 = (long)Math.Round(num);
186 int num4 = 0;
187 bool flag = true;
188 while (num3 != 0L || num2 >= 0)
189 {
190 if (num3 % 10 != 0L || num2 <= 0)
191 {
192 flag = false;
193 }
194 if (!flag)
195 {
197 }
198 if (--num2 == 0 && !flag)
199 {
201 }
202 num3 /= 10;
203 }
205 for (int num5 = num4 / 2 - 1; num5 >= 0; num5--)
206 {
210 }
211 return this;
212 }
void ReallocateIFN(int nbCharsToAdd)
References m_buffer, m_bufferPos, m_isStringGenerated, and ReallocateIFN().
◆ Append() [2/4]
Definition at line 138 of file FastString.cs.
139 {
141 if (value < 0)
142 {
143 value = -value;
145 }
146 int num = 0;
147 do
148 {
150 value /= 10;
151 num++;
152 }
153 while (value != 0);
154 for (int num2 = num / 2 - 1; num2 >= 0; num2--)
155 {
159 }
161 return this;
162 }
References m_buffer, m_bufferPos, m_isStringGenerated, and ReallocateIFN().
◆ Append() [3/4]
Definition at line 132 of file FastString.cs.
133 {
135 return this;
136 }
FastString Append(string value)
References Append().
◆ Append() [4/4]
Definition at line 119 of file FastString.cs.
120 {
122 int length = value.Length;
123 for (int i = 0; i < length; i++)
124 {
126 }
129 return this;
130 }
References m_buffer, m_bufferPos, m_isStringGenerated, and ReallocateIFN().
Referenced by WidgetStockTracker._Refresh(), Append(), ItemQuestTracker.Refresh(), WidgetTracker.Refresh(), Set(), Set< T1, T2 >(), Set< T1, T2, T3 >(), and Set< T1, T2, T3, T4 >().
◆ Clear()
Definition at line 112 of file FastString.cs.
113 {
116 return this;
117 }
References m_bufferPos, and m_isStringGenerated.
Referenced by WidgetStockTracker._Refresh(), ItemQuestTracker.Refresh(), WidgetTracker.Refresh(), Set(), Set< T1, T2 >(), Set< T1, T2, T3 >(), and Set< T1, T2, T3, T4 >().
◆ IsEmpty()
bool FastString.IsEmpty |
( |
| ) |
|
|
inline |
◆ IsModified() [1/2]
bool FastString.IsModified |
( |
int |
newControlValue | ) |
|
|
inline |
◆ IsModified() [2/2]
bool FastString.IsModified |
( |
object |
newControlValue | ) |
|
|
inline |
◆ ReallocateIFN()
void FastString.ReallocateIFN |
( |
int |
nbCharsToAdd | ) |
|
|
inlineprivate |
◆ Replace()
FastString FastString.Replace |
( |
string |
oldStr, |
|
|
string |
newStr |
|
) |
| |
|
inline |
Definition at line 214 of file FastString.cs.
215 {
217 {
218 return this;
219 }
221 {
223 }
225 {
226 bool flag = false;
228 {
229 int j;
230 for (j = 1; j < oldStr.Length &&
m_buffer[i + j] == oldStr[j]; j++)
231 {
232 }
233 flag = j >= oldStr.Length;
234 }
235 if (flag)
236 {
237 i += oldStr.Length - 1;
238 if (newStr != null)
239 {
240 for (int k = 0; k < newStr.Length; k++)
241 {
243 }
244 }
245 }
246 else
247 {
249 }
250 }
253 {
255 }
259 return this;
260 }
List< char > m_replacement
References m_buffer, m_bufferPos, m_isStringGenerated, m_replacement, and ReallocateIFN().
◆ Set() [1/3]
void FastString.Set |
( |
object |
str | ) |
|
|
inline |
◆ Set() [2/3]
void FastString.Set |
( |
params object[] |
str | ) |
|
|
inline |
◆ Set() [3/3]
void FastString.Set |
( |
string |
str | ) |
|
|
inline |
◆ Set< T1, T2 >()
◆ Set< T1, T2, T3 >()
◆ Set< T1, T2, T3, T4 >()
void FastString.Set< T1, T2, T3, T4 > |
( |
T1 |
str1, |
|
|
T2 |
str2, |
|
|
T3 |
str3, |
|
|
T4 |
str4 |
|
) |
| |
|
inline |
◆ ToString()
override string FastString.ToString |
( |
| ) |
|
|
inline |
◆ m_buffer
char [] FastString.m_buffer |
|
private |
◆ m_bufferPos
int FastString.m_bufferPos |
|
private |
◆ m_charsCapacity
int FastString.m_charsCapacity |
|
private |
◆ m_isStringGenerated
bool FastString.m_isStringGenerated |
|
private |
◆ m_replacement
List<char> FastString.m_replacement |
|
private |
◆ m_stringGenerated
string FastString.m_stringGenerated = "" |
|
private |
◆ m_valueControl
object FastString.m_valueControl |
|
private |
◆ m_valueControlInt
int FastString.m_valueControlInt = int.MinValue |
|
private |
The documentation for this class was generated from the following file: