root/Trunk/AIUtilities.framework/Versions/A/Headers/AIMutableStringAdditions.h @ 2

Revision 2, 1.0 KB (checked in by jon, 16 years ago)

Initial commit of skeletal project.

Line 
1//
2//  AIMutableStringAdditions.h
3//  Adium
4//
5//  Created by Nelson Elhage on Sun Mar 14 2004.
6//  Copyright (c) 2004-2005 The Adium Team. All rights reserved.
7//
8
9@interface NSMutableString (AIMutableStringAdditions)
10+ (NSMutableString *)stringWithContentsOfASCIIFile:(NSString *)path;
11
12//This is so that code that may be dealing with a mutable string
13//or mutable attributed string can call [str mutableString] and get
14//a mutable string out of it, that it can work with that without
15//worrying about what kind of string it's dealing with
16- (NSMutableString*)mutableString;
17
18- (void)convertNewlinesToSlashes;
19
20//There is/was code in Adium that attempted to be smart about avoiding doing NSMakeRange(0, [str length]) over and over again
21//At least a few cases were wrong, and it's generally pointless. Please use this instead and ignore the slight overhead.
22- (unsigned int)replaceOccurrencesOfString:(NSString *)target withString:(NSString *)replacement options:(unsigned)opts;
23
24@end
Note: See TracBrowser for help on using the browser.