SAGA API
v9.6
|
#include <math.h>
#include <wx/string.h>
#include <wx/datetime.h>
#include <wx/tokenzr.h>
#include <wx/wxcrt.h>
#include <wx/wxcrtvararg.h>
#include <wx/convauto.h>
#include "api_core.h"
#include "mat_tools.h"
Go to the source code of this file.
Functions | |
CSG_String | operator+ (const char *A, const CSG_String &B) |
CSG_String | operator+ (const wchar_t *A, const CSG_String &B) |
CSG_String | operator+ (char A, const CSG_String &B) |
CSG_String | operator+ (wchar_t A, const CSG_String &B) |
bool | SG_is_Character_Numeric (int Character) |
CSG_String | SG_Get_CurrentTimeStr (bool bWithDate) |
CSG_String | SG_Double_To_Degree (double Value) |
double | SG_Degree_To_Double (const CSG_String &String) |
int | SG_Get_Significant_Decimals (double Value, int maxDecimals) |
void | SG_Flip_Decimal_Separators (CSG_String &String) |
CSG_String | SG_Get_String (double Value, int Precision) |
CSG_String | SG_Get_String (int Value, int Precision) |
CSG_String | SG_HTML_Tag_Replacer (const CSG_String &Text) |
CSG_Strings | SG_String_Tokenize (const CSG_String &String, const CSG_String &Delimiters, TSG_String_Tokenizer_Mode Mode) |
CSG_String operator+ | ( | char | A, |
const CSG_String & | B | ||
) |
Definition at line 491 of file api_string.cpp.
CSG_String operator+ | ( | const char * | A, |
const CSG_String & | B | ||
) |
Definition at line 473 of file api_string.cpp.
CSG_String operator+ | ( | const wchar_t * | A, |
const CSG_String & | B | ||
) |
Definition at line 482 of file api_string.cpp.
CSG_String operator+ | ( | wchar_t | A, |
const CSG_String & | B | ||
) |
Definition at line 500 of file api_string.cpp.
double SG_Degree_To_Double | ( | const CSG_String & | String | ) |
Definition at line 1226 of file api_string.cpp.
References CSG_String::AfterFirst(), CSG_String::asDouble(), CSG_String::BeforeFirst(), and SG_T.
Referenced by CSG_Parameter_Degree::_Set_Value().
CSG_String SG_Double_To_Degree | ( | double | Value | ) |
Definition at line 1206 of file api_string.cpp.
References CSG_String::Format(), SG_Get_Significant_Decimals(), and SG_T.
Referenced by CSG_Parameter_Degree::_Set_String().
void SG_Flip_Decimal_Separators | ( | CSG_String & | String | ) |
Definition at line 1285 of file api_string.cpp.
References CSG_String::Length(), CSG_String::Set_Char(), and SG_T.
CSG_String SG_Get_CurrentTimeStr | ( | bool | bWithDate | ) |
Definition at line 1184 of file api_string.cpp.
int SG_Get_Significant_Decimals | ( | double | Value, |
int | maxDecimals | ||
) |
Definition at line 1256 of file api_string.cpp.
Referenced by CSG_Parameter_Double::_Serialize(), CSG_Parameter_Range::_Serialize(), CSG_Parameter_Double::_Set_String(), CSG_Parameter_Range::_Set_String(), CSG_Grid_System::Get_Name(), SG_Double_To_Degree(), and SG_Get_String().
CSG_String SG_Get_String | ( | double | Value, |
int | Precision | ||
) |
Returns floating point number 'Value' as formatted string. The format depends on the 'Precision' value. If Precision is -99 (the default) it will simply use f format. If 'Precision' is -98 the string will always be formatted with the e format specification (i.e. scientific: d.dddd e dd). If Precision is zero (= 0) no decimals will be printed If Precision is positive (> 0) it specifies the fix number of decimals ("%.*f", Precision, Value), if negative only significant decimals will be plotted up to a maximum of the absolute value of 'Precision' digits.
Definition at line 1318 of file api_string.cpp.
References CSG_String::Left(), CSG_String::Length(), CSG_String::Printf(), CSG_String::Replace(), and SG_Get_Significant_Decimals().
Referenced by CSG_MetaData::Add_Child(), CSG_Table_Value_Double::asString(), CSG_Grids::Get_Grid_Name(), CSG_MetaData::Ins_Child(), CSG_Classifier_Supervised::Print(), and SG_Get_String().
CSG_String SG_Get_String | ( | int | Value, |
int | Precision | ||
) |
Definition at line 1368 of file api_string.cpp.
References CSG_String::Format(), and SG_Get_String().
CSG_String SG_HTML_Tag_Replacer | ( | const CSG_String & | Text | ) |
Definition at line 1389 of file api_string.cpp.
References CSG_String::AfterFirst(), CSG_String::BeforeFirst(), CSG_String::Find(), CSG_String::is_Empty(), CSG_String::Left(), CSG_String::Length(), CSG_String::Replace(), and CSG_String::Right().
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_Tool::Get_Summary(), and CSG_Tool_Library::Get_Summary().
bool SG_is_Character_Numeric | ( | int | Character | ) |
Definition at line 1150 of file api_string.cpp.
CSG_Strings SG_String_Tokenize | ( | const CSG_String & | String, |
const CSG_String & | Delimiters, | ||
TSG_String_Tokenizer_Mode | Mode | ||
) |
Definition at line 1540 of file api_string.cpp.
References CSG_String_Tokenizer::Get_Next_Token(), and CSG_String_Tokenizer::Has_More_Tokens().
Referenced by CSG_Tool_Library_Manager::Add_Default_Libraries(), CSG_Projection::Create(), CSG_Tool::Get_MenuPath(), and CSG_Parameter_Choice::Set_Items().