This repository was archived by the owner on Apr 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathFormatHelper.h
More file actions
55 lines (37 loc) · 1.38 KB
/
FormatHelper.h
File metadata and controls
55 lines (37 loc) · 1.38 KB
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
//
// FormatHelper.h
// contacts
//
// Created by Shane Celis on Fri Jan 10 2003.
//
#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>
BOOL isNullString(NSString* string);
id getValueForLabel(ABPerson *person,
NSString *property,
NSString *label);
NSString *getStringForLabel(ABPerson *person,
NSString *property,
NSString *label);
NSString *getDateForLabel(ABPerson *person,
NSString *property,
NSString *label);
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