![]() |
![]() |
Functions | |
bool | Glib::str_has_prefix (const std::string& str, const std::string& prefix) |
Looks whether the string str begins with prefix. | |
bool | Glib::str_has_suffix (const std::string& str, const std::string& suffix) |
Looks whether the string str ends with suffix. | |
double | Glib::Ascii::strtod (const std::string& str) |
Converts a string to a double value. | |
double | Glib::Ascii::strtod (const std::string& str, std::string::size_type& end_index, std::string::size_type start_index=0) |
Converts a string to a double value. | |
std::string | Glib::Ascii::dtostr (double d) |
Converts a double to a string, using the '.' as decimal point. | |
std::string | Glib::strescape (const std::string& source) |
Escapes all special characters in the string. | |
std::string | Glib::strescape (const std::string& source, const std::string& exceptions) |
Escapes all special characters in the string. | |
std::string | Glib::strcompress (const std::string& source) |
Replaces all escaped characters with their one byte equivalent. | |
Glib::ustring | Glib::strerror (int errnum) |
Returns a string corresponding to the given error code, e.g. "no such process" . | |
Glib::ustring | Glib::strsignal (int signum) |
Returns a string describing the given signal, e.g. "Segmentation fault" . |
|
Converts a This functions generates enough precision that converting the string back using Glib::Ascii::strtod() gives the same machine-number (on machines with IEEE compatible 64bit doubles).
|
|
Looks whether the string str begins with prefix.
|
|
Looks whether the string str ends with suffix.
|
|
Replaces all escaped characters with their one byte equivalent. This function does the reverse conversion of Glib::strescape().
|
|
Returns a string corresponding to the given error code, e.g.
This function is included since not all platforms support the
|
|
Escapes all special characters in the string.
Escapes the special characters Glib::strcompress() does the reverse conversion.
|
|
Escapes all special characters in the string.
Escapes the special characters Glib::strcompress() does the reverse conversion.
|
|
Returns a string describing the given signal, e.g.
This function is included since not all platforms support the
|
|
Converts a string to a
This function behaves like the standard This function is typically used when reading configuration files or other non-user input that should be locale independent. To handle input from the user you should normally use locale-sensitive C++ streams.
To convert from a string to
|
|
Converts a string to a
This function behaves like the standard This function is typically used when reading configuration files or other non-user input that should be locale independent. To handle input from the user you should normally use locale-sensitive C++ streams.
To convert from a string to
|