forked from iziz/libPhoneNumber-iOS
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNBNumberFormat.h
More file actions
executable file
·23 lines (17 loc) · 975 Bytes
/
NBNumberFormat.h
File metadata and controls
executable file
·23 lines (17 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// NBPhoneNumberFormat.h
// libPhoneNumber
//
//
#import <Foundation/Foundation.h>
@interface NBNumberFormat : NSObject
// from phonemetadata.pb.js
/* 1 */ @property (nonatomic, strong) NSString *pattern;
/* 2 */ @property (nonatomic, strong) NSString *format;
/* 3 */ @property (nonatomic, strong) NSArray *leadingDigitsPatterns;
/* 4 */ @property (nonatomic, strong) NSString *nationalPrefixFormattingRule;
/* 6 */ @property (nonatomic, assign) BOOL nationalPrefixOptionalWhenFormatting;
/* 5 */ @property (nonatomic, strong) NSString *domesticCarrierCodeFormattingRule;
- (id)initWithPattern:(NSString *)pattern withFormat:(NSString *)format withLeadingDigitsPatterns:(NSArray *)leadingDigitsPatterns withNationalPrefixFormattingRule:(NSString *)nationalPrefixFormattingRule whenFormatting:(BOOL)nationalPrefixOptionalWhenFormatting withDomesticCarrierCodeFormattingRule:(NSString *)domesticCarrierCodeFormattingRule;
- (id)initWithEntry:(NSArray *)entry;
@end