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/Signal/src/util/PhoneNumberUtil.h

23 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