-
Notifications
You must be signed in to change notification settings - Fork 1
/
FormatHelper.h
41 lines (27 loc) · 966 Bytes
/
FormatHelper.h
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
//
// FormatHelper.h
// contacts
//
// Created by Shane Celis on Fri Jan 10 2003.
//
#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>
NSArray *getFormatHelpers(NSString *format);
@interface FormatHelper : NSObject {
@protected
NSString *literalValue;
NSString *token;
}
- (id) initWithFormatToken: (NSString *) atoken;
- (id) initWithStringLiteral: (NSString *) literal;
- (char) type;
- (char) subtype;
- (int) fieldSize;
- (NSString *) printfToken;
- (NSString *) headerName;
- (NSString *) valueForPerson: (ABPerson *) person;
- (NSString *) valueForPerson: (ABPerson *) person withToken: (NSString *) aToken;
- (NSString *) valueForPerson: (ABPerson *) person withTokenPref: (NSArray *) tokens;
- (NSString *) addressForPerson: (ABPerson *) person withLabel: (NSString *) label;
- (NSString *) getNameString: (ABPerson *) person;
@end