SAGA API
v9.6
|
#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_Char * | Get_Text (int i) const |
const SG_Char * | Get_Translation (int i) const |
const SG_Char * | Get_Translation (const SG_Char *Text, bool bReturnNullOnNotFound=false) const |
bool | Get_Translation (const SG_Char *Text, CSG_String &Translation) const |
Definition at line 1432 of file api_core.h.
CSG_Translator::CSG_Translator | ( | void | ) |
Definition at line 106 of file api_translator.cpp.
|
virtual |
Definition at line 129 of file api_translator.cpp.
References Destroy().
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::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().
bool CSG_Translator::Create | ( | class CSG_Table * | pTranslations, |
int | iText = 0 , |
||
int | iTranslation = 1 , |
||
bool | bCmpNoCase = false |
||
) |
Definition at line 177 of file api_translator.cpp.
References CSG_Table_Record::asString(), CSG_String::c_str(), Destroy(), Get_Count(), CSG_Table::Get_Count(), CSG_Table::Get_Field_Count(), CSG_Table::Get_Record(), CSG_Table::Get_Record_byIndex(), CSG_Table_Record::is_NoData(), CSG_String::Make_Lower(), CSG_Table::Set_Index(), CSG_Table_Record::Set_Value(), SG_Malloc(), SG_Realloc(), SG_UI_Msg_Lock(), and TABLE_INDEX_Ascending.
bool CSG_Translator::Create | ( | const CSG_String & | File_Name, |
bool | bSetExtension = true , |
||
int | iText = 0 , |
||
int | iTranslation = 1 , |
||
bool | bCmpNoCase = false |
||
) |
Definition at line 157 of file api_translator.cpp.
References CSG_Table::Create(), Destroy(), SG_FILE_ENCODING_UTF8, SG_File_Exists(), SG_File_Make_Path(), SG_UI_Msg_Lock(), and TABLE_FILETYPE_Text.
Referenced by CSG_Translator().
void CSG_Translator::Destroy | ( | void | ) |
Definition at line 135 of file api_translator.cpp.
References SG_Free().
Referenced by Create(), and ~CSG_Translator().
|
inline |
Definition at line 1448 of file api_core.h.
Referenced by Create().
|
inline |
Definition at line 1449 of file api_core.h.
References SG_T.
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.
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.
|
inline |
|
inline |
Definition at line 1446 of file api_core.h.