mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-21 05:59:32 +00:00
Password creator nor correctly supports composed characters.
This mainly enabeld Emoji support
This commit is contained in:
18
MacPass/NSString+MPComposedCharacterAdditions.h
Normal file
18
MacPass/NSString+MPComposedCharacterAdditions.h
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// NSString+MPComposedCharacterLength.h
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 03.05.17.
|
||||
// Copyright © 2017 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface NSString (MPComposedCharacterAdditions)
|
||||
|
||||
@property (nonatomic, readonly) NSUInteger composedCharacterLength;
|
||||
@property (nonatomic, readonly, copy) NSArray<NSValue *> *composedCharacterRanges; // NSArray of NSValues of NSRanges
|
||||
|
||||
- (NSString *)composedCharacterAtIndex:(NSUInteger)index;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user