Changeset 226 for Include/Classes/System/String.ab
- Timestamp:
- May 1, 2007, 1:21:27 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/String.ab
r221 r226 71 71 Return Chars 72 72 End Function 73 74 /* Sub Operator = (ByRef objString As String)75 Assign(objString.Chars, objString.m_Length)76 End Sub77 78 Sub Operator = (text As *Byte)79 Assign(text As PCTSTR)80 End Sub81 82 Sub Operator = (text As PCSTR)83 Assign(text)84 End Sub85 86 Sub Operator = (text As PCWSTR)87 Assign(text)88 End Sub*/89 73 90 74 Const Function Operator [] (n As Long) As StrChar … … 372 356 373 357 Static Function Concat(x As String, y As String) As String 374 If x = NothingThen358 If String.IsNullOrEmpty(x) Then 375 359 Return y 376 360 Else 377 Return x.Concat( objString.Chars, objString.m_Length)361 Return x.Concat(y.Chars, y.m_Length) 378 362 End If 379 363 End Function … … 513 497 514 498 Static Function IsNullOrEmpty(s As String) As Boolean 515 If s <> NothingThen499 If Not Object.ReferenceEquals(s, Nothing) Then 516 500 If s.m_Length > 0 Then 517 Return True501 Return False 518 502 End If 519 503 End If 520 Return False504 Return True 521 505 End Function 522 506 … … 573 557 Next 574 558 End Function 575 559 /* 576 560 Sub Swap(ByRef x As String) 577 561 Dim tempLen As Long … … 584 568 This.Chars = tempChars 585 569 End Sub 586 570 */ 587 571 Override Function ToString() As String 588 572 Return This
Note:
See TracChangeset
for help on using the changeset viewer.