You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/src/Contacts/PhoneNumberUtil.h

30 lines
942 B
C

//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
10 years ago
#import <Foundation/Foundation.h>
#import "NBPhoneNumberUtil.h"
#import "PhoneNumber.h"
@interface PhoneNumberUtil : NSObject
@property (nonatomic, retain) NBPhoneNumberUtil *nbPhoneNumberUtil;
+ (BOOL)name:(NSString *)nameString matchesQuery:(NSString *)queryString;
+ (NSString *)callingCodeFromCountryCode:(NSString *)countryCode;
+ (NSString *)countryNameFromCountryCode:(NSString *)countryCode;
10 years ago
+ (NSArray *)countryCodesForSearchTerm:(NSString *)searchTerm;
- (NSArray *)countryCodesFromCallingCode:(NSString *)callingCode;
10 years ago
+ (NSUInteger)translateCursorPosition:(NSUInteger)offset
from:(NSString *)source
to:(NSString *)target
stickingRightward:(bool)preferHigh;
+ (NSString *)examplePhoneNumberForCountryCode:(NSString *)countryCode;
10 years ago
+ (instancetype)sharedUtil;
@end