Objective-C
Objective-C
StringBuilder GetBetween
Demonstrates the GetBetween method.Chilkat Objective-C Downloads
#import <CkoStringBuilder.h>
#import <NSString.h>
CkoStringBuilder *sb = [[CkoStringBuilder alloc] init];
[sb Append: @"<company><name>Chilkat Software</name></company>"];
// For example, to get the company name in the string above...
NSString *companyName = [sb GetBetween: @"<name>" endMark: @"</name>"];
NSLog(@"%@%@",@"Company Name = ",companyName);