SAGA API  v9.5
CSG_Translator Class Reference

#include <api_core.h>

Public Member Functions

 CSG_Translator (void)
 
virtual ~CSG_Translator (void)
 
 CSG_Translator (const CSG_String &File_Name, bool bSetExtension=true, int iText=0, int iTranslation=1, bool bCmpNoCase=false)
 
bool Create (const CSG_String &File_Name, bool bSetExtension=true, int iText=0, int iTranslation=1, bool bCmpNoCase=false)
 
 CSG_Translator (class CSG_Table *pTranslations, int iText=0, int iTranslation=1, bool bCmpNoCase=false)
 
bool Create (class CSG_Table *pTranslations, int iText=0, int iTranslation=1, bool bCmpNoCase=false)
 
void Destroy (void)
 
bool is_CaseSensitive (void) const
 
int Get_Count (void) const
 
const SG_CharGet_Text (int i) const
 
const SG_CharGet_Translation (int i) const
 
const SG_CharGet_Translation (const SG_Char *Text, bool bReturnNullOnNotFound=false) const
 
bool Get_Translation (const SG_Char *Text, CSG_String &Translation) const
 

Detailed Description

Definition at line 1432 of file api_core.h.

Constructor & Destructor Documentation

◆ CSG_Translator() [1/3]

CSG_Translator::CSG_Translator ( void  )

Definition at line 106 of file api_translator.cpp.

◆ ~CSG_Translator()

CSG_Translator::~CSG_Translator ( void  )
virtual

Definition at line 129 of file api_translator.cpp.

References Destroy().

◆ CSG_Translator() [2/3]

CSG_Translator::CSG_Translator ( const CSG_String File_Name,
bool  bSetExtension = true,
int  iText = 0,
int  iTranslation = 1,
bool  bCmpNoCase = false 
)

Definition at line 112 of file api_translator.cpp.

References Create().

◆ CSG_Translator() [3/3]

CSG_Translator::CSG_Translator ( class CSG_Table pTranslations,
int  iText = 0,
int  iTranslation = 1,
bool  bCmpNoCase = false 
)

Definition at line 120 of file api_translator.cpp.

References Create().

Member Function Documentation

◆ Create() [1/2]

◆ Create() [2/2]

bool CSG_Translator::Create ( const CSG_String File_Name,
bool  bSetExtension = true,
int  iText = 0,
int  iTranslation = 1,
bool  bCmpNoCase = false 
)

◆ Destroy()

void CSG_Translator::Destroy ( void  )

Definition at line 135 of file api_translator.cpp.

References SG_Free().

Referenced by Create(), and ~CSG_Translator().

◆ Get_Count()

int CSG_Translator::Get_Count ( void  ) const
inline

Definition at line 1448 of file api_core.h.

Referenced by Create().

◆ Get_Text()

const SG_Char* CSG_Translator::Get_Text ( int  i) const
inline

Definition at line 1449 of file api_core.h.

References SG_T.

◆ Get_Translation() [1/3]

const SG_Char * CSG_Translator::Get_Translation ( const SG_Char Text,
bool  bReturnNullOnNotFound = false 
) const

Definition at line 295 of file api_translator.cpp.

References CSG_String::AfterFirst(), CSG_String::BeforeFirst(), and COMPARE.

◆ Get_Translation() [2/3]

bool CSG_Translator::Get_Translation ( const SG_Char Text,
CSG_String Translation 
) const

Definition at line 332 of file api_translator.cpp.

References CSG_String::AfterFirst(), CSG_String::BeforeFirst(), and COMPARE.

◆ Get_Translation() [3/3]

const SG_Char* CSG_Translator::Get_Translation ( int  i) const
inline

Definition at line 1450 of file api_core.h.

References SG_T.

Referenced by SG_Translate().

◆ is_CaseSensitive()

bool CSG_Translator::is_CaseSensitive ( void  ) const
inline

Definition at line 1446 of file api_core.h.


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