Logo Search packages:      
Sourcecode: inkscape version File versions

dir-util.cpp File Reference


Detailed Description

Utility functions for filenames.

Definition in file dir-util.cpp.

#include <errno.h>
#include <string>
#include <cstring>
#include <glib/gutils.h>
#include <glib/gmem.h>
#include <glib/gerror.h>
#include <glib/gconvert.h>
#include <glib/gstrfuncs.h>

Go to the source code of this file.

Functions

char * inkscape_abs2rel (const char *path, const char *base, char *result, const size_t size)
char * inkscape_rel2abs (const char *path, const char *base, char *result, const size_t size)
 Convert a relative path name into absolute. If path is already absolute, does nothing except copying path to result.
gchar * prepend_current_dir_if_relative (gchar const *uri)
char const * sp_extension_from_path (char const *const path)
char const * sp_relative_path_from_path (char const *const path, char const *const base)

Variables

static char const *const current = dots + 1
static char const dots [] = {'.', '.', G_DIR_SEPARATOR, '\0'}
static char const *const parent = dots


Generated by  Doxygen 1.6.0   Back to index