Class Utils

Class Documentation

class Utils

AIAA Utils.

Public Static Functions

static bool iequals(const std::string &a, const std::string &b)

compare if 2 strings are same with ignore-case

Parameters
  • [in] a: left string

  • [in] b: right string

Return Value
  • true: if a == b

  • false: if a != b

static std::string to_lower(std::string str)

convert string to lower case

Return

lower case version of input string

Parameters
  • [in] str: input string

static std::string tempfilename()

get temporary filename

Return

full path for temporary file

static std::vector<std::string> split(const std::string &str, char delim)

split the sting

Return

vector of split strings

Parameters
  • [in] str: input string

  • [in] delim: delimiter character

static Point stringToPoint(const std::string &str, char delim)

3D point

Parameters
  • [in] str: input string

  • [in] delim: delimiter character

  • [inout] point: size which represents x,y,z

template<typename T, typename U>
static auto lexical_cast(U const &in, const std::locale &loc = std::locale::classic())

Lexical Cast with locale support.

Return

numberic/string based for the given locale

Parameters
  • [in] in: input string/numeric

  • [in] loc: local by default “C”