Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (27 sloc) 966 Bytes
//
// 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