mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
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
|