Changeset 426 for trunk/Include/Classes/System/String.ab
- Timestamp:
- Feb 26, 2008, 3:33:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/String.ab
r400 r426 117 117 118 118 Const Function Operator + (y As PCSTR) As String 119 Return Concat(y, lstrlenA(y)) 119 If y = 0 Then 120 Return This 121 Else 122 Return Concat(y, lstrlenA(y)) 123 End If 120 124 End Function 121 125 122 126 Const Function Operator + (y As PCWSTR) As String 123 Return Concat(y, lstrlenW(y)) 127 If y = 0 Then 128 Return This 129 Else 130 Return Concat(y, lstrlenW(y)) 131 End If 124 132 End Function 125 133 126 134 Const Function Operator + (y As String) As String 127 Return Concat(y.Chars, y.m_Length) 135 If ActiveBasic.IsNothing(y) Then 136 Return This 137 Else 138 Return Concat(y.Chars, y.m_Length) 139 End If 128 140 End Function 129 141 … … 133 145 134 146 Const Function Operator & (y As PCWSTR) As String 135 Dim tempString = This + y 136 Return tempString 147 Return This + y 137 148 End Function 138 149 139 150 Const Function Operator & (y As String) As String 140 Dim tempString = This + y 141 Return tempString 151 Return This + y 142 152 End Function 143 153
Note:
See TracChangeset
for help on using the changeset viewer.