mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
a1d0b6b1ad
Allow the entry of the country dial code to also pre-select/filter the list of options. Useful for countries way down the list, or countries that tend to be spelled in widely different ways. Closes #662
22 lines
752 B
Objective-C
22 lines
752 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "PhoneNumber.h"
|
|
#import "NBPhoneNumberUtil.h"
|
|
|
|
@interface PhoneNumberUtil : NSObject
|
|
|
|
MacrosSingletonInterface
|
|
|
|
@property (nonatomic, retain) NBPhoneNumberUtil *nbPhoneNumberUtil;
|
|
|
|
+ (NSString *)callingCodeFromCountryCode:(NSString *)code;
|
|
+ (NSString *)countryNameFromCountryCode:(NSString *)code;
|
|
+ (NSArray *)countryCodesForSearchTerm:(NSString *)searchTerm;
|
|
+ (NSString*) normalizePhoneNumber:(NSString *) number;
|
|
+(NSArray *)validCountryCallingPrefixes:(NSString *)string;
|
|
|
|
+(NSUInteger) translateCursorPosition:(NSUInteger)offset
|
|
from:(NSString*)source
|
|
to:(NSString*)target
|
|
stickingRightward:(bool)preferHigh;
|
|
|
|
@end
|