NBNumberFormat.h 1.0 KB

123456789101112131415161718192021222324252627
  1. //
  2. // NBPhoneNumberFormat.h
  3. // libPhoneNumber
  4. //
  5. //
  6. #import <Foundation/Foundation.h>
  7. @interface NBNumberFormat : NSObject
  8. // from phonemetadata.pb.js
  9. /* 1 */ @property(nonatomic, strong) NSString *pattern;
  10. /* 2 */ @property(nonatomic, strong) NSString *format;
  11. /* 3 */ @property(nonatomic, strong) NSArray *leadingDigitsPatterns;
  12. /* 4 */ @property(nonatomic, strong) NSString *nationalPrefixFormattingRule;
  13. /* 6 */ @property(nonatomic, assign) BOOL nationalPrefixOptionalWhenFormatting;
  14. /* 5 */ @property(nonatomic, strong) NSString *domesticCarrierCodeFormattingRule;
  15. - (instancetype)initWithPattern:(NSString *)pattern
  16. withFormat:(NSString *)format
  17. withLeadingDigitsPatterns:(NSArray *)leadingDigitsPatterns
  18. withNationalPrefixFormattingRule:(NSString *)nationalPrefixFormattingRule
  19. whenFormatting:(BOOL)nationalPrefixOptionalWhenFormatting
  20. withDomesticCarrierCodeFormattingRule:(NSString *)domesticCarrierCodeFormattingRule;
  21. - (instancetype)initWithEntry:(NSArray *)entry;
  22. @end