OFMutableString Class Reference
#import <OFMutableString.h>
List of all members.
Detailed Description
A class for storing and modifying strings.
Member Function Documentation
- (id) appendCString: |
|
(const char*) |
str |
|
|
Appends a UTF-8 encoded C string to the OFString.
- Parameters:
-
| str | A UTF-8 encoded C string to append |
- (id) appendCString: |
|
(const char*) |
str |
withLength: |
|
(size_t) |
len | |
|
|
| | |
Appends a UTF-8 encoded C string with the specified length to the OFString.
- Parameters:
-
| str | A UTF-8 encoded C string to append |
| len | The length of the UTF-8 encoded C string |
- (id) appendCStringWithoutUTF8Checking: |
|
(const char*) |
str |
|
|
Appends a UTF-8 encoded C string to the OFString without checking whether it is valid UTF-8.
Only use this if you are 100% sure the string you append is either ASCII or UTF-8!
- Parameters:
-
| str | A UTF-8 encoded C string to append |
- (id) appendCStringWithoutUTF8Checking: |
|
(const char*) |
str |
length: |
|
(size_t) |
len | |
|
|
| | |
Appends a UTF-8 encoded C string with the specified length to the OFString without checking whether it is valid UTF-8.
Only use this if you are 100% sure the string you append is either ASCII or UTF-8!
- Parameters:
-
| str | A UTF-8 encoded C string to append |
| len | The length of the UTF-8 encoded C string |
- (id) appendWithFormat: |
|
(OFString*) |
fmt |
, |
|
|
... | |
|
|
| | |
Appends a formatted UTF-8 encoded C string to the OFString. See printf for the format syntax.
- Parameters:
-
| fmt | A format string which generates the string to append |
- (id) appendWithFormat: |
|
(OFString*) |
fmt |
arguments: |
|
(va_list) |
args | |
|
|
| | |
Appends a formatted UTF-8 encoded C string to the OFString. See printf for the format syntax.
- Parameters:
-
| fmt | A format string which generates the string to append |
| args | The arguments used in the format string |
- (id) removeCharactersFromIndex: |
|
(size_t) |
start |
toIndex: |
|
(size_t) |
end | |
|
|
| | |
Removes the characters at the specified range.
- Parameters:
-
| start | The index where the deletion should be started |
| end | The index until which the characters should be deleted. This points BEHIND the last character! |
- (id) removeLeadingAndTrailingWhitespaces |
|
|
|
|
Removes all whitespaces at the beginning and the end of a string.
- (id) removeLeadingWhitespaces |
|
|
|
|
Removes all whitespaces at the beginning of a string.
- (id) removeTrailingWhitespaces |
|
|
|
|
Removes all whitespaces at the end of a string.
Replaces all occurrences of a string with another string.
- Parameters:
-
| str | The string to replace |
| repl | The string with which it should be replaced |
- (id) setToCString: |
|
(const char*) |
str |
|
|
Sets the OFString to the specified UTF-8 encoded C string.
- Parameters:
-
| str | A UTF-8 encoded C string to set the OFString to. |
The documentation for this class was generated from the following files: