//
//  XTStringUtils.h
//  TadsTerp
//
//  Created by Rune Berg on 24/04/14.
//  Copyright (c) 2014 Rune Berg. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface XTStringUtils : NSObject

+ (BOOL)string:(NSString *)string endsWithChar:(unichar)ch;

+ (BOOL)string:(NSString *)string endsWith:(NSString *)end;

+ (BOOL)string:(NSString *)string endsWithCaseInsensitive:(NSString *)end;

+ (NSString *)filterRepeatedNewlines:(NSString *)string;

//TODO rm if not used
//+ (NSRange)findRangeOfTabsAfterLastNewline:(NSString *)string;

+ (NSRange)findRangeOfWhitespaceAfterLastNewline:(NSString *)string;

+ (NSString *)trimLeadingAndTrailingWhitespace:(NSString *)string;

+ (NSString *)emptyIfNull:(NSString *)string;

+ (BOOL)isInternetLink:(NSString *)string;

@end
