Changeset 428


Ignore:
Timestamp:
Feb 26, 2008, 5:07:23 PM (17 years ago)
Author:
OverTaker
Message:

いくつかのメソッドにオーバーロード追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/System/String.ab

    r426 r428  
    355355        End Function
    356356
     357        Const Function Contains(c As StrChar) As Boolean
     358            Return IndexOf(c) >= 0
     359        End Function
     360
    357361        Const Function Contains(s As String) As Boolean
    358362            If Object.ReferenceEquals(s, Nothing) Then
     
    480484        End Function
    481485
     486        Const Function StartsWith(c As StrChar) As Boolean
     487            Return IndexOf(c) = 0
     488        End Function
     489
    482490        Const Function StartsWith(s As String) As Boolean
    483491            Return IndexOf(s) = 0
     492        End Function
     493
     494        Const Function EndsWith(c As StrChar) As Boolean
     495            Return LastIndexOf(c) = m_Length - 1
    484496        End Function
    485497
Note: See TracChangeset for help on using the changeset viewer.