25 , remark (std::move(remark_))
32 [[nodiscard]] std::string_view
getTitle (
const char* buf)
const {
35 [[nodiscard]] std::string_view
getYear (
const char* buf)
const {
38 [[nodiscard]] std::string_view
getCompany (
const char* buf)
const {
41 [[nodiscard]] std::string_view
getCountry (
const char* buf)
const {
44 [[nodiscard]] std::string_view
getOrigType(
const char* buf)
const {
47 [[nodiscard]] std::string_view
getRemark (
const char* buf)
const {
55 [[nodiscard]]
static std::vector<std::string_view>
getAllRomTypes();
std::conditional_t<(sizeof(char *) > sizeof(uint32_t)), uint32_t, const char * > String32
constexpr const char * fromString32(const char *buffer, uint32_t str32)
std::string_view getYear(const char *buf) const
static unsigned getBlockSize(RomType type)
static std::string_view getDescription(RomType type)
std::string_view getTitle(const char *buf) const
std::string_view getCompany(const char *buf) const
RomInfo(String32 title_, String32 year_, String32 company_, String32 country_, bool original_, String32 origType_, String32 remark_, RomType romType_, int genMSXid_)
std::string_view getRemark(const char *buf) const
std::string_view getCountry(const char *buf) const
RomType getRomType() const
static std::vector< std::string_view > getAllRomTypes()
static RomType nameToRomType(std::string_view name)
static std::string_view romTypeToName(RomType type)
std::string_view getOrigType(const char *buf) const
This file implemented 3 utility functions: