mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
03ce3635cb
- Fixed a crash where an offset wrapped around when deleting the opening bracket - Backspacing now skips over formatting characters - Cursor position is maintained more accurately when reformatting - Added a few utility methods - Also fixed a test not having "test" as a prefix, causing it not to run //FREEBIE
15 lines
566 B
Objective-C
15 lines
566 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "PhoneNumber.h"
|
|
|
|
@interface PhoneNumberUtil : NSObject
|
|
+ (NSString *)callingCodeFromCountryCode:(NSString *)code;
|
|
+ (NSString *)countryNameFromCountryCode:(NSString *)code;
|
|
+ (NSArray *)countryCodesForSearchTerm:(NSString *)searchTerm;
|
|
+ (NSString*) normalizePhoneNumber:(NSString *) number;
|
|
|
|
+(NSUInteger) translateCursorPosition:(NSUInteger)offset
|
|
from:(NSString*)source
|
|
to:(NSString*)target
|
|
stickingRightward:(bool)preferHigh;
|
|
|
|
@end
|