// // OCHamcrest - HCStringStartsWith.h // Copyright 2013 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid, http://qualitycoding.org/ // Docs: http://hamcrest.github.com/OCHamcrest/ // Source: https://github.com/hamcrest/OCHamcrest // #import @interface HCStringStartsWith : HCSubstringMatcher + (id)stringStartsWith:(NSString *)aSubstring; @end OBJC_EXPORT id HC_startsWith(NSString *aSubstring); /** startsWith(aString) - Matches if object is a string starting with a given string. @param aString The string to search for. This value must not be @c nil. This matcher first checks whether the evaluated object is a string. If so, it checks if @a aString matches the beginning characters of the evaluated object. Example: @par @ref endsWith(@"foo") will match "foobar". (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym @c HC_startsWith instead.) @ingroup text_matchers */ #ifdef HC_SHORTHAND #define startsWith HC_startsWith #endif