Classes | |
class | Date |
Class Date. More... | |
class | ExtStream |
Extended streams. More... | |
class | ConfigStream |
Streams associated with configuration files. More... | |
class | ConfigStreams |
Streams associated with several configuration files. More... | |
Functions | |
bool | operator< (const Date &first_date, const Date &second_date) |
Comparison operator <. | |
bool | operator<= (const Date &first_date, const Date &second_date) |
Comparison operator <=. | |
bool | operator> (const Date &first_date, const Date &second_date) |
Comparison operator >. | |
bool | operator>= (const Date &first_date, const Date &second_date) |
Comparison operator >=. | |
bool | operator== (const Date &first_date, const Date &second_date) |
Comparison operator ==. | |
bool | operator!= (const Date &first_date, const Date &second_date) |
Comparison operator !=. | |
ostream & | operator<< (ostream &out, const Date &d) |
Redirection operator <<. | |
bool | exists (string file_name) |
Tests whether a file exists. | |
unsigned long | file_size (string file_name) |
Returns a file size. | |
unsigned long | stream_size (istream &stream) |
Returns a stream size. | |
bool | is_empty (istream &stream) |
Checks whether a stream is empty. | |
bool | has_element (istream &stream) |
Checks whether a stream contains an element. | |
template<typename T> | |
string | to_str (const T &input) |
Converts most types to string. | |
string | fill (const string &input, int l, char c, ostringstream::fmtflags flags) |
Fills a string. | |
template<typename T> | |
string | to_str_fill (const T &input, int l, char c, ostringstream::fmtflags flags) |
Converts most types to a filled string. | |
template<class T> | |
void | to_num (const string &s, T &num) |
Converts string to most types, specially numbers. | |
template<class T> | |
T | to_num (const string &s) |
Converts string to most types, specially numbers. | |
template<class T> | |
void | convert (const string &s, T &out) |
Converts strings to most types. | |
void | convert (const string &s, string &out) |
Sets a string. | |
void | convert (const string &s, bool &out) |
Converts a string to a boolean. | |
template<class T> | |
T | convert (const string &s) |
Converts strings to most types. | |
string | lower_case (string str) |
Converts a string to lower-case string. | |
string | upper_case (string str) |
Converts a string to upper-case string. | |
bool | is_num (const string &str) |
Checks whether a string is a number. | |
bool | is_integer (const string &str) |
Checks whether a string is an integer. | |
bool | is_unsigned_integer (const string &str) |
Checks whether a string is an unsigned integer. | |
bool | is_date (const string &str) |
Checks whether a string is a date. | |
bool | is_delta (const string &str) |
Checks whether a string is a valid time interval. | |
string | find_replace (string str, string old_str, string new_str) |
Finds and replace a substring. | |
string | trim (string str, string delimiters) |
Trims off a string. | |
string | trim_beg (string str, string delimiters) |
Trims off a string. | |
string | trim_end (string str, string delimiters) |
Trims off a string. | |
template<class T> | |
void | split (string str, vector< T > &vect, string delimiters) |
Splits a string. | |
vector< string > | split (string str, string delimiters) |
Splits a string. | |
template<class T> | |
void | split_markup (string str, vector< T > &elements, vector< bool > &is_markup, string delimiters) |
Extracts markups from a string. | |
template<class T> | |
void | print (const vector< T > &v) |
Displays a vector. |
|
Converts strings to most types.
|
|
Converts a string to a boolean.
|
|
Sets a string.
|
|
Converts strings to most types.
|
|
Tests whether a file exists.
|
|
Returns a file size.
|
|
Fills a string.
|
|
Finds and replace a substring.
|
|
Checks whether a stream contains an element. Checks whether a stream contains an element that may be extracted through 'operator >>'.
|
|
Checks whether a string is a date.
|
|
Checks whether a string is a valid time interval.
|
|
Checks whether a stream is empty.
|
|
Checks whether a string is an integer.
|
|
Checks whether a string is a number.
|
|
Checks whether a string is an unsigned integer.
|
|
Converts a string to lower-case string.
|
|
Comparison operator !=.
|
|
Comparison operator <.
|
|
Redirection operator <<. The date is converted to a string in format "%y-%m-%d %h:%i".
|
|
Comparison operator <=.
|
|
Comparison operator ==.
|
|
Comparison operator >.
|
|
Comparison operator >=.
|
|
Displays a vector.
|
|
Splits a string. The string is split according to delimiters.
|
|
Splits a string. The string is split according to delimiters and elements are stored in the vector 'vect'.
|
|
Extracts markups from a string. The string is split into markups and elements.
|
|
Returns a stream size.
|
|
Converts string to most types, specially numbers.
|
|
Converts string to most types, specially numbers.
|
|
Converts most types to string.
|
|
Converts most types to a filled string.
|
|
Trims off a string. Removes delimiters at each edge of the string.
|
|
Trims off a string. Removes delimiters at the beginning of the string.
|
|
Trims off a string. Removes delimiters at the end of the string.
|
|
Converts a string to upper-case string.
|