![]() |
![]() |
Functions | |
std::string | get_prgname () |
Gets the name of the program. | |
void | set_prgname (const std::string& prgname) |
Sets the name of the program. | |
std::string | getenv (const std::string& variable, bool& found) |
Returns an environment variable. | |
std::string | getenv (const std::string& variable) |
Returns an environment variable. | |
std::string | get_user_name () |
Gets the user name of the current user. | |
std::string | get_real_name () |
Gets the real name of the user. | |
std::string | get_home_dir () |
Gets the current user's home directory. | |
std::string | get_tmp_dir () |
Gets the directory to use for temporary files. | |
std::string | get_current_dir () |
Gets the current directory. | |
bool | 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 | 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 | path_get_basename (const std::string& filename) |
Gets the name of the file without any leading directory components. | |
std::string | path_get_dirname (const std::string& filename) |
Gets the directory components of a file name. | |
std::string | build_filename (const Glib::ArrayHandle<std::string>& elements) |
Creates a filename from a series of elements using the correct separator for filenames. | |
std::string | build_filename (const std::string& elem1, const std::string& elem2) |
Creates a filename from two elements separator for filenames. | |
std::string | 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 | 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. |
|
Creates a filename from two elements separator for filenames. No attempt is made to force the resulting filename to be an absolute path. If the first element is a relative path, the result will be a relative path.
|
|
Creates a filename from a series of elements using the correct separator for filenames.
This function behaves identically to
|
|
Creates a path from a series of elements using separator as the separator between elements. At the boundary between two elements, any trailing occurrences of separator in the first element, or leading occurrences of separator in the second element are removed and exactly one copy of the separator is inserted.
|
|
Locates the first executable named program in the user's path, in the same way that execvp() would locate it.
Returns a string with the absolute path name, or
On Windows, if program does not have a file type suffix, tries to append the suffixes in the
|
|
Gets the current directory.
|
|
Gets the current user's home directory.
|
|
Gets the name of the program.
If you are using GDK or GTK+ the program name is set in gdk_init(), which is called by gtk_init(). The program name is found by taking the last component of
|
|
Gets the real name of the user.
This usually comes from the user's entry in the
|
|
Gets the directory to use for temporary files.
This is found from inspecting the environment variables
|
|
Gets the user name of the current user.
|
|
Returns an environment variable.
|
|
Returns an environment variable.
|
|
Gets the name of the file without any leading directory components.
|
|
Gets the directory components of a file name.
If the file name has no directory components
|
|
Returns
|
|
Returns the remaining part of filename after the root component, i.e. after the '/' on UNIX or 'C:\' on Windows.
If filename is not an absolute path,
|
|
Sets the name of the program.
|