mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 15:37:01 +00:00

git-subtree-dir: submodules/TelegramUI git-subtree-mainline: 5c1613d1048026b9e00a6ce753775cef87eb53fa git-subtree-split: fa3ac0b61a27c8dd3296518a15891a6f9750cbf2
32 lines
1.1 KiB
Objective-C
Executable File
32 lines
1.1 KiB
Objective-C
Executable File
//
|
|
// STPPhoneNumberValidator.h
|
|
// Stripe
|
|
//
|
|
// Created by Jack Flintermann on 10/16/15.
|
|
// Copyright © 2015 Stripe, Inc. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface STPPhoneNumberValidator : NSObject
|
|
|
|
+ (BOOL)stringIsValidPartialPhoneNumber:(NSString *)string;
|
|
+ (BOOL)stringIsValidPhoneNumber:(NSString *)string;
|
|
+ (BOOL)stringIsValidPartialPhoneNumber:(NSString *)string
|
|
forCountryCode:(nullable NSString *)countryCode;
|
|
+ (BOOL)stringIsValidPhoneNumber:(NSString *)string
|
|
forCountryCode:(nullable NSString *)countryCode;
|
|
|
|
+ (NSString *)formattedSanitizedPhoneNumberForString:(NSString *)string;
|
|
+ (NSString *)formattedSanitizedPhoneNumberForString:(NSString *)string
|
|
forCountryCode:(nullable NSString *)countryCode;
|
|
+ (NSString *)formattedRedactedPhoneNumberForString:(NSString *)string;
|
|
+ (NSString *)formattedRedactedPhoneNumberForString:(NSString *)string
|
|
forCountryCode:(nullable NSString *)countryCode;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|