// // KMOCToolClass.h // PDF Master // // Created by lxy on 2022/11/18. // #import #import "ComPDFKit/ComPDFKit.h" struct MwcFlags { unsigned int caseInsensitiveSearch:1; unsigned int wholeWordSearch:1; unsigned int settingUpWindow:1; }; @interface KMOCToolClass : NSObject + (NSArray *)filterAnnotation:(NSArray *)annotations types:(NSArray *)types; + (NSArray *)filterAnnotation:(NSArray *)annotations colors:(NSArray *)color; + (NSArray *)filterAnnotation:(NSArray *)annotations authors:(NSArray *)authors; + (BOOL)arrayContains:(NSArray *)array annotation:(id)item; + (NSInteger)arrayIndexOf:(NSArray *)array annotation:(id)item; + (NSString *)exproString:(CPDFAnnotation *)annotation; + (NSMutableArray *)scannerCharaterString:(NSString *)string; + (NSMutableAttributedString *)getAttributedStringWithSelection:(CPDFSelection *)selection keyword:(NSString *)keyword; + (BOOL)wholeWordWithSelection:(CPDFSelection *)selection keyword:(NSString *)keyword; + (NSPredicate *)annotationSortPredicate:(NSArray *)soreArray; @end