12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // KMOCToolClass.h
- // PDF Master
- //
- // Created by lxy on 2022/11/18.
- //
- #import <Foundation/Foundation.h>
- #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 <NSString*>*)scannerCharaterString:(NSString *)string;
- + (NSMutableAttributedString *)getAttributedStringWithSelection:(CPDFSelection *)selection
- keyword:(NSString *)keyword;
- + (BOOL)wholeWordWithSelection:(CPDFSelection *)selection
- keyword:(NSString *)keyword;
- + (NSPredicate *)annotationSortPredicate:(NSArray *)soreArray;
- @end
|