diff --git a/Foundation/CPString.j b/Foundation/CPString.j index d98b64a..0a5724b 100644 --- a/Foundation/CPString.j +++ b/Foundation/CPString.j @@ -417,6 +417,16 @@ var CPStringHashes = new objj_dictionary(); } /* + Compares the receiver to the specified string, using no options. + @param aString the string with which to compare + @return the result of the comparison +*/ +- (CPComparisonResult)compare:(CPString)aString +{ + return [self compare:aString options:0]; +} + +/* Returns YES if the receiver starts with the specified string. If aString is empty, the method will return NO.