Documentation 6b54b78464
Loading...
Searching...
No Matches
PrintingToolbox Namespace Reference

Classes

class  CTablePrinter
 Class for writing output in a table. More...
 

Functions

void PrintScreenFixed (std::ostream &stream, su2double val, unsigned short field_width)
 
void PrintScreenScientific (std::ostream &stream, su2double val, unsigned short field_width)
 
void PrintScreenInteger (std::ostream &stream, unsigned long val, unsigned short field_width)
 
void PrintScreenPercent (std::ostream &stream, su2double val, unsigned short field_width)
 
std::vector< std::string > split (const std::string &s, char delimiter)
 
int stoi (const std::string s)
 
su2double stod (const std::string s)
 
std::string to_string (const su2double number)
 
std::string & rtrim (std::string &s, const char *t=ws)
 
std::string & ltrim (std::string &s, const char *t=ws)
 
std::string & trim (std::string &s, const char *t=ws)
 
void StringToUpperCase (std::string &str)
 utility function for converting strings to uppercase
 
std::string StringToUpperCase (const std::string &str)
 utility function for converting strings to uppercase
 
void TrimExtension (const std::string &ext, std::string &name)
 Trim an extension from a name.
 

Function Documentation

◆ ltrim()

std::string & PrintingToolbox::ltrim ( std::string &  s,
const char *  t = ws 
)
inline

◆ PrintScreenFixed()

void PrintingToolbox::PrintScreenFixed ( std::ostream &  stream,
su2double  val,
unsigned short  field_width 
)
inline

◆ PrintScreenInteger()

void PrintingToolbox::PrintScreenInteger ( std::ostream &  stream,
unsigned long  val,
unsigned short  field_width 
)
inline

◆ PrintScreenPercent()

void PrintingToolbox::PrintScreenPercent ( std::ostream &  stream,
su2double  val,
unsigned short  field_width 
)
inline

◆ PrintScreenScientific()

void PrintingToolbox::PrintScreenScientific ( std::ostream &  stream,
su2double  val,
unsigned short  field_width 
)
inline

◆ rtrim()

std::string & PrintingToolbox::rtrim ( std::string &  s,
const char *  t = ws 
)
inline

◆ split()

std::vector< std::string > PrintingToolbox::split ( const std::string &  s,
char  delimiter 
)
inline

◆ stod()

su2double PrintingToolbox::stod ( const std::string  s)
inline

◆ stoi()

int PrintingToolbox::stoi ( const std::string  s)
inline

◆ StringToUpperCase() [1/2]

std::string PrintingToolbox::StringToUpperCase ( const std::string &  str)
inline

utility function for converting strings to uppercase

Parameters
[in]str- string we want a copy of converted to uppercase
Returns
a copy of str in uppercase

◆ StringToUpperCase() [2/2]

void PrintingToolbox::StringToUpperCase ( std::string &  str)
inline

utility function for converting strings to uppercase

Parameters
[in,out]str- string we want to convert

◆ to_string()

std::string PrintingToolbox::to_string ( const su2double  number)
inline

◆ trim()

std::string & PrintingToolbox::trim ( std::string &  s,
const char *  t = ws 
)
inline

◆ TrimExtension()

void PrintingToolbox::TrimExtension ( const std::string &  ext,
std::string &  name 
)
inline

Trim an extension from a name.

Parameters
[in]-extension we want to remove.
[in,out]-string we want to trim.