Maintains a persistent map of search keys to their expanded word lists, merging new entries into the existing set and saving the result as JSON in the documents directory.
More...
#include <SearchExpandEditor.h>
|
| (instancetype) | - init |
| | Loads the persisted dictionary (or an empty one when none exists).
|
| (nullable NSDictionary *) | - getDictionary |
| | A snapshot copy of the current expansion dictionary.
|
| (BOOL) | - addSearchInfo:addWords: |
| | Merges a word list into the entry for a key, de-duplicating the union.
|
| (BOOL) | - addDictionary: |
| | Merges every key/word-list pair of another dictionary into this one.
|
| (void) | - loadDictionary |
| | Loads the persisted dictionary from the documents directory.
|
| (void) | - saveDictionary |
| | Saves the current dictionary as JSON to the documents directory.
|
|
| (void) | + copyDictionary |
| | Copies the bundled seed dictionary into the documents directory, replacing any existing copy.
|
Maintains a persistent map of search keys to their expanded word lists, merging new entries into the existing set and saving the result as JSON in the documents directory.
◆ addDictionary:
| - (BOOL) addDictionary: |
|
(nullable NSDictionary *) | dictionary |
|
Merges every key/word-list pair of another dictionary into this one.
- Parameters
-
| dictionary | The dictionary to merge in. |
- Returns
- Always
NO .
- Ghidra address:
- 0x15f070
◆ addSearchInfo:addWords:
| - (BOOL) addSearchInfo: |
|
(nullable NSString *) | searchInfo |
| addWords: |
|
(nullable NSArray *) | words |
Merges a word list into the entry for a key, de-duplicating the union.
- Parameters
-
| searchInfo | The key. |
| words | The words to add. |
- Returns
- Always
NO .
- Ghidra address:
- 0x15ef18
◆ copyDictionary
Initial value:{
NSMutableDictionary *expandDict
Copies the bundled seed dictionary into the documents directory, replacing any existing copy.
- Ghidra address:
- 0x15f4bc
◆ getDictionary
| - (NSDictionary *) getDictionary |
|
|
|
A snapshot copy of the current expansion dictionary.
- Returns
- An immutable copy of the dictionary.
- Ghidra address:
- 0x15eef8
- Ghidra address:
- 0x15eef8
◆ init
Loads the persisted dictionary (or an empty one when none exists).
- Returns
- The initialised editor.
- Ghidra address:
- 0x15ee9c
- Ghidra address:
- 0x15ee9c
◆ loadDictionary
Loads the persisted dictionary from the documents directory.
- Ghidra address:
- 0x15f1ec
◆ saveDictionary
Saves the current dictionary as JSON to the documents directory.
- Ghidra address:
- 0x15f384
The documentation for this class was generated from the following files: