Foundation.NSString Members

The members of Foundation.NSString are listed below.

See Also: Inherited members from Foundation.NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Creates an NSString from a C# string.
Creates a string from a specified blob of data, using a specific encoding.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Fields

static readonly
EmptyNSString. Documentation for this section has not yet been entered.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
IsAbsolutePathbool. Whether this is an absolute path.
[read-only]
default property
Item(nint)char. Documentation for this section has not yet been entered.
[read-only]
LastPathComponentNSString. The last path component of this string.
[read-only]
Lengthnint. The number of Unicode characters in this string.
[read-only]
PathComponentsstring[]. An array of strings containing, in order, each path component of this string.
[read-only]
PathExtensionNSString. Returns this string's path extension, if it has one.

Public Methods

AbbreviateTildeInPath() : NSString
Converts a spath to a home-directory-relative path by substituting a tilde for the relevant portion of the path.
AppendPathComponent(NSString) : NSString
Appends the specified str in a manner that results in a path.
AppendPathExtension(NSString) : NSString
Creates a path by appending a path extension separator and then the specified str as a file extension.
AppendPaths(string[]) : string[]
Returns the array of strings created by appending this NSString to each of the specified input paths.
Capitalize(NSLocale) : string
Capitalizes a string using the rules of the specified locale.
Compare(NSString) : NSComparisonResult
Lexically compares this to the specified string.
Compare(NSString, NSStringCompareOptions) : NSComparisonResult
Documentation for this section has not yet been entered.
Compare(NSString, NSStringCompareOptions, NSRange) : NSComparisonResult
Documentation for this section has not yet been entered.
Compare(NSString, NSStringCompareOptions, NSRange, NSLocale) : NSComparisonResult
Documentation for this section has not yet been entered.
Contains(NSString) : bool
Documentation for this section has not yet been entered.
Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
static
CreateNative(string) : IntPtr
Creates an Objective-C NSString from the C# string and returns a pointer to it.
DeleteLastPathComponent() : NSString
Returns a new string by deleting the last path component of this string.
DeletePathExtension() : NSString
Returns a new string by deleting the path extension from this string.
static
DetectStringEncoding(NSData, EncodingDetectionOptions, out string, out bool) : nuint
Documentation for this section has not yet been entered.
static
DetectStringEncoding(NSData, NSDictionary, out string, out bool) : nuint
Documentation for this section has not yet been entered.
Encode(NSStringEncoding, bool) : NSData
Documentation for this section has not yet been entered.
EncodeTo(NSCoder)
Encodes the state of the object on the provided encoder
override
Equals(object) : bool
Documentation for this section has not yet been entered.
static
Equals(NSString, NSString) : bool
Documentation for this section has not yet been entered.
ExpandTildeInPath() : NSString
Returns a new string that expands a tilde in this string (indicating the user's home dir) into a full path.
static
FromData(NSData, NSStringEncoding) : NSString
Creates an NSString from an NSData source.
static
FromHandle(IntPtr) : string
Utility method that returns a string from a pointer that points to an Objective-C NSString object.
override
GetHashCode() : int
Generates a hash code for the current instance.
GetLineStart(NSRange, out nuint, out nuint, out nuint)
Documentation for this section has not yet been entered.
LineRangeForRange(NSRange) : NSRange
Documentation for this section has not yet been entered.
LocalizedCaseInsensitiveContains(NSString) : bool
Documentation for this section has not yet been entered.
MutableCopy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
static
PathWithComponents(string[]) : string[]
Constructs a path from the specified array of components.
static
ReleaseNative(IntPtr)
Releases a native Objective-C string.
Replace(NSRange, NSString) : NSString
Returns a new string that substitutes the replacement string into this string, at the specified range.
ResolveSymlinksInPath() : NSString
Resolves all symbolic links in this and returns the standardized path result.
StandarizePath() : NSString
Standardizes this string into a path by, for instance, removing "/./" and similar constructs.
ToLower(NSLocale) : string
Returns a new string that is the lowercase version of this string, according to the rules of the specified locale.
override
ToString() : string
Returns a string representation of the value of the current instance.
ToUpper(NSLocale) : string
Returns a new string that is the uppercase version of this string, according to the rules of the specified locale.

Protected Methods

override
Dispose(bool)
Releases the resources used by the NSString object.

Public Operators

static
Equality(NSString, NSString)Documentation for this section has not yet been entered.
static
Inequality(NSString, NSString)Documentation for this section has not yet been entered.
static
Conversion to Foundation.NSString(Explicit)Documentation for this section has not yet been entered.
static
Conversion to System.String(Implicit)Converts the NSString to a CIL/C# string.