OpenTTD Source 20250426-master-gbb1d561369
Case Struct Reference

Container for the different cases of a string. More...

#include <strgen.h>

Public Member Functions

 Case (uint8_t caseidx, std::string_view string)
 Create a new case.
 

Data Fields

uint8_t caseidx
 The index of the case.
 
std::string string
 The translation of the case.
 

Detailed Description

Container for the different cases of a string.

Definition at line 21 of file strgen.h.

Constructor & Destructor Documentation

◆ Case()

Case::Case ( uint8_t  caseidx,
std::string_view  string 
)

Create a new case.

Parameters
caseidxThe index of the case.
stringThe translation of the case.

Definition at line 44 of file strgen_base.cpp.

Field Documentation

◆ caseidx

uint8_t Case::caseidx

The index of the case.

Definition at line 22 of file strgen.h.

◆ string

std::string Case::string

The translation of the case.

Definition at line 23 of file strgen.h.


The documentation for this struct was generated from the following files: