//
//  NSString+TrimmingAdditions.h
//  JobTalk
//
//  Created by Xummer on 14-9-28.
//  Copyright (c) 2014年 BST. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (TrimmingAdditions)

- (NSString *)stringByTrimmingLeadingCharactersInSet:(NSCharacterSet *)characterSet;

- (NSString *)stringByTrimmingLeadingWhitespaceAndNewlineCharacters;

- (NSString *)stringByTrimmingTrailingCharactersInSet:(NSCharacterSet *)characterSet;

- (NSString *)stringByTrimmingTrailingWhitespaceAndNewlineCharacters;

@end

@interface NSString (Segmentation)

- (NSString *)UserIDFromJidStr;

- (NSString *)JidStrWithUserID;

@end

@interface NSString (EncodeAndDecode)

- (NSString *)MD5String;
- (NSString *)uppercaseMD5String;

@end

@interface NSString (FileExt)

- (BOOL)extensionIsImageType;

@end
