OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
FileSystemPathView Class Reference

#include <FileSystemPathView.h>

Public Member Functions

 FileSystemPathView (const FileSystemPath &path)
 
 FileSystemPathView ()=default
 
 FileSystemPathView (const FileSystemPathView &)=default
 
 FileSystemPathView (FileSystemPathView &&)=default
 
FileSystemPathViewoperator= (const FileSystemPathView &)=default
 
FileSystemPathViewoperator= (FileSystemPathView &&)=default
 
bool isEmpty () const
 
bool isPrefixOf (FileSystemPathView path) const
 
bool isEscaping () const
 
std::string_view string () const
 
FileSystemPathSplit split () const
 
FileSystemPathComponents components () const
 

Static Public Member Functions

static FileSystemPathView fromNormalized (std::string_view path)
 

Private Attributes

std::string_view _path
 

Friends

auto operator<=> (FileSystemPathView l, FileSystemPathView r)=default
 

Constructor & Destructor Documentation

◆ FileSystemPathView() [1/4]

FileSystemPathView::FileSystemPathView ( const FileSystemPath path)
inline

◆ FileSystemPathView() [2/4]

FileSystemPathView::FileSystemPathView ( )
default

◆ FileSystemPathView() [3/4]

FileSystemPathView::FileSystemPathView ( const FileSystemPathView )
default

◆ FileSystemPathView() [4/4]

FileSystemPathView::FileSystemPathView ( FileSystemPathView &&  )
default

Member Function Documentation

◆ components()

FileSystemPathComponents FileSystemPathView::components ( ) const
inline

◆ fromNormalized()

FileSystemPathView FileSystemPathView::fromNormalized ( std::string_view  path)
inlinestatic

◆ isEmpty()

bool FileSystemPathView::isEmpty ( ) const
inline

◆ isEscaping()

bool FileSystemPathView::isEscaping ( ) const
inline

◆ isPrefixOf()

bool FileSystemPathView::isPrefixOf ( FileSystemPathView  path) const
inline
Parameters
pathPath to check against.
Returns
Whether this path is a starting subpath of path. Note that this is different from just checking whether this path is a lexicographical prefix of path. Every path is always a starting subpath of itself.

◆ operator=() [1/2]

FileSystemPathView & FileSystemPathView::operator= ( const FileSystemPathView )
default

◆ operator=() [2/2]

FileSystemPathView & FileSystemPathView::operator= ( FileSystemPathView &&  )
default

◆ split()

FileSystemPathSplit FileSystemPathView::split ( ) const
inline

◆ string()

std::string_view FileSystemPathView::string ( ) const
inline

Friends And Related Function Documentation

◆ operator<=>

auto operator<=> ( FileSystemPathView  l,
FileSystemPathView  r 
)
friend

Member Data Documentation

◆ _path

std::string_view FileSystemPathView::_path
private

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