Utility methods to works with errors or exceptional situations. More...
Data Structures | |
| struct | InferenceEngine::DescriptionBuffer |
| A description buffer wrapping StatusCode and ResponseDesc. More... | |
Functions | |
| void | InferenceEngine::details::ltrim (std::string &s) |
| trim from start (in place) More... | |
| void | InferenceEngine::details::rtrim (std::string &s) |
| trim from end (in place) More... | |
| std::string & | InferenceEngine::details::trim (std::string &s) |
| Trims std::string from both ends (in place) More... | |
| std::vector< std::string > | InferenceEngine::details::split (const std::string &src, const std::string &delimiter) |
| split string into a vector of substrings More... | |
| template<typename T , typename A > | |
| std::string | InferenceEngine::details::joinVec (std::vector< T, A > const &vec, std::string const &glue=std::string(",")) |
| create a string representation for a vector of values, without any suffixes or prefixes More... | |
| template<typename T , typename A > | |
| std::string | InferenceEngine::details::dumpVec (std::vector< T, A > const &vec) |
| create a string representation for a vector of values, enclosing text in a square brackets More... | |
| template<typename T , typename A > | |
| T | InferenceEngine::details::product (std::vector< T, A > const &vec) |
| multiply vector's values More... | |
| template<typename T , typename A > | |
| bool | InferenceEngine::details::equal (const std::vector< T, A > &v1, const std::vector< T, A > &v2) |
| check if vectors contain same values More... | |
| bool | InferenceEngine::details::equal (const std::string &lhs, const std::string &rhs, bool ignoreCase=true) |
Checks whether two std::strings are equal. More... | |
| bool | InferenceEngine::details::endsWith (const std::string &src, const char *with) |
| check string end with given substring More... | |
| std::string | InferenceEngine::details::tolower (const std::string &s) |
| Converts all upper-case letters in a std::string to lower case. More... | |
Utility methods to works with errors or exceptional situations.
| std::string InferenceEngine::details::dumpVec | ( | std::vector< T, A > const & | vec | ) |
create a string representation for a vector of values, enclosing text in a square brackets
| vec | - vector of values |
|
inline |
check string end with given substring
| src | - string to check |
| with | - given substring |
|
inline |
Checks whether two std::strings are equal.
| lhs | A first std::string to compare |
| rhs | A second std::string to compare |
| ignoreCase | Whether to ignore case-sensitivity, default is true |
True in case of std::strings are equal, false otherwise | bool InferenceEngine::details::equal | ( | const std::vector< T, A > & | v1, |
| const std::vector< T, A > & | v2 | ||
| ) |
check if vectors contain same values
| v1 | - first vector |
| v2 | - second vector |
| std::string InferenceEngine::details::joinVec | ( | std::vector< T, A > const & | vec, |
| std::string const & | glue = std::string(",") |
||
| ) |
create a string representation for a vector of values, without any suffixes or prefixes
| vec | Vector of values |
| glue | A separator |
|
inline |
trim from start (in place)
| s | - string to trim |
| T InferenceEngine::details::product | ( | std::vector< T, A > const & | vec | ) |
multiply vector's values
| vec | - vector with values |
|
inline |
trim from end (in place)
| s | - string to trim |
|
inline |
split string into a vector of substrings
| src | - string to split |
| delimiter | - string used as a delimiter |
|
inline |
Converts all upper-case letters in a std::string to lower case.
| s | A std::tring to convert |
|
inline |
Trims std::string from both ends (in place)
| s | A reference to a std::tring to trim |