Changeset 400 for trunk/Include/Classes/ActiveBasic
- Timestamp:
- Jan 22, 2008, 9:19:59 PM (17 years ago)
- Location:
- trunk/Include/Classes/ActiveBasic
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/ActiveBasic/CType/CType.ab
r388 r400 86 86 End Function 87 87 88 /*! 89 @brief ASCIIの表示文字かどうか 90 @author Egtra 91 @date 2007/11/25 92 制御文字でないもの、空白も表示文字に含む 93 */ 88 94 Function IsPrint(c As WCHAR) As Boolean 89 95 Return (c As DWord - &h20) < (&h7e - &h20) … … 98 104 Function IsPunct(c As WCHAR) As Boolean 99 105 Return c < &h7f And IsGraph(c) And (Not IsAlnum(c)) 106 End Function 107 108 /*! 109 @brief ASCIIの空白文字かどうか 110 @author Egtra 111 @date 2008/01/22 112 */ 113 Function IsSpace(c As WCHAR) As Boolean 114 Return c As DWord - 9 < 4 Or c = &h20 ' &h41 = Asc("A") 100 115 End Function 101 116 … … 210 225 @overload 211 226 */ 227 Function IsSpace(c As CHAR) As Boolean 228 Return IsSpace(Detail.Widen(c)) 229 End Function 230 231 /*! 232 @overload 233 */ 212 234 Function IsUpper(c As CHAR) As Boolean 213 235 Return IsUpper(Detail.Widen(c)) … … 235 257 End Function 236 258 237 End Namespace 238 End Namespace 259 End Namespace 'CType 260 End Namespace 'ActiveBasic -
trunk/Include/Classes/ActiveBasic/Core/TypeInfo.ab
r367 r400 160 160 161 161 Static Sub InitializeValueType() 162 types = New System.Collections.Generic.Dictionary<String, TypeBaseImpl>(819 2)162 types = New System.Collections.Generic.Dictionary<String, TypeBaseImpl>(8191) 163 163 164 164 ' 値型の追加 … … 222 222 End If 223 223 224 If Object.ReferenceEquals( types.Item(fullName), Nothing ) Then 225 OutputDebugString( "TypeSearch Failed: " ) 226 OutputDebugString( fullName ) 227 OutputDebugString( Ex"\r\n" ) 224 Search = types.Item(fullName) 225 226 If Object.ReferenceEquals( Search, Nothing ) Then 227 OutputDebugString("TypeSearch Failed: ") 228 If Not ActiveBasic.IsNothing(fullName) Then 229 OutputDebugStringW(StrPtr(fullName) As PWSTR) 230 OutputDebugString(Ex"\r\n") 231 OutputDebugStringA(StrPtr(fullName) As PSTR) 232 End If 233 OutputDebugString(Ex"\r\n") 228 234 End If 229 230 Return types.Item(fullName)231 235 End Function 232 236 -
trunk/Include/Classes/ActiveBasic/Strings/SPrintF.ab
r391 r400 1072 1072 ReadInt = True 1073 1073 Else 1074 Dim p As PSTR1074 Dim p As *StrChar 1075 1075 ret = StrToLong(fmt, p) 1076 1076 If fmt <> p Then -
trunk/Include/Classes/ActiveBasic/misc.ab
r385 r400 2 2 3 3 Namespace ActiveBasic 4 Namespace Detail 5 /*! 6 @brief baseがderivedの基底クラスかどうか判定する。 7 @param[in] base 基底クラス 8 @param[in] derived 派生クラス 9 @retval True baseがderivedの基底クラスである 10 @retval False 基底クラスでない 11 @exception ArgumentNullException 引数のどちらか又は双方がNoghing 12 @auther Egtra 13 @date 2008/01/21 14 */ 15 Function IsBaseOf(base As System.TypeInfo, derived As System.TypeInfo) As Boolean 16 Imports System 17 If IsNothing(base) Then 18 Throw New ArgumentNullException("base") 19 ElseIf IsNothing(derived) Then 20 Throw New ArgumentNullException("derived") 21 End If 22 Do 23 IsBaseOf = derived.Equals(base) 24 If IsBaseOf Then 25 Exit Function 26 End If 27 derived = derived.BaseType 28 Loop Until IsNothing(derived) 29 End Function 30 End Namespace 31 4 32 Function IsNothing(o As Object) As Boolean 5 33 Return Object.ReferenceEquals(o, Nothing)
Note:
See TracChangeset
for help on using the changeset viewer.