mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-23 19:36:26 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
43 lines
1.0 KiB
Objective-C
43 lines
1.0 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int32_t murMurHash32(NSString *string);
|
|
int32_t murMurHashBytes32(void *bytes, int length);
|
|
|
|
bool TGIsRTL();
|
|
bool TGIsArabic();
|
|
bool TGIsKorean();
|
|
bool TGIsLocaleArabic();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
@interface TGStringUtils : NSObject
|
|
|
|
+ (bool)stringContainsEmojiOnly:(NSString *)string length:(NSUInteger *)length;
|
|
|
|
+ (NSString *)stringWithLocalizedNumber:(NSInteger)number;
|
|
+ (NSString *)stringWithLocalizedNumberCharacters:(NSString *)string;
|
|
|
|
+ (NSString *)stringForFileSize:(NSUInteger)size precision:(NSInteger)precision;
|
|
|
|
+ (NSString *)initialsForFirstName:(NSString *)firstName lastName:(NSString *)lastName single:(bool)single;
|
|
+ (NSString *)initialForGroupName:(NSString *)groupName;
|
|
|
|
+ (NSString *)integerValueFormat:(NSString *)prefix value:(NSInteger)value;
|
|
|
|
+ (NSString *)md5WithString:(NSString *)string;
|
|
|
|
@end
|
|
|
|
|
|
@interface NSString (NSArrayFormatExtension)
|
|
|
|
+ (id)stringWithFormat:(NSString *)format array:(NSArray*) arguments;
|
|
|
|
@end
|