• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/xnu-2422.115.4/libkern/libkern/c++/

Lines Matching defs:OSString

43  * This header declares the OSString container class.
55 * @class OSString
58 * OSString wraps a C string in a C++ object for use in Libkern collections.
61 * OSString is a container class for managing arrays of characters.
62 * An OSString normally maintains its own character buffer and allows changes,
63 * but you can create an "immutable" OSString
66 * Functions called to change the contents of an immutable OSString will fail.
70 * OSString makes no provisions for different character encodings and
77 * OSString's indended use is as a reference-counted object container
79 * While OSString provides full access to the underlying C string,
85 * alter them as necessary, and create a new OSString object
96 * OSString provides no concurrency protection;
103 class OSString : public OSObject
105 OSDeclareDefaultStructors(OSString)
119 * Creates and initializes an OSString from another OSString.
121 * @param aString The OSString object whose contents to copy.
124 * An instance of OSString representing
130 * The new OSString is a distinct instance from <code>aString</code>,
135 static OSString * withString(const OSString * aString);
142 * Creates and initializes an OSString from a C string.
144 * @param cString The C string to copy into the new OSString.
147 * An instance of OSString representing
152 static OSString * withCString(const char * cString);
159 * Creates and initializes an immutable OSString
165 * An instance of OSString containing <code>cString</code>,
170 * An OSString object created with this function
173 * When the caller determines that the OSString object has actually been freed,
176 * it must not attempt to use the OSString object and should release it.
178 * An OSString object created with this function does not
181 static OSString * withCStringNoCopy(const char * cString);
188 * Initializes an OSString from another OSString.
190 * @param aString The OSString object whose contents to copy.
199 virtual bool initWithString(const OSString * aString);
206 * Initializes an OSString from a C string.
208 * @param cString The C string to copy into the new OSString.
224 * Initializes an immutable OSString
236 * An OSString object initialized with this function
239 * When the caller determines that the OSString object has actually been freed,
242 * it must not attempt to use the OSString object and should release it.
244 * An OSString object created with this function does not
255 * used by the OSString instance.
272 * Returns the number of characters in the OSString object.
275 * The number of characters in the OSString object.
328 * Tests the equality of two OSString objects.
330 * @param aString The OSString object being compared against the receiver.
333 * <code>true</code> if the two OSString objects are equivalent,
337 * Two OSString objects are considered equal if they have same length
340 virtual bool isEqualTo(const OSString * aString) const;
347 * Tests the equality of an OSString object with a C string.
352 * <code>true</code> if the OSString's characters
363 * Tests the equality of an OSString object to an arbitrary object.
372 * An OSString is considered equal to another object
373 * if that object is derived from OSString
383 * Tests the equality of an OSData object and the OSString instance.
392 * against those of the OSString,
399 * will compare as equal to the OSString containing "usb".
418 OSMetaClassDeclareReservedUnused(OSString, 0);
419 OSMetaClassDeclareReservedUnused(OSString, 1);
420 OSMetaClassDeclareReservedUnused(OSString, 2);
421 OSMetaClassDeclareReservedUnused(OSString, 3);
422 OSMetaClassDeclareReservedUnused(OSString, 4);
423 OSMetaClassDeclareReservedUnused(OSString, 5);
424 OSMetaClassDeclareReservedUnused(OSString, 6);
425 OSMetaClassDeclareReservedUnused(OSString, 7);
426 OSMetaClassDeclareReservedUnused(OSString, 8);
427 OSMetaClassDeclareReservedUnused(OSString, 9);
428 OSMetaClassDeclareReservedUnused(OSString, 10);
429 OSMetaClassDeclareReservedUnused(OSString, 11);
430 OSMetaClassDeclareReservedUnused(OSString, 12);
431 OSMetaClassDeclareReservedUnused(OSString, 13);
432 OSMetaClassDeclareReservedUnused(OSString, 14);
433 OSMetaClassDeclareReservedUnused(OSString, 15);