MonobjcMonobjc Documented Class Library
StringWithCStringEncoding Method (cString, enc)
NamespacesMonobjc.FoundationNSStringStringWithCStringEncoding(String, NSStringEncoding)

Returns a string containing the bytes in a given C array, interpreted according to a given encoding.

Original signature is '+ (id)stringWithCString:(const char *)cString encoding:(NSStringEncoding)enc'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSString StringWithCStringEncoding(
	string cString,
	NSStringEncoding enc
Public Shared Function StringWithCStringEncoding ( _
	cString As String, _
	enc As NSStringEncoding _
) As NSString
static NSString^ StringWithCStringEncoding(
	String^ cString, 
	NSStringEncoding enc
cString (String)
A C array of bytes. The array must end with a NULL character; intermediate NULL characters are not allowed.
enc (NSStringEncoding)
The encoding of cString.
Return Value
A string containing the characters described in cString.
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)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)