plastimatch
Loading...
Searching...
No Matches
path_util.h File Reference
#include "plmsys_config.h"
#include <string>
#include <stdio.h>

Go to the source code of this file.

Macros

#define ISSLASH(c)   ((c) == '/')
 

Functions

std::string basename (const std::string &fn)
 
std::string dirname (const std::string &fn)
 
int extension_is (const char *fname, const char *ext)
 
int extension_is (const std::string &fname, const char *ext)
 
void strip_extension (char *filename)
 
std::string strip_extension (const std::string &filename)
 
std::string strip_extension_if (const std::string &filename, const std::string &ext)
 
void trim_trailing_slashes (char *pathname)
 
std::string trim_trailing_slashes (const std::string &pathname)
 
char * file_util_parent (const char *filename)
 
std::string file_util_parent (const std::string &filename)
 
char * file_util_dirname (const char *filename)
 
std::string file_util_dirname_string (const char *filename)
 
std::string strip_leading_dir (const std::string &fn)
 
std::string compose_filename (const std::string &a, const std::string &b)
 
std::string compose_filename (const char *a, const char *b)
 
std::string make_windows_slashes (const std::string &s)
 

Macro Definition Documentation

◆ ISSLASH

#define ISSLASH ( c)    ((c) == '/')

Function Documentation

◆ basename()

std::string basename ( const std::string & fn)

◆ compose_filename() [1/2]

std::string compose_filename ( const char * a,
const char * b )

◆ compose_filename() [2/2]

std::string compose_filename ( const std::string & a,
const std::string & b )

◆ dirname()

std::string dirname ( const std::string & fn)

◆ extension_is() [1/2]

int extension_is ( const char * fname,
const char * ext )

◆ extension_is() [2/2]

int extension_is ( const std::string & fname,
const char * ext )

◆ file_util_dirname()

char * file_util_dirname ( const char * filename)

◆ file_util_dirname_string()

std::string file_util_dirname_string ( const char * filename)

◆ file_util_parent() [1/2]

char * file_util_parent ( const char * filename)

◆ file_util_parent() [2/2]

std::string file_util_parent ( const std::string & filename)

◆ make_windows_slashes()

std::string make_windows_slashes ( const std::string & s)

◆ strip_extension() [1/2]

void strip_extension ( char * filename)

◆ strip_extension() [2/2]

std::string strip_extension ( const std::string & filename)

◆ strip_extension_if()

std::string strip_extension_if ( const std::string & filename,
const std::string & ext )

◆ strip_leading_dir()

std::string strip_leading_dir ( const std::string & fn)

◆ trim_trailing_slashes() [1/2]

void trim_trailing_slashes ( char * pathname)

◆ trim_trailing_slashes() [2/2]

std::string trim_trailing_slashes ( const std::string & pathname)