Main Page Widgets glibmm Namespaces Book

# miscutils.h File Reference

## Namespaces

namespace | Glib

## Functions

Glib::ustring | Glib::get_application_name ()
| Gets a human-readable name for the application, as set by Glib::set_application_name().
void | Glib::set_application_name (const Glib::ustring& application_name)
| Sets a human-readable name for the application.
std::string | Glib::get_prgname ()
| Gets the name of the program.
void | Glib::set_prgname (const std::string& prgname)
| Sets the name of the program.
std::string | Glib::getenv (const std::string& variable, bool& found)
| Returns the value of an environment variable.
std::string | Glib::getenv (const std::string& variable)
| Returns the value of an environment variable.
bool | Glib::setenv (const std::string& variable, const std::string& value, bool overwrite=true)
| Sets an environment variable.
void | Glib::unsetenv (const std::string& variable)
| Removes an environment variable from the environment.
std::string | Glib::get_user_name ()
| Gets the user name of the current user.
std::string | Glib::get_real_name ()
| Gets the real name of the user.
std::string | Glib::get_home_dir ()
| Gets the current user's home directory.
std::string | Glib::get_tmp_dir ()
| Gets the directory to use for temporary files.
std::string | Glib::get_current_dir ()
| Gets the current directory.
std::string | Glib::get_user_special_dir (GUserDirectory directory)
| Returns the full path of a special directory using its logical id.
std::string | Glib::get_user_data_dir ()
| Returns a base directory in which to access application data such as icons that is customized for a particular user.
std::string | Glib::get_user_config_dir ()
| Returns a base directory in which to store user-specific application configuration information such as user preferences and settings.
std::string | Glib::get_user_cache_dir ()
| Returns a base directory in which to store non-essential, cached data specific to particular user.
bool | Glib::path_is_absolute (const std::string& filename)
| Returns `true` if the given filename is an absolute file name, i.e. it contains a full path from the root directory such as `"/usr/local"` on UNIX or `"C:\\windows"` on Windows systems.
std::string | Glib::path_skip_root (const std::string& filename)
| Returns the remaining part of filename after the root component, i.e. after the `"/"` on UNIX or `"C:\\"` on Windows.
std::string | Glib::path_get_basename (const std::string& filename)
| Gets the name of the file without any leading directory components.
std::string | Glib::path_get_dirname (const std::string& filename)
| Gets the directory components of a file name.
std::string | Glib::build_filename (const Glib::ArrayHandle<std::string>& elements)
| Creates a filename from a series of elements using the correct separator for filenames.
std::string | Glib::build_filename (const std::string& elem1, const std::string& elem2)
| Creates a filename from two elements using the correct separator for filenames.
std::string | Glib::build_path (const std::string& separator, const Glib::ArrayHandle<std::string>& elements)
| Creates a path from a series of elements using separator as the separator between elements.
std::string | Glib::find_program_in_path (const std::string& program)
| Locates the first executable named program in the user's path, in the same way that `execvp()` would locate it.