16 #ifndef OBJFW_OF_MUTABLE_STRING_H
17 #define OBJFW_OF_MUTABLE_STRING_H
21 OF_ASSUME_NONNULL_BEGIN
36 - (void)setCharacter: (of_unichar_t)character atIndex: (
size_t)index;
43 - (void)appendString: (
OFString *)string;
51 - (void)appendCharacters: (const of_unichar_t *)characters
52 length: (
size_t)length;
59 - (void)appendUTF8String: (const
char *)UTF8String;
68 - (void)appendUTF8String: (const
char *)UTF8String
69 length: (
size_t)UTF8StringLength;
77 - (void)appendCString: (const
char *)cString
88 - (void)appendCString: (const
char *)cString
90 length: (
size_t)cStringLength;
113 - (void)appendFormat: (
OFConstantString *)format arguments: (va_list)arguments;
120 - (void)prependString: (
OFString *)string;
152 - (void)insertString: (
OFString *)string atIndex: (
size_t)index;
159 - (void)deleteCharactersInRange: (
of_range_t)range;
167 - (void)replaceCharactersInRange: (
of_range_t)range
168 withString: (
OFString *)replacement;
176 - (void)replaceOccurrencesOfString: (
OFString *)string
177 withString: (
OFString *)replacement;
189 - (void)replaceOccurrencesOfString: (
OFString *)string
191 options: (
int)options
216 OF_ASSUME_NONNULL_END
of_string_encoding_t
The encoding of a string.
Definition: OFString.h:68
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:42
A class for storing and modifying strings.
Definition: OFMutableString.h:30
void makeImmutable()
Converts the mutable string to an immutable string.
Definition: OFMutableString.m:561
void uppercase()
Converts the string to uppercase.
Definition: OFMutableString.m:392
void deleteLeadingWhitespaces()
Deletes all whitespaces at the beginning of the string.
Definition: OFMutableString.m:505
void lowercase()
Converts the string to lowercase.
Definition: OFMutableString.m:400
void capitalize()
Capitalizes the string.
Definition: OFMutableString.m:408
void deleteEnclosingWhitespaces()
Deletes all whitespaces at the beginning and the end of the string.
Definition: OFMutableString.m:550
void reverse()
Reverses the string.
Definition: OFMutableString.m:380
void deleteTrailingWhitespaces()
Deletes all whitespaces at the end of the string.
Definition: OFMutableString.m:523
A class for handling strings.
Definition: OFString.h:132
A range.
Definition: OFObject.h:93