Returns a string containing characters the receiver and a given string have in common, starting from the beginning of each up to the first characters that aren’t equivalent.
Original signature is '- (NSString *)commonPrefixWithString:(NSString *)aString options:(NSStringCompareOptions)mask'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSString CommonPrefixWithStringOptions( NSString aString, NSStringCompareOptions mask )
Public Overridable Function CommonPrefixWithStringOptions ( _ aString As NSString, _ mask As NSStringCompareOptions _ ) As NSString
public: virtual NSString^ CommonPrefixWithStringOptions( NSString^ aString, NSStringCompareOptions mask )
Parameters
- aString (NSString)
- The string with which to compare the receiver.
- mask (NSStringCompareOptions)
- Options for the comparison. The following search options may be specified by combining them with the C bitwise OR operator: NSCaseInsensitiveSearch, NSLiteralSearch. See String Programming Guide for details on these options.
Return Value
A string containing characters the receiver and aString have in common, starting from the beginning of each up to the first characters that aren’t equivalent.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)