Browse Source

IOS-2794 Rename

enumerateComponentsSeperatedByString
IOS-2794
Dirk Zimmermann 1 year ago
parent
commit
7b295604f2
4 changed files with 10 additions and 10 deletions
  1. +2
    -2
      PantomimeFramework/PantomimeFramework/NSData+Extensions.h
  2. +4
    -4
      pantomime-lib/Framework/Pantomime/CWIMAPFolder.m
  3. +2
    -2
      pantomime-lib/Framework/Pantomime/CWPart.m
  4. +2
    -2
      pantomime-lib/Framework/Pantomime/NSData+Extensions.m

+ 2
- 2
PantomimeFramework/PantomimeFramework/NSData+Extensions.h View File

@ -259,8 +259,8 @@
/// Like `componentsSeparatedByCString`, but calls the given block with each component, the current count, .
/// and a boolean denoting if it's the last element.
- (void)componentsSeparatedByCString:(const char *)theCString
block:(void (^)(NSData *aLine, NSUInteger count, BOOL isLast))block;
- (void)enumerateComponentsSeperatedByString:(const char *)theCString
block:(void (^)(NSData *aLine, NSUInteger count, BOOL isLast))block;
/*!
@method asciiString


+ 4
- 4
pantomime-lib/Framework/Pantomime/CWIMAPFolder.m View File

@ -773,10 +773,10 @@
NSMutableData *aMutableData = [[NSMutableData alloc] initWithCapacity: [theMessage length]];
// We now replace all \n by \r\n
[theMessage componentsSeparatedByCString:"\n"
block:^(NSData *aLine,
NSUInteger count,
BOOL isLast) {
[theMessage enumerateComponentsSeperatedByString:"\n"
block:^(NSData *aLine,
NSUInteger count,
BOOL isLast) {
// We skip dumb headers
if ([aLine hasCPrefix: "From "]) {
return;


+ 2
- 2
pantomime-lib/Framework/Pantomime/CWPart.m View File

@ -553,8 +553,8 @@ static int currentPartVersion = 2;
dataToSend = [dataToSend wrapWithLimit: limit];
}
[dataToSend componentsSeparatedByCString:"\n"
block:^(NSData *aLine, NSUInteger count, BOOL isLast) {
[dataToSend enumerateComponentsSeperatedByString:"\n"
block:^(NSData *aLine, NSUInteger count, BOOL isLast) {
if (isLast && [aLine length] == 0) {
return;
}


+ 2
- 2
pantomime-lib/Framework/Pantomime/NSData+Extensions.m View File

@ -762,8 +762,8 @@ static const char *hexDigit = "0123456789ABCDEF";
return AUTORELEASE(aMutableArray);
}
- (void)componentsSeparatedByCString:(const char *)theCString
block:(void (^)(NSData *aLine, NSUInteger count, BOOL isLast))block
- (void)enumerateComponentsSeperatedByString:(const char *)theCString
block:(void (^)(NSData *aLine, NSUInteger count, BOOL isLast))block
{
NSUInteger len = [self length];
NSRange r1 = NSMakeRange(0,len);


Loading…
Cancel
Save