24 if (std::ranges::all_of(*
this, [](uint8_t c) {
return std::isgraph(c); })) {
25 return std::string{
reinterpret_cast<const char *
>(this->data()), this->size()};
A type for 4 character labels/tags/ids in files that should be read/shown as is.
A number of safeguards to prevent using unsafe methods.
Definition of base types and functions in a cross-platform compatible way.
std::string FormatArrayAsHex(std::span< const uint8_t > data)
Format a byte array into a continuous hex string.
Functions related to low-level strings.
std::string AsString() const
Get the label as a std::string.