path.cpp File Reference
Implements header. More...
#include "path.h"
Go to the source code of this file.
Functions | |
NAMESPACE_LIBDAR_START dar_path * | dar_path_create (char *path) |
Creates a new path object from c string. | |
dar_path * | dar_path_copy (dar_path *ref) |
Copy constructor. | |
void | dar_path_destroy (dar_path *ref) |
Frees memory used by path object. | |
bool | dar_path_compare (dar_path *ref, dar_path *path) |
Returns true if paths are exactly alike. | |
bool | dar_path_is_relative (dar_path *ref) |
Returns true if the path is relative, false if absolute. | |
bool | dar_path_is_subdir_of (dar_path *ref, dar_path *path, bool case_sensit) |
Returns true if reference is a subdirectory of path . | |
char * | dar_path_iterate_next (dar_path *ref) |
Gets c string containing the name of the next child directory. | |
void | dar_path_iterate_reset (dar_path *ref) |
Resets iteration position at the root or shallowest child. | |
bool | dar_path_stack_push (dar_path *ref, dar_path *path) |
Adds another relative path to the end of the reference path. | |
bool | dar_path_stack_peek (dar_path *ref, char **name) |
Returns deepest child directory name without removing it from the stack. | |
bool | dar_path_stack_pop (dar_path *ref, char **name) |
Pops the deepest child directory off the stack, or returns false if there are no more children left (only one element on the stack). | |
bool | dar_path_stack_pop_front (dar_path *ref, char **name) |
Pops the root or topmost directory. | |
char * | dar_path_get_string (dar_path *ref) |
Returns full path name. | |
unsigned int | dar_path_get_depth (dar_path *ref) |
Returns the number of elements left in the path. |
Detailed Description
Implements header.
Definition in file path.cpp.