46 [[nodiscard]] std::string_view
getTitle (
const char* buf)
const {
49 [[nodiscard]] std::string_view
getYear (
const char* buf)
const {
52 [[nodiscard]] std::string_view
getCompany (
const char* buf)
const {
55 [[nodiscard]] std::string_view
getCountry (
const char* buf)
const {
58 [[nodiscard]] std::string_view
getOrigType(
const char* buf)
const {
61 [[nodiscard]] std::string_view
getRemark (
const char* buf)
const {
66 [[nodiscard]]
unsigned getGenMSXid()
const {
return genMSXid; }
constexpr const char * fromString32(const char *buffer, uint32_t str32)
std::conditional_t<(sizeof(char *) > sizeof(uint32_t)), uint32_t, const char * > String32
static const array_with_enum_index< RomType, RomInfo::RomTypeInfo > & getRomTypeInfo()
std::string_view getYear(const char *buf) const
static unsigned getBlockSize(RomType type)
unsigned getGenMSXid() const
std::string_view getTitle(const char *buf) const
static std::string_view getDescription(RomType type)
std::string_view getCompany(const char *buf) const
std::string_view getRemark(const char *buf) const
static auto getAllRomTypes()
RomInfo(String32 title_, String32 year_, String32 company_, String32 country_, bool original_, String32 origType_, String32 remark_, RomType romType_, unsigned genMSXid_)
static std::string_view romTypeToName(RomType type)
std::string_view getCountry(const char *buf) const
RomType getRomType() const
static RomType nameToRomType(std::string_view name)
std::string_view getOrigType(const char *buf) const
This file implemented 3 utility functions:
constexpr auto transform(Range &&range, UnaryOp op)
std::string_view description