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

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

Location:
trunk/Include/Classes/System/Text
Files:
3 edited

Legend:

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

    r411 r497  
    7777        len = length
    7878    End Sub
    79 #ifndef __STRING_IS_NOT_UNICODE
     79#ifdef UNICODE
    8080    /*!
    8181    @brief  指定された文字列でDecoderReplacementFallbackを構築する。
     
    124124    End Function
    125125
    126 #ifndef __STRING_IS_NOT_UNICODE
     126#ifdef UNICODE
    127127    /*!
    128128    @brief  代替文字列を返す
     
    167167        End If
    168168    End Sub
    169 #ifndef __STRING_IS_NOT_UNICODE
     169#ifdef UNICODE
    170170    /*!
    171171    @brief  指定された文字列でDecoderReplacementFallbackを構築する。
  • trunk/Include/Classes/System/Text/Encoding.ab

    r411 r497  
    1 #define __STRING_IS_NOT_UNICODE 'なぜか認識されないので
    2 
    31/*!
    42@file   Classes/System/Text/Encoding.ab
     
    5250        Return GetBytesCountCore(s, n)
    5351    End Function
    54 #ifndef __STRING_IS_NOT_UNICODE
     52#ifdef UNICODE
    5553    /*!
    5654    @brief  符号化して得られる文字列の長さを計算する。
     
    141139        Return GetBytesCore(VarPtr(chars[index]), count, bytes, byteCount)
    142140    End Function
    143 #ifndef __STRING_IS_NOT_UNICODE
     141#ifdef UNICODE
    144142    /*!
    145143    @brief  符号化する。
     
    289287    Abstract Function GetCharsCore(bytes As *Byte, byteCount As Long, chars As *WCHAR, charCount As Long) As Long
    290288Public
    291 #ifndef __STRING_IS_NOT_UNICODE
     289#ifdef UNICODE
    292290    /*!
    293291    @brief  復号し、Stringで結果を返す。
  • 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.