JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SearchExpandEditor.h
Go to the documentation of this file.
1
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
17@interface SearchExpandEditor : NSObject
18
24+ (void)copyDictionary;
25
31- (instancetype)init;
32
38- (nullable NSDictionary *)getDictionary;
39
47- (BOOL)addSearchInfo:(nullable NSString *)searchInfo addWords:(nullable NSArray *)words;
48
55- (BOOL)addDictionary:(nullable NSDictionary *)dictionary;
56
61- (void)loadDictionary;
62
67- (void)saveDictionary;
68
69@end
70
71NS_ASSUME_NONNULL_END
72
73// code: language=Objective-C
74// kate: hl Objective-C;
75// vim: set ft=objc :
Maintains a persistent map of search keys to their expanded word lists, merging new entries into the ...
Definition SearchExpandEditor.h:18
nullable NSDictionary * getDictionary()
A snapshot copy of the current expansion dictionary.
Definition SearchExpandEditor.m:52
void loadDictionary()
Loads the persisted dictionary from the documents directory.
Definition SearchExpandEditor.m:80
void copyDictionary()
Copies the bundled seed dictionary into the documents directory, replacing any existing copy.
Definition SearchExpandEditor.m:20
void saveDictionary()
Saves the current dictionary as JSON to the documents directory.
Definition SearchExpandEditor.m:96
instancetype init()
Loads the persisted dictionary (or an empty one when none exists).
Definition SearchExpandEditor.m:41