CppEphem
Functions
CppEphem::StrOpt Namespace Reference

Functions

template<typename T >
std::string join (const std::vector< T > &values, const char &delim)
 Method for joining a vector of values based on some delimiter into a string. More...
 
std::string join_angle (const std::vector< double > &values, const char &delim)
 Method for splitting a string based on some delimiter into a vector of strings. More...
 
std::vector< std::string > split (const std::string &s, const char &delim)
 Method for splitting a string based on some delimiter into a vector of strings. More...
 
void split (const std::string &s, const char &delim, std::vector< std::string > *elems)
 Method for splitting a string based on some delimiter into a vector of strings. More...
 

Function Documentation

◆ join()

template<typename T >
std::string CppEphem::StrOpt::join ( const std::vector< T > &  values,
const char &  delim 
)

Method for joining a vector of values based on some delimiter into a string.

Parameters
[in]valuesVector of values to be joined
[in]delimDelimiter to use between values

Definition at line 240 of file CENamespace.cpp.

◆ join_angle()

std::string CppEphem::StrOpt::join_angle ( const std::vector< double > &  values,
const char &  delim 
)

Method for splitting a string based on some delimiter into a vector of strings.

Definition at line 267 of file CENamespace.cpp.

◆ split() [1/2]

std::vector< std::string > CppEphem::StrOpt::split ( const std::string &  s,
const char &  delim 
)

Method for splitting a string based on some delimiter into a vector of strings.

Definition at line 224 of file CENamespace.cpp.

◆ split() [2/2]

void CppEphem::StrOpt::split ( const std::string &  s,
const char &  delim,
std::vector< std::string > *  elems 
)

Method for splitting a string based on some delimiter into a vector of strings.

Parameters
[in]s
[in]delim
[out]elems

Definition at line 209 of file CENamespace.cpp.