Protocol for constant string objects. More...
#import <objc/objc.h>
Instance Methods | |
(const char *) | - cStr |
Returns the C string representation of the string. More... | |
(unsigned int) | - length |
Returns the length of the string in bytes. More... | |
Protocol for constant string objects.
The NXConstantStringProtocol defines the minimal interface that constant string objects must implement to provide basic string functionality. This enables different string implementations to be used polymorphically throughout the framework.
Classes conforming to this protocol can be used wherever basic string operations such as accessing the C string representation or getting the length are required.
Definition at line 33 of file NXConstantString+Protocol.h.
|
required |
Returns the C string representation of the string.
Reimplemented in NXString, and NXConstantString.
|
required |
Returns the length of the string in bytes.
Reimplemented in NXString, and NXConstantString.