Returns an initialized NSString object that contains a given number of characters from a given C array of Unicode characters.
Original signature is '- (id)initWithCharactersNoCopy:(unichar *)characters length:(NSUInteger)length freeWhenDone:(BOOL)flag'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public NSString( string characters, NSUInteger length, bool flag )
Public Sub New ( _ characters As String, _ length As NSUInteger, _ flag As Boolean _ )
public: NSString( String^ characters, NSUInteger length, bool flag )
Parameters
- characters (String)
- A C array of Unicode characters.
- length (NSUInteger)
- The number of characters to use from characters.
- flag (Boolean)
- If YES, the receiver will free the memory when it no longer needs the characters; if NO it won’t.
Return Value
An initialized NSString object that contains length characters from characters. The returned object may be different from the original receiver.
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)