KMOCToolClass.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // KMOCToolClass.h
  3. // PDF Master
  4. //
  5. // Created by lxy on 2022/11/18.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "ComPDFKit/ComPDFKit.h"
  9. struct MwcFlags {
  10. unsigned int caseInsensitiveSearch:1;
  11. unsigned int wholeWordSearch:1;
  12. unsigned int settingUpWindow:1;
  13. };
  14. @interface KMOCToolClass : NSObject
  15. + (NSArray *)filterAnnotation:(NSArray *)annotations types:(NSArray *)types;
  16. + (NSArray *)filterAnnotation:(NSArray *)annotations colors:(NSArray *)color;
  17. + (NSArray *)filterAnnotation:(NSArray *)annotations authors:(NSArray *)authors;
  18. + (BOOL)arrayContains:(NSArray *)array annotation:(id)item;
  19. + (NSInteger)arrayIndexOf:(NSArray *)array annotation:(id)item;
  20. + (NSString *)exproString:(CPDFAnnotation *)annotation;
  21. + (NSMutableArray <NSString*>*)scannerCharaterString:(NSString *)string;
  22. + (NSMutableAttributedString *)getAttributedStringWithSelection:(CPDFSelection *)selection
  23. keyword:(NSString *)keyword;
  24. + (BOOL)wholeWordWithSelection:(CPDFSelection *)selection
  25. keyword:(NSString *)keyword;
  26. + (NSPredicate *)annotationSortPredicate:(NSArray *)soreArray;
  27. @end