ObjFW  Diff

Differences From Artifact [6eba86e901]:

To Artifact [870877ba5c]:


123
124
125
126
127
128
129
130

131
132
133
134
135
136

137
138
139
140

141
142
143
144

145
146
147

148
149
150
151
152
153
154
155
156
157
158
159

160
161
162
163
164
165
166
167
168

169
170
171
172
173
174
175
176
177

178
179

180
181
182

183
184

185
186
187

188
189

190
123
124
125
126
127
128
129

130
131
132
133
134
135

136
137
138
139

140
141
142
143

144
145
146

147
148
149
150
151
152
153
154
155
156
157
158

159
160
161
162
163
164
165
166
167

168
169
170
171
172
173
174
175
176

177
178

179
180
181

182
183

184
185
186

187
188

189
190







-
+





-
+



-
+



-
+


-
+











-
+








-
+








-
+

-
+


-
+

-
+


-
+

-
+

 * \param str The string to insert
 * \param idx The index
 */
- (void)insertString: (OFString*)str
	     atIndex: (size_t)idx;

/**
 * Removes the characters at the specified range.
 * Deletes the characters at the specified range.
 *
 * \param start The index where the deletion should be started
 * \param end The index until which the characters should be deleted.
 *	      This points BEHIND the last character!
 */
- (void)removeCharactersFromIndex: (size_t)start
- (void)deleteCharactersFromIndex: (size_t)start
			  toIndex: (size_t)end;

/**
 * Removes the characters at the specified range.
 * Deletes the characters at the specified range.
 *
 * \param range The range of the characters which should be removed
 */
- (void)removeCharactersInRange: (of_range_t)range;
- (void)deleteCharactersInRange: (of_range_t)range;

/**
 * Removes the characters at the specified range.
 * Replaces the characters at the specified range.
 *
 * \param start The index where the replacement should be started
 * \param end The index until which the characters should be replaced.
 *	      This points BEHIND the last character!
 * \param repl The string to the replace the characters with
 */
- (void)replaceCharactersFromIndex: (size_t)start
			   toIndex: (size_t)end
			withString: (OFString*)repl;

/**
 * Removes the characters at the specified range.
 * Deletes the characters at the specified range.
 *
 * \param range The range of the characters which should be replaced
 * \param repl The string to the replace the characters with
 */
- (void)replaceCharactersInRange: (of_range_t)range
		      withString: (OFString*)repl;

/**
 * Replaces all occurrences of a string with another string.
 * Deletes all occurrences of a string with another string.
 *
 * \param str The string to replace
 * \param repl The string with which it should be replaced
 */
- (void)replaceOccurrencesOfString: (OFString*)str
			withString: (OFString*)repl;

/**
 * Removes all whitespaces at the beginning of a string.
 * Deletes all whitespaces at the beginning of a string.
 */
- (void)removeLeadingWhitespaces;
- (void)deleteLeadingWhitespaces;

/**
 * Removes all whitespaces at the end of a string.
 * Deletes all whitespaces at the end of a string.
 */
- (void)removeTrailingWhitespaces;
- (void)deleteTrailingWhitespaces;

/**
 * Removes all whitespaces at the beginning and the end of a string.
 * Deletes all whitespaces at the beginning and the end of a string.
 */
- (void)removeLeadingAndTrailingWhitespaces;
- (void)deleteLeadingAndTrailingWhitespaces;
@end