IOS-2794 Make that a mutable array

componentsSeparatedByCString
IOS-2794
Dirk Zimmermann 2 years ago
parent 5d20e18bf8
commit 514cc4b23c

@ -255,7 +255,7 @@
@result An instance of NSArray holding all components. The array is
empty if the separator was not found in the receiver.
*/
- (NSArray *) componentsSeparatedByCString: (const char *) theCString;
- (NSMutableArray *) componentsSeparatedByCString: (const char *) theCString;
/*!
@method asciiString

@ -553,7 +553,7 @@ static int currentPartVersion = 2;
dataToSend = [dataToSend wrapWithLimit: limit];
}
NSArray *allLines = [dataToSend componentsSeparatedByCString: "\n"];
NSMutableArray *allLines = [dataToSend componentsSeparatedByCString: "\n"];
NSUInteger count = [allLines count];
for (int i = 0; i < count; i++) {
if (i == count - 1 && [[allLines objectAtIndex: i] length] == 0) {

@ -734,7 +734,7 @@ static const char *hexDigit = "0123456789ABCDEF";
return NSOrderedDescending;
}
- (NSArray *) componentsSeparatedByCString: (const char *) theCString
- (NSMutableArray *) componentsSeparatedByCString: (const char *) theCString
{
NSMutableArray *aMutableArray;
NSRange r1, r2;

Loading…
Cancel
Save