![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
A string that is already translated. More...
#include <LocalizedText.h>
Public Member Functions | |
| LocalizedText (const std::string &) | |
| Create from existing string. More... | |
| LocalizedText () | |
| Create the empty string. | |
| operator std::string const & () const OX_REQUIRED_RESULT | |
| Return constant string. | |
| const char * | c_str () const OX_REQUIRED_RESULT |
| Get a pointer to underlying char data. | |
| LocalizedText | arg (const std::string &) const OX_REQUIRED_RESULT |
| Replace next argument. More... | |
| LocalizedText & | arg (const std::string &) OX_REQUIRED_RESULT |
| Replace the next argument placeholder with val. More... | |
| template<typename T > | |
| LocalizedText | arg (T) const OX_REQUIRED_RESULT |
| Replace the next argument placeholder with val. More... | |
| template<typename T > | |
| LocalizedText & | arg (T) OX_REQUIRED_RESULT |
| Replace the next argument placeholder with val. More... | |
A string that is already translated.
Using this class allows argument substitution in the translated strings.
|
inline |
Create from existing string.
Create a LocalizedText from a localized std::string.
| LocalizedText OpenXcom::LocalizedText::arg | ( | const std::string & | val | ) | const |
Replace next argument.
Replace the next argument placeholder with val.
| val | The value to place in the next placeholder's position. |
| LocalizedText & OpenXcom::LocalizedText::arg | ( | const std::string & | val | ) |
Replace the next argument placeholder with val.
| val | The value to place in the next placeholder's position. |
| LocalizedText OpenXcom::LocalizedText::arg | ( | T | val | ) | const |
Replace the next argument placeholder with val.
| T | The type of the replacement value. It should be streamable to std::owstringstream. |
| val | The value to place in the next placeholder's position. |
| LocalizedText & OpenXcom::LocalizedText::arg | ( | T | val | ) |
Replace the next argument placeholder with val.
| T | The type of the replacement value. It should be streamable to std::owstringstream. |
| val | The value to place in the next placeholder's position. |
1.8.14