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.
|
|
|
//
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#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;
|
|
|
|
+ (NSArray *)countryCodesForSearchTerm:(NSString *)searchTerm;
|
|
|
|
- (NSArray *)countryCodesFromCallingCode:(NSString *)callingCode;
|
|
|
|
|
|
|
|
+ (NSUInteger)translateCursorPosition:(NSUInteger)offset
|
|
|
|
from:(NSString *)source
|
|
|
|
to:(NSString *)target
|
|
|
|
stickingRightward:(bool)preferHigh;
|
|
|
|
|
|
|
|
+ (instancetype)sharedUtil;
|
|
|
|
|
|
|
|
@end
|