A class for storing and modifying strings.
More...
#import <OFMutableString.h>
List of all members.
Detailed Description
A class for storing and modifying strings.
Member Function Documentation
- (void) appendCString: |
|
(const char*) |
str |
|
|
Appends a UTF-8 encoded C string to the OFString.
- Parameters:
-
| str | A UTF-8 encoded C string to append |
- (void) 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 |
- (void) 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 |
- (void) 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 |
- (void) appendFormat: |
|
(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 |
- (void) appendFormat: |
|
(OFString*) |
fmt |
withArguments: |
|
(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 |
- (void) deleteCharactersFromIndex: |
|
(size_t) |
start |
toIndex: |
|
(size_t) |
end | |
|
|
| | |
Deletes 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! |
- (void) deleteCharactersInRange: |
|
(of_range_t) |
range |
|
|
Deletes the characters at the specified range.
- Parameters:
-
| range | The range of the characters which should be removed |
- (void) deleteLeadingAndTrailingWhitespaces |
|
|
|
|
Deletes all whitespaces at the beginning and the end of a string.
- (void) deleteLeadingWhitespaces |
|
|
|
|
Deletes all whitespaces at the beginning of a string.
- (void) deleteTrailingWhitespaces |
|
|
|
|
Deletes all whitespaces at the end of a string.
- (void) insertString: |
|
(OFString*) |
str |
atIndex: |
|
(size_t) |
idx | |
|
|
| | |
Inserts a string at the specified index.
- Parameters:
-
| str | The string to insert |
| idx | The index |
- (void) replaceCharactersFromIndex: |
|
(size_t) |
start |
toIndex: |
|
(size_t) |
end |
withString: |
|
(OFString*) |
repl | |
|
|
| | |
Replaces the characters at the specified range.
- Parameters:
-
| start | The index where the replacement should be started |
| end | The index until which the characters should be replaced. This points BEHIND the last character! |
| repl | The string to the replace the characters with |
Deletes the characters at the specified range.
- Parameters:
-
| range | The range of the characters which should be replaced |
| repl | The string to the replace the characters with |
- (void) replaceOccurrencesOfString: |
|
(OFString*) |
str |
withString: |
|
(OFString*) |
repl | |
|
|
| | |
Deletes all occurrences of a string with another string.
- Parameters:
-
| str | The string to replace |
| repl | The string with which it should be replaced |
- (void) 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: