Changeset 497 for trunk/Include/Classes/System/Text
- Timestamp:
- Mar 28, 2008, 5:43:34 PM (17 years ago)
- Location:
- trunk/Include/Classes/System/Text
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Text/DecoderFallback.ab
r411 r497 77 77 len = length 78 78 End Sub 79 #if ndef __STRING_IS_NOT_UNICODE79 #ifdef UNICODE 80 80 /*! 81 81 @brief 指定された文字列でDecoderReplacementFallbackを構築する。 … … 124 124 End Function 125 125 126 #if ndef __STRING_IS_NOT_UNICODE126 #ifdef UNICODE 127 127 /*! 128 128 @brief 代替文字列を返す … … 167 167 End If 168 168 End Sub 169 #if ndef __STRING_IS_NOT_UNICODE169 #ifdef UNICODE 170 170 /*! 171 171 @brief 指定された文字列でDecoderReplacementFallbackを構築する。 -
trunk/Include/Classes/System/Text/Encoding.ab
r411 r497 1 #define __STRING_IS_NOT_UNICODE 'なぜか認識されないので2 3 1 /*! 4 2 @file Classes/System/Text/Encoding.ab … … 52 50 Return GetBytesCountCore(s, n) 53 51 End Function 54 #if ndef __STRING_IS_NOT_UNICODE52 #ifdef UNICODE 55 53 /*! 56 54 @brief 符号化して得られる文字列の長さを計算する。 … … 141 139 Return GetBytesCore(VarPtr(chars[index]), count, bytes, byteCount) 142 140 End Function 143 #if ndef __STRING_IS_NOT_UNICODE141 #ifdef UNICODE 144 142 /*! 145 143 @brief 符号化する。 … … 289 287 Abstract Function GetCharsCore(bytes As *Byte, byteCount As Long, chars As *WCHAR, charCount As Long) As Long 290 288 Public 291 #if ndef __STRING_IS_NOT_UNICODE289 #ifdef UNICODE 292 290 /*! 293 291 @brief 復号し、Stringで結果を返す。 -
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.