|
Classes |
| class | util::array< _T, _size > |
| | Generic and simple array class. More...
|
| class | util::variant |
| | A type that can store any numeric/string value and convert between them. More...
|
Namespaces |
| namespace | util |
| | Utility functions to assist with common tasks.
|
Defines |
| #define | UTIL_FOREACH(container, as) if (!container.empty()) for (int util_i = 0; util_i < 1; ++util_i) for (typeof(*(container.begin())) as; util_i < 1; ++util_i) for (typeof(container.begin()) util_it = container.begin(); ((util_it != container.end())?(as = *(util_it)):(as = *container.begin())), util_it != container.end(); as = *(util_it++)) |
| #define | UTIL_IFOREACH(container, as) if (!container.empty()) for (int util_i = 0; util_i < 1; ++util_i) for (typeof(container.begin()) as; util_i < 1; ++util_i) for (typeof(container.begin()) util_it = container.begin(); ((util_it != container.end())?(as = util_it):(as = container.begin())), util_it != container.end(); as = util_it++) |
Typedefs |
| typedef array< unsigned char, 2 > | util::pairchar |
| | Commonly used array type in EOSERV.
|
| typedef array< unsigned char, 4 > | util::quadchar |
| | Commonly used array type in EOSERV.
|
| typedef variant | util::var |
| | Alternate name for variant.
|
Functions |
| std::string | util::ltrim (const std::string &) |
| | Trims whitespace from the left of a string.
|
| std::string | util::rtrim (const std::string &) |
| | Trims whitespace from the right of a string.
|
| std::string | util::trim (const std::string &) |
| | Trims whitespace from both sides of a string.
|
| std::vector< std::string > | util::explode (char delimiter, std::string) |
| | Split a string in to a vector with a specified delimiter.
|
| double | util::tdparse (std::string timestr) |
| | Parse a string time period to a number.
|