OpenTTD Source: LangString Struct Reference

OpenTTD Source 1.11.0-RC1

Public Member Functions | Data Fields
LangString Struct Reference

Information about a single string. More...

`#include <strgen.h>`

## Public Member Functions
| LangString (const char *name, const char *english, size_t index, int line)
| Create a new string. More...
| ~LangString ()
| Free everything we allocated.
void | FreeTranslation ()
| Free all data related to the translation.

## Data Fields
char * | name
| Name of the string.
char * | english
| English text.
char * | translated
| Translated text.
size_t | hash_next
| Next hash entry.
size_t | index
| The index in the language file.
int | line
| Line of string in source-file.
Case * | translated_case
| Cases of the translation.

## Detailed Description

Information about a single string.

Definition at line 26 of file strgen.h.

## Constructor & Destructor Documentation

## ◆ LangString()

LangString::LangString | ( | const char * | name,
|  | const char * | english,
|  | size_t | index,
|  | int | line
| ) |  |

Create a new string.

Parameters

  name | The name of the string.
  english | The english "translation" of the string.
  index | The index in the string table.
  line | The line this string was found on.

Definition at line 59 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