Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
util::TranslatedLiteral Struct Reference

Compile-time literal string that can be translated with an optional translation function. More...

#include <translation.h>

Public Member Functions

consteval TranslatedLiteral (const char *str, const TranslateFn *fn=&G_TRANSLATION_FUN)
 
 operator std::string () const
 
 operator bilingual_str () const
 

Public Attributes

const char *const original
 
const TranslateFntranslate_fn
 

Detailed Description

Compile-time literal string that can be translated with an optional translation function.

Definition at line 55 of file translation.h.

Constructor & Destructor Documentation

◆ TranslatedLiteral()

consteval util::TranslatedLiteral::TranslatedLiteral ( const char *  str,
const TranslateFn fn = &G_TRANSLATION_FUN 
)
inline

Definition at line 59 of file translation.h.

Here is the call graph for this function:

Member Function Documentation

◆ operator bilingual_str()

util::TranslatedLiteral::operator bilingual_str ( ) const
inline

Definition at line 61 of file translation.h.

◆ operator std::string()

util::TranslatedLiteral::operator std::string ( ) const
inline

Definition at line 60 of file translation.h.

Member Data Documentation

◆ original

const char* const util::TranslatedLiteral::original

Definition at line 56 of file translation.h.

◆ translate_fn

const TranslateFn* util::TranslatedLiteral::translate_fn

Definition at line 57 of file translation.h.


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