SAGA API  v9.6
api_string.cpp File Reference
#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)
 

Function Documentation

◆ operator+() [1/4]

CSG_String operator+ ( char  A,
const CSG_String B 
)

Definition at line 491 of file api_string.cpp.

References A, and B.

◆ operator+() [2/4]

CSG_String operator+ ( const char *  A,
const CSG_String B 
)

Definition at line 473 of file api_string.cpp.

References A, and B.

◆ operator+() [3/4]

CSG_String operator+ ( const wchar_t *  A,
const CSG_String B 
)

Definition at line 482 of file api_string.cpp.

References A, and B.

◆ operator+() [4/4]

CSG_String operator+ ( wchar_t  A,
const CSG_String B 
)

Definition at line 500 of file api_string.cpp.

References A, and B.

◆ SG_Degree_To_Double()

double SG_Degree_To_Double ( const CSG_String String)

◆ SG_Double_To_Degree()

CSG_String SG_Double_To_Degree ( double  Value)

◆ SG_Flip_Decimal_Separators()

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.

◆ SG_Get_CurrentTimeStr()

CSG_String SG_Get_CurrentTimeStr ( bool  bWithDate)

Definition at line 1184 of file api_string.cpp.

◆ SG_Get_Significant_Decimals()

◆ SG_Get_String() [1/2]

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().

◆ SG_Get_String() [2/2]

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().

◆ SG_HTML_Tag_Replacer()

◆ SG_is_Character_Numeric()

bool SG_is_Character_Numeric ( int  Character)

Definition at line 1150 of file api_string.cpp.

◆ SG_String_Tokenize()