Sparkle support for automatic updates
[MacVim.git] / src / MacVim / Sparkle.framework / Versions / A / Headers / NSString+extras.h
blob498e4d01c90204e62feba77b1d1b4557b669b946
1 /*
3 BSD License
5 Copyright (c) 2002, Brent Simmons
6 All rights reserved.
8 Redistribution and use in source and binary forms, with or without modification,
9 are permitted provided that the following conditions are met:
11 * Redistributions of source code must retain the above copyright notice,
12 this list of conditions and the following disclaimer.
13 * Redistributions in binary form must reproduce the above copyright notice,
14 this list of conditions and the following disclaimer in the documentation
15 and/or other materials provided with the distribution.
16 * Neither the name of ranchero.com or Brent Simmons nor the names of its
17 contributors may be used to endorse or promote products derived
18 from this software without specific prior written permission.
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
24 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
25 OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
26 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 NSString+extras.h
37 NetNewsWire
39 Created by Brent Simmons on Fri Jun 14 2002.
40 Copyright (c) 2002 Brent Simmons. All rights reserved.
44 #import <Foundation/Foundation.h>
45 #import <CoreFoundation/CoreFoundation.h>
48 @interface NSString (extras)
50 - (NSString *)stringWithSubstitute:(NSString *)subs forCharactersFromSet:(NSCharacterSet *)set;
52 - (NSString *) trimWhiteSpace;
54 - (NSString *) stripHTML;
56 - (NSString *) ellipsizeAfterNWords: (int) n;
58 + (BOOL) stringIsEmpty: (NSString *) s;
61 @end