JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SearchExpandEditor Class Reference

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>

Inheritance diagram for SearchExpandEditor:
Collaboration diagram for SearchExpandEditor:

Instance Methods

(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.

Class Methods

(void) + copyDictionary
 Copies the bundled seed dictionary into the documents directory, replacing any existing copy.

Detailed Description

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.

Method Documentation

◆ addDictionary:

- (BOOL) addDictionary: (nullable NSDictionary *) dictionary

Merges every key/word-list pair of another dictionary into this one.

Parameters
dictionaryThe 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
searchInfoThe key.
wordsThe words to add.
Returns
Always NO .
Ghidra address:
0x15ef18

◆ copyDictionary

+ (void) 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

- (instancetype) init

Loads the persisted dictionary (or an empty one when none exists).

Returns
The initialised editor.
Ghidra address:
0x15ee9c
Ghidra address:
0x15ee9c

◆ loadDictionary

- (void) loadDictionary

Loads the persisted dictionary from the documents directory.

Ghidra address:
0x15f1ec

◆ saveDictionary

- (void) 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: