Ignore:
Timestamp:
Mar 28, 2008, 5:43:34 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

インクルードガードとその他不要な前処理定義などの削除

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/System/Text/StringBuilder.ab

    r468 r497  
    11'Classes/System/Text/StringBuilder.ab
    2 
    3 #require <Classes/ActiveBasic/Strings/Strings.ab>
    42
    53Namespace System
     
    75
    86Class StringBuilder
    9     'Inherits ISerializable
    107Public
    118    Sub StringBuilder()
     
    196193
    197194    Override Function GetHashCode() As Long
    198 #ifdef __STRING_IS_NOT_UNICODE
     195#ifdef UNICODE
     196        Dim n = size
     197#else
    199198        Dim n = (size + 1) >> 1
    200 #else
    201         Dim n = size
    202199#endif
    203200        Return _System_GetHashFromWordArray(chars As *Word, n As SIZE_T) Xor capacity Xor maxCapacity
     
    214211        Return This
    215212    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
    217220    Function Insert(i As Long, x As Word) As StringBuilder
    218221        rangeCheck(i)
    219222        insertCore(i, Str$(x As DWord))
    220         Return This
    221     End Function
    222 #else
    223     Function Insert(i As Long, x As SByte) As StringBuilder
    224         rangeCheck(i)
    225         insertCore(i, Str$(x As Long))
    226223        Return This
    227224    End Function
Note: See TracChangeset for help on using the changeset viewer.