mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-06 02:43:40 +00:00
Merge pull request #3055 from daboe01/cpstring+-containsString
fixed: CPString did not have containsString:
This commit is contained in:
@@ -570,6 +570,16 @@ var CPStringNull = [CPNull null];
|
||||
return aString && aString != "" && self.indexOf(aString) == 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns \c YES if the receiver contains
|
||||
the specified string. If \c aString
|
||||
is empty, the method will return \c NO.
|
||||
*/
|
||||
- (BOOL)containsString:(CPString)aString
|
||||
{
|
||||
return aString && aString != "" && self.indexOf(aString) >= 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns \c YES if the receiver ends
|
||||
with the specified string. If \c aString
|
||||
|
||||
Reference in New Issue
Block a user