You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
494 B
27 lines
494 B
// |
|
// NSString+CLStringAdditions.m |
|
// Clocker |
|
// |
|
// Created by Abhishek Banthia on 7/20/16. |
|
// |
|
// |
|
|
|
#import "NSString+CLStringAdditions.h" |
|
|
|
@implementation NSString (CLStringAdditions) |
|
|
|
|
|
- (NSString *)getFilteredNameForPlace |
|
{ |
|
NSString *filteredAddress = self; |
|
NSRange range = [self rangeOfString:@","]; |
|
|
|
if (range.location != NSNotFound) |
|
{ |
|
filteredAddress = [self substringWithRange:NSMakeRange(0, range.location)]; |
|
} |
|
|
|
return filteredAddress; |
|
} |
|
|
|
@end
|
|
|