diff options
author | Matt Ronge <mronge@mronge.com> | 2014-03-14 13:06:50 -0500 |
---|---|---|
committer | Matt Ronge <mronge@mronge.com> | 2014-03-14 13:06:50 -0500 |
commit | 3bda01fedffff8e705ae0f99fa9028a389255f9d (patch) | |
tree | ec40204a443d8c9fde3ba6fcf0c5811997fc405b /src/objc | |
parent | 258db9ca698cf83030057ca6cb10b6d08e094c1b (diff) |
Moved strip whitespace into its own method
Diffstat (limited to 'src/objc')
-rw-r--r-- | src/objc/utils/NSString+MCO.h | 1 | ||||
-rw-r--r-- | src/objc/utils/NSString+MCO.mm | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/objc/utils/NSString+MCO.h b/src/objc/utils/NSString+MCO.h index ac374bf7..71e99a44 100644 --- a/src/objc/utils/NSString+MCO.h +++ b/src/objc/utils/NSString+MCO.h @@ -34,6 +34,7 @@ namespace mailcore { - (NSString *) mco_htmlEncodedString; - (NSString *) mco_cleanedHTMLString; +- (NSString *) mco_strippedWhitespace; @end diff --git a/src/objc/utils/NSString+MCO.mm b/src/objc/utils/NSString+MCO.mm index e9933fab..68f75302 100644 --- a/src/objc/utils/NSString+MCO.mm +++ b/src/objc/utils/NSString+MCO.mm @@ -65,5 +65,9 @@ return [NSString mco_stringWithMCString:[self mco_mcString]->cleanedHTMLString()]; } +- (NSString *) mco_strippedWhitespace +{ + return [NSString mco_stringWithMCString:[self mco_mcString]->stripWhitespace()]; +} @end |