Creates an empty CFMutableString object.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The allocator to use to allocate memory for the new string. Pass
NULL or kCFAllocatorDefault to use the current default allocator.
The maximum number of Unicode characters that can be stored by the returned string. Pass
0 if there should be no character limit. Note that initially the string still has a length of
0; this parameter simply specifies what the maximum size is. CFMutableString might try to optimize its internal storage by paying attention to this value.
A new empty CFMutableString object or
NULL if there was a problem creating the object. Ownership follows the The Create Rule.
This function creates an empty (that is, content-less) CFMutableString object. You can add character data to this object with any of the
CFStringAppend... functions, and thereafter you can insert, delete, replace, pad, and trim characters with the appropriate CFString functions. If the
maxLength parameter is greater than
0, any attempt to add characters beyond this limit results in a run-time error.
CFMutableString Miscellaneous Functions
Appends the characters of a string to those of a CFMutableString object.
Appends a formatted string to the character contents of a CFMutableString object.
Changes the first character in each word of a string to uppercase (if it is a lowercase alphabetical character).
Folds a given string into the form specified by optional flags.
Inserts a string at a specified location in the character buffer of a CFMutableString object.
Changes all uppercase alphabetical characters in a CFMutableString to lowercase.
Normalizes the string into the specified form as described in Unicode Technical Report #15.
Enlarges a string, padding it with specified characters, or truncates the string.
Replaces part of the character contents of a CFMutableString object with another string.
Replaces all characters of a CFMutableString object with other characters.
Trims a specified substring from the beginning and end of a CFMutableString object.
Changes all lowercase alphabetical characters in a CFMutableString object to uppercase.