VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::Path Class Reference

#include <core/path.h>

Static Public Member Functions

static std::string extractPath (const std::string &pathname)
static std::string getBasename (const std::string &pathname)
static std::string getDirectory (const std::string &pathname)
static std::string getExtension (const std::string &pathname)
static bool isRelativePath (const std::string &pathname)
template<typename... Args>
static std::string join (const std::string &first, const Args &... rest)
static std::string join (const std::vector< std::string > &sections)
static std::string join (std::initializer_list< std::string > sections)
static std::string normalize (const std::string &pathname)
static std::pair< std::string, std::string > split (const std::string &pathname)

Static Public Attributes

static constexpr char delimiter = '/'

Detailed Description

Definition at line 13 of file path.h.

Member Function Documentation

◆ extractPath()

std::string visutwin::canvas::Path::extractPath ( const std::string & pathname)
inlinestatic

Definition at line 156 of file path.h.

References delimiter, and isRelativePath().

◆ getBasename()

std::string visutwin::canvas::Path::getBasename ( const std::string & pathname)
inlinestatic

Definition at line 127 of file path.h.

References split().

◆ getDirectory()

std::string visutwin::canvas::Path::getDirectory ( const std::string & pathname)
inlinestatic

Definition at line 132 of file path.h.

References split().

◆ getExtension()

std::string visutwin::canvas::Path::getExtension ( const std::string & pathname)
inlinestatic

Definition at line 137 of file path.h.

◆ isRelativePath()

bool visutwin::canvas::Path::isRelativePath ( const std::string & pathname)
inlinestatic

Definition at line 147 of file path.h.

References delimiter.

Referenced by extractPath().

◆ join() [1/3]

template<typename... Args>
std::string visutwin::canvas::Path::join ( const std::string & first,
const Args &... rest )
inlinestatic

Definition at line 24 of file path.h.

References join().

◆ join() [2/3]

std::string visutwin::canvas::Path::join ( const std::vector< std::string > & sections)
inlinestatic

Definition at line 33 of file path.h.

References delimiter.

◆ join() [3/3]

std::string visutwin::canvas::Path::join ( std::initializer_list< std::string > sections)
inlinestatic

Definition at line 18 of file path.h.

References join().

Referenced by join(), and join().

◆ normalize()

std::string visutwin::canvas::Path::normalize ( const std::string & pathname)
inlinestatic

Definition at line 60 of file path.h.

References delimiter.

◆ split()

std::pair< std::string, std::string > visutwin::canvas::Path::split ( const std::string & pathname)
inlinestatic

Definition at line 117 of file path.h.

References delimiter.

Referenced by getBasename(), and getDirectory().

Member Data Documentation

◆ delimiter

char visutwin::canvas::Path::delimiter = '/'
staticconstexpr

Definition at line 16 of file path.h.

Referenced by extractPath(), isRelativePath(), join(), normalize(), and split().


The documentation for this class was generated from the following file: