blob: 6388fa2be855b7ad701726d13339fc1d58e18836 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
//
// NSString_CompletionExtensions.h
// Quicksilver
//
// Created by Alcor on Mon Mar 03 2003.
// Copyright (c) 2003 Blacktree, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
NSAttributedString * highlightString(NSString *string,NSString *keyString);
NSComparisonResult prefixCompare(NSString *aString, NSString *bString);
@interface NSString (Abbreviation)
- (float) scoreForString:(NSString *)string;
- (NSArray *) hitsForString:(NSString *)testString;
- (float) scoreForAbbreviation:(NSString *)abbreviation;
- (float) oldScoreForAbbreviation:(NSString *)abbreviation;
- (float) scoreForAbbreviation:(NSString *)abbreviation hitMask:(NSMutableIndexSet *)mask;
- (float) oldScoreForAbbreviation:(NSString *)abbreviation hitMask:(NSMutableIndexSet *)mask;
- (float) scoreForAbbreviation:(NSString *)abbreviation inRange:(NSRange)searchRange fromRange:(NSRange)abbreviationRange hitMask:(NSMutableIndexSet *)mask;
@end
@interface NSAttributedString (Sizing)
- (NSSize)sizeForWidth:(float)width;
@end
@interface NSString (URLEncoding)
- (NSString *) URLEncoding;
- (NSString *) URLDecoding;
@end
@interface NSString(uuid)
+ (NSString *)uniqueString;
@end
@interface NSString (Truncation)
-(NSString *) stringTruncatedToWidth:(float)width withAttributes:(NSDictionary *)attributes;
@end
@interface NSString (Hex)
-(NSString *) decodedPasteboardType;
-(NSString *) decodedHexString;
-(NSString *) encodedPasteboardType;
-(NSString *) encodedHexString;
-(unsigned) hexIntValue;
- (NSComparisonResult)versionCompare:(NSString *)other;
-(NSString *) encodedPasteboardType;
@end
@interface NSString (Replacement)
- (NSArray *)lines;
- (NSString *) stringByReplacing:(NSString *)search with:(NSString *)replacement;
@end
@interface NSString (Fit)
- (NSDictionary *) attributesToFitNumbersInRect:(NSRect)rect withAttributes:(NSDictionary *)attributes;
- (NSDictionary *) attributesToFitRect:(NSRect)rect withAttributes:(NSDictionary *)attributes;
@end
@interface NSString (Blacktree)
- (NSString *)stringByResolvingWildcardsInPath;
-(NSString *)firstUnusedFilePath;
- (NSArray *)componentsSeparatedByStrings:(NSArray *)strings;
@end
|