OpenTTD Source: Case Struct Reference

OpenTTD Source 14.0-beta3

Public Member Functions | Data Fields
Case Struct Reference

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

`#include <strgen.h>`

## Public Member Functions
| Case (int caseidx, const std::string &string)
| Create a new case. More...

## Data Fields
int | 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 20 of file strgen.h.

## Constructor & Destructor Documentation

## ◆ Case()

Case::Case | ( | int | caseidx,
|  | const std::string & | string
| ) |  |

Create a new case.

Parameters

  caseidx | The index of the case.
  string | The translation of the case.

Definition at line 42 of file strgen_base.cpp.

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

- src/strgen/strgen.h
- src/strgen/strgen_base.cpp