|
template<typename T , typename... Args> |
std::unique_ptr< T > | make_unique (Args &&... args) |
|
template<size_t N> |
constexpr size_t | find_first (std::bitset< N > &bits) |
|
template<typename T > |
T | leftmost_one (T n) |
|
constexpr size_t | uCount (uint32_t u) |
|
constexpr size_t | bit_count (uint32_t u) |
|
template<typename T > |
CONSTEXPR std::enable_if< std::is_integral< T >::value, T >::type | rotl (T n, unsigned int c) |
|
template<typename T > |
CONSTEXPR std::enable_if< std::is_integral< T >::value, T >::type | rotr (T n, unsigned int c) |
|
CONSTEXPR unsigned | ilog2 (uint32_t val) |
|
CONSTEXPR bool | hasOddParity (uint32_t u) |
|
std::vector< std::string > | split (const std::string &s, char separator) |
|
template<typename Range , typename Value = typename Range::value_type> |
std::string | join (Range const &elements, char const *const delimiter) |
|
template<typename Input , typename Output , typename Value = typename Output::value_type> |
void | split (char delimiter, Output &output, Input const &input) |
|
std::string & | ltrim (std::string &str, const std::string &chars="\t\n\v\f\r ") |
|
std::string & | rtrim (std::string &str, const std::string &chars="\t\n\v\f\r ") |
|
std::string & | trim (std::string &str, const std::string &chars="\t\n\v\f\r ") |
|
std::string | str_tolower (std::string str) |
|
std::string | str_toupper (std::string str) |
|
bool | iequals (const std::string &a, const std::string &b) |
| compare two string ignoring case More...
|
|
bool | ends_with (std::string const &value, std::string const &ending) |
|
std::string | padded (std::string str, size_t width, bool show_ellipsis=true) |
| pad a string to a given length by either cutting of the overflow or inserting an ellipsis More...
|
|
bool | file_exists (const std::string &name) |
|
template<class T > |
T | dir_name (T const &path, T const &delims="/\\") |
|
template<class T > |
T | base_name (T const &path, T const &delims="/\\") |
|
template<class T > |
T | remove_ext (T const &filename) |
|
std::string | glob_to_regex (std::string val) |
|
template<typename T > |
std::ostream & | operator<< (std::ostream &os, range_lut< T > &lut) |
|
std::string | strprintf (const std::string format,...) |
| allocate and print to a string buffer
|
|
std::string util::glob_to_regex |
( |
std::string |
val | ) |
|
|
inline |
converts a globbing string into a regular expression
The globbing supports ?,*,**, and character classes ([a-z] as well as [!a-z]). '.' acts as hierarchy delimiter and is only matched with ** Regular expression must start with a carret ('^') so that it can be identified as regex.
- Parameters
-
- Returns
Definition at line 385 of file ities.h.