44 [[nodiscard]] std::string_view
getTitle (
const char* buf)
const {
47 [[nodiscard]] std::string_view
getYear (
const char* buf)
const {
50 [[nodiscard]] std::string_view
getCompany (
const char* buf)
const {
53 [[nodiscard]] std::string_view
getCountry (
const char* buf)
const {
56 [[nodiscard]] std::string_view
getOrigType(
const char* buf)
const {
59 [[nodiscard]] std::string_view
getRemark (
const char* buf)
const {
64 [[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)
static zstring_view romTypeToName(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_)
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
Like std::string_view, but with the extra guarantee that it refers to a zero-terminated string.
This file implemented 3 utility functions:
constexpr auto transform(Range &&range, UnaryOp op)
std::string_view description