Classes | |
| class | Talos::Date |
| Class Date. More... | |
| class | Talos::ExtStream |
| Extended streams. More... | |
| class | Talos::ConfigStream |
| Streams associated with configuration files. More... | |
| class | Talos::ConfigStreams |
| Streams associated with several configuration files. More... | |
Functions | |
| 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. | |
| template<typename T> string | to_str_fill (const T &input, char f, int l, ostringstream::fmtflags flags=ostringstream::right) |
| 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. | |
| 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. | |
| template<typename T> std::string | to_str_fill (const T &input, int l=2) |
| string | fill (const string &input, int l=2, char c= ' ', ios_base &pos(ios_base &)=left) |
|
||||||||||
|
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.
|
|
||||||||||||||||
|
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 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.
|
|
||||||||||
|
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.
|
1.3.8