Changeset 497 for trunk/Include/Classes/System/Text/StringBuilder.ab
- Timestamp:
- Mar 28, 2008, 5:43:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Text/StringBuilder.ab
r468 r497 1 1 'Classes/System/Text/StringBuilder.ab 2 3 #require <Classes/ActiveBasic/Strings/Strings.ab>4 2 5 3 Namespace System … … 7 5 8 6 Class StringBuilder 9 'Inherits ISerializable10 7 Public 11 8 Sub StringBuilder() … … 196 193 197 194 Override Function GetHashCode() As Long 198 #ifdef __STRING_IS_NOT_UNICODE 195 #ifdef UNICODE 196 Dim n = size 197 #else 199 198 Dim n = (size + 1) >> 1 200 #else201 Dim n = size202 199 #endif 203 200 Return _System_GetHashFromWordArray(chars As *Word, n As SIZE_T) Xor capacity Xor maxCapacity … … 214 211 Return This 215 212 End Function 216 #ifdef __STRING_IS_NOT_UNICODE 213 #ifdef UNICODE 214 Function Insert(i As Long, x As SByte) As StringBuilder 215 rangeCheck(i) 216 insertCore(i, Str$(x As Long)) 217 Return This 218 End Function 219 #else 217 220 Function Insert(i As Long, x As Word) As StringBuilder 218 221 rangeCheck(i) 219 222 insertCore(i, Str$(x As DWord)) 220 Return This221 End Function222 #else223 Function Insert(i As Long, x As SByte) As StringBuilder224 rangeCheck(i)225 insertCore(i, Str$(x As Long))226 223 Return This 227 224 End Function
Note:
See TracChangeset
for help on using the changeset viewer.