|
OpenTTD Source 20260721-master-g25ec12c62d
|
Base for a four character label/tag/id. More...
#include <label_type.hpp>
Public Member Functions | |
| constexpr bool | Empty () const |
| Check whether the label is empty. | |
| std::string | AsString () const |
Get the label as a std::string. | |
Base for a four character label/tag/id.
Definition at line 14 of file label_type.hpp.
| std::string BaseLabel::AsString | ( | ) | const |
Get the label as a std::string.
If the label is all std::isgraph characters, it will return these characters as string, otherwise it will format it as a 8-digit hexadecimal.
Definition at line 22 of file label.cpp.
References FormatArrayAsHex().
Referenced by ConDumpRailTypes(), and ConDumpRoadTypes().
|
inlineconstexpr |
Check whether the label is empty.
true iff the label is empty, i.e. all zeros. Definition at line 19 of file label_type.hpp.
Referenced by AddDateIntroducedRailTypes(), AddDateIntroducedRoadTypes(), IndustryOverrideManager::AddEntityID(), OverrideManagerBase::AddEntityID(), ConDumpRailTypes(), ConDumpRoadTypes(), FillGRFDetails(), GetRailTypeByLabel(), GetRoadTypeByLabel(), GetTownName(), HasRoadTypeAvail(), InitRailTypes(), InitRoadTypes(), CITYChunkHandler::Load(), SetNewGRFOverride(), SlLoadCheckChunks(), SlLoadChunks(), and TownNameParams::TownNameParams().