OSSymbol
Member Functions
Abstract: A member function to release all resources created or used by the OSString object.
protected:
virtual void free();
This function should not be called directly, use release() instead.
Abstract: A member function which tests the equality between an OSSymbol object and a simple c-string.
public:
virtual bool isEqualTo(const char *aCString) const;
Parameters
Name | Description |
aCString | The c-string to be compared against the receiver. |
Result: Returns true if the OSSymbol's internal string representation is equivalent to the c-string it is being compared against, false otherwise.
Abstract: A member function which tests the equality between two OSSymbol objects. Two OSSymbol objects are only equivalent when their references are identical
public:
virtual bool isEqualTo(const OSSymbol *aSymbol) const;
Parameters
Name | Description |
aSymbol | The OSSymbol object to be compared against the receiver. |
Result: Returns true if the two objects are equivalent, false otherwise.
Abstract: A member function which tests the equality between an OSSymbol object and and arbitrary OSObject derived object.
public:
virtual bool isEqualTo(const OSObject *obj) const;
Parameters
Name | Description |
obj | The OSObject derived object to be compared against the receiver. |
Result: Returns true if the OSSymbol and the OSObject objects are equivalent.
Abstract: A static constructor function to create an OSSymbol instance from a simple c-string returns an existing OSSymbol object based on the string object given.
public:
static const OSSymbol *withCString(const char *cString);
Parameters
Name | Description |
cString | A c-string. |
Result: Returns a unique OSSymbol object for the string given.
Abstract: A static constructor function to create an OSSymbol instance from a simple c-string, but does not copy the string to the container.
public:
static const OSSymbol *withCStringNoCopy(const char *cString);
Parameters
Name | Description |
cString | A c-string. |
Result: Returns a unique OSSymbol object for the string given.
Abstract: A static constructor function to create an OSSymbol instance from an OSString object or returns an existing OSSymbol object based on the OSString object given.
public:
static const OSSymbol *withString(const OSString *aString);
Parameters
Name | Description |
aString | An OSString object. |
Result: Returns a unique OSSymbol object for the string given.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)