NBRegExMatcher.h 824 B

12345678910111213141516171819202122232425262728
  1. //
  2. // NBRegExMatcher.h
  3. // libPhoneNumber
  4. //
  5. // Created by Paween Itthipalkul on 11/29/17.
  6. // Copyright © 2017 Google LLC. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class NBPhoneNumberDesc;
  10. @interface NBRegExMatcher : NSObject
  11. /**
  12. Returns whether the given national number (a string containing only decimal digits) matches
  13. the national number pattern defined in the given {@code PhoneNumberDesc} message.
  14. @param string National number string ot match.
  15. @param numberDesc Phone number description.
  16. @param allowsPrefixMatch Whether to allow prefix match or not.
  17. @return Whether the given national number matches the pattern.
  18. */
  19. - (BOOL)matchNationalNumber:(NSString *)string
  20. phoneNumberDesc:(NBPhoneNumberDesc *)numberDesc
  21. allowsPrefixMatch:(BOOL)allowsPrefixMatch;
  22. @end