![]() |
Deluge Firmware 1.3.0
Build date: 2026.10.14
|
Read-only view over the files on the card, so name derivation can be tested without a card, a display, or the browser's static state. More...
#include <default_name.h>
Public Member Functions | |
| virtual std::string | highestNumberedName (char const *prefix) const =0 |
| Finds the highest-numbered member of the "<prefix><digits>" name family. | |
| virtual uint32_t | takenLetterSuffixes (char const *stem) const =0 |
| Reports which single-letter variations of a name already exist. | |
Read-only view over the files on the card, so name derivation can be tested without a card, a display, or the browser's static state.
Implemented over the Browser in the firmware, and over a vector in tests. Both queries ask about a whole family of related names at once rather than about one candidate name.
|
pure virtual |
Finds the highest-numbered member of the "<prefix><digits>" name family.
"Greatest" is by the browser's ordering, in which digit runs compare numerically, so "MYTRACK 11.XML" beats "MYTRACK 9.XML".
| prefix | The family's common leading text, including any delimiter ("MYTRACK "). |
|
pure virtual |
Reports which single-letter variations of a name already exist.
Names differing only in case or in extension (.XML / .Json) are the same variation.
| stem | The name the letter is appended to ("SONG185"). |