sisi4s
Loading...
Searching...
No Matches
ghc::filesystem::detail Namespace Reference

Classes

struct  has_d_type
 
struct  has_d_type< T, decltype((void) T::d_type, 0)>
 

Typedefs

template<typename Enum >
using EnableBitmask = typename std::enable_if< std::is_same< Enum, perms >::value||std::is_same< Enum, perm_options >::value||std::is_same< Enum, copy_options >::value||std::is_same< Enum, directory_options >::value, Enum >::type
 

Enumerations

enum  utf8_states_t { S_STRT = 0 , S_RJCT = 8 }
 
enum class  portable_error {
  none = 0 , exists , not_found , not_supported ,
  not_implemented , invalid_argument , is_a_directory
}
 

Functions

void appendUTF8 (std::string &str, uint32_t unicode)
 
bool is_surrogate (uint32_t c)
 
bool is_high_surrogate (uint32_t c)
 
bool is_low_surrogate (uint32_t c)
 
unsigned consumeUtf8Fragment (const unsigned state, const uint8_t fragment, uint32_t &codepoint)
 
std::error_code make_error_code (portable_error err)
 
std::error_code make_system_error (int err=0)
 
template<typename T >
file_type file_type_from_dirent_impl (const T &, std::false_type)
 
template<typename T >
file_type file_type_from_dirent_impl (const T &t, std::true_type)
 
template<class T >
file_type file_type_from_dirent (const T &t)
 
bool in_range (uint32_t c, uint32_t lo, uint32_t hi)
 
bool validUtf8 (const std::string &utf8String)
 
template<class StringType , class Utf8String , typename std::enable_if< path::_is_basic_string< Utf8String >::value &&(sizeof(typename Utf8String::value_type)==1) &&(sizeof(typename StringType::value_type)==1)>::type * = nullptr>
StringType fromUtf8 (const Utf8String &utf8String, const typename StringType::allocator_type &alloc=typename StringType::allocator_type())
 
template<class StringType , typename charT , std::size_t N>
StringType fromUtf8 (const charT(&utf8String)[N])
 
template<typename strT , typename std::enable_if< path::_is_basic_string< strT >::value &&(sizeof(typename strT::value_type)==1), int >::type size = 1>
std::string toUtf8 (const strT &unicodeString)
 
template<typename charT >
std::string toUtf8 (const charT *unicodeString)
 
template<typename strT , typename std::enable_if< path::_is_basic_string< strT >::value, bool >::type = true>
bool startsWith (const strT &what, const strT &with)
 
template<typename strT , typename std::enable_if< path::_is_basic_string< strT >::value, bool >::type = true>
bool endsWith (const strT &what, const strT &with)
 
bool equals_simple_insensitive (const path::value_type *str1, const path::value_type *str2)
 
int compare_simple_insensitive (const path::value_type *str1, size_t len1, const path::value_type *str2, size_t len2)
 
const char * strerror_adapter (char *gnu, char *)
 
const char * strerror_adapter (int posix, char *buffer)
 
template<typename ErrorNumber >
std::string systemErrorText (ErrorNumber code=0)
 
void create_symlink (const path &target_name, const path &new_symlink, bool, std::error_code &ec)
 
void create_hardlink (const path &target_name, const path &new_hardlink, std::error_code &ec)
 
template<typename T >
file_status file_status_from_st_mode (T mode)
 
path resolveSymlink (const path &p, std::error_code &ec)
 
bool is_not_found_error (std::error_code &ec)
 
file_status symlink_status_ex (const path &p, std::error_code &ec, uintmax_t *sz=nullptr, uintmax_t *nhl=nullptr, time_t *lwt=nullptr) noexcept
 
file_status status_ex (const path &p, std::error_code &ec, file_status *sls=nullptr, uintmax_t *sz=nullptr, uintmax_t *nhl=nullptr, time_t *lwt=nullptr, int recurse_count=0) noexcept
 

Typedef Documentation

◆ EnableBitmask

template<typename Enum >
using ghc::filesystem::detail::EnableBitmask = typedef typename std::enable_if<std::is_same<Enum, perms>::value || std::is_same<Enum, perm_options>::value || std::is_same<Enum, copy_options>::value || std::is_same<Enum, directory_options>::value, Enum>::type

Enumeration Type Documentation

◆ portable_error

Enumerator
none 
exists 
not_found 
not_supported 
not_implemented 
invalid_argument 
is_a_directory 

◆ utf8_states_t

Enumerator
S_STRT 
S_RJCT 

Function Documentation

◆ appendUTF8()

void ghc::filesystem::detail::appendUTF8 ( std::string &  str,
uint32_t  unicode 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ compare_simple_insensitive()

int ghc::filesystem::detail::compare_simple_insensitive ( const path::value_type str1,
size_t  len1,
const path::value_type str2,
size_t  len2 
)
inline
Here is the caller graph for this function:

◆ consumeUtf8Fragment()

unsigned ghc::filesystem::detail::consumeUtf8Fragment ( const unsigned  state,
const uint8_t  fragment,
uint32_t &  codepoint 
)
inline
Here is the caller graph for this function:

◆ create_hardlink()

void ghc::filesystem::detail::create_hardlink ( const path target_name,
const path new_hardlink,
std::error_code &  ec 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_symlink()

void ghc::filesystem::detail::create_symlink ( const path target_name,
const path new_symlink,
bool  ,
std::error_code &  ec 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ endsWith()

template<typename strT , typename std::enable_if< path::_is_basic_string< strT >::value, bool >::type = true>
bool ghc::filesystem::detail::endsWith ( const strT &  what,
const strT &  with 
)
inline
Here is the caller graph for this function:

◆ equals_simple_insensitive()

bool ghc::filesystem::detail::equals_simple_insensitive ( const path::value_type str1,
const path::value_type str2 
)
inline
Here is the caller graph for this function:

◆ file_status_from_st_mode()

template<typename T >
file_status ghc::filesystem::detail::file_status_from_st_mode ( mode)
inline
Here is the caller graph for this function:

◆ file_type_from_dirent()

template<class T >
file_type ghc::filesystem::detail::file_type_from_dirent ( const T &  t)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ file_type_from_dirent_impl() [1/2]

template<typename T >
file_type ghc::filesystem::detail::file_type_from_dirent_impl ( const T &  ,
std::false_type   
)
inline
Here is the caller graph for this function:

◆ file_type_from_dirent_impl() [2/2]

template<typename T >
file_type ghc::filesystem::detail::file_type_from_dirent_impl ( const T &  t,
std::true_type   
)
inline

◆ fromUtf8() [1/2]

template<class StringType , typename charT , std::size_t N>
StringType ghc::filesystem::detail::fromUtf8 ( const charT(&)  utf8String[N])
inline

◆ fromUtf8() [2/2]

template<class StringType , class Utf8String , typename std::enable_if< path::_is_basic_string< Utf8String >::value &&(sizeof(typename Utf8String::value_type)==1) &&(sizeof(typename StringType::value_type)==1)>::type * = nullptr>
StringType ghc::filesystem::detail::fromUtf8 ( const Utf8String &  utf8String,
const typename StringType::allocator_type &  alloc = typename StringType::allocator_type() 
)
inline

◆ in_range()

bool ghc::filesystem::detail::in_range ( uint32_t  c,
uint32_t  lo,
uint32_t  hi 
)
inline
Here is the caller graph for this function:

◆ is_high_surrogate()

bool ghc::filesystem::detail::is_high_surrogate ( uint32_t  c)
inline

◆ is_low_surrogate()

bool ghc::filesystem::detail::is_low_surrogate ( uint32_t  c)
inline

◆ is_not_found_error()

bool ghc::filesystem::detail::is_not_found_error ( std::error_code &  ec)
inline
Here is the caller graph for this function:

◆ is_surrogate()

bool ghc::filesystem::detail::is_surrogate ( uint32_t  c)
inline
Here is the call graph for this function:

◆ make_error_code()

std::error_code ghc::filesystem::detail::make_error_code ( portable_error  err)
inline
Here is the caller graph for this function:

◆ make_system_error()

std::error_code ghc::filesystem::detail::make_system_error ( int  err = 0)
inline
Here is the caller graph for this function:

◆ resolveSymlink()

path ghc::filesystem::detail::resolveSymlink ( const path p,
std::error_code &  ec 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ startsWith()

template<typename strT , typename std::enable_if< path::_is_basic_string< strT >::value, bool >::type = true>
bool ghc::filesystem::detail::startsWith ( const strT &  what,
const strT &  with 
)
inline
Here is the caller graph for this function:

◆ status_ex()

file_status ghc::filesystem::detail::status_ex ( const path p,
std::error_code &  ec,
file_status sls = nullptr,
uintmax_t *  sz = nullptr,
uintmax_t *  nhl = nullptr,
time_t *  lwt = nullptr,
int  recurse_count = 0 
)
inlinenoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ strerror_adapter() [1/2]

const char * ghc::filesystem::detail::strerror_adapter ( char *  gnu,
char *   
)
inline
Here is the caller graph for this function:

◆ strerror_adapter() [2/2]

const char * ghc::filesystem::detail::strerror_adapter ( int  posix,
char *  buffer 
)
inline

◆ symlink_status_ex()

file_status ghc::filesystem::detail::symlink_status_ex ( const path p,
std::error_code &  ec,
uintmax_t *  sz = nullptr,
uintmax_t *  nhl = nullptr,
time_t *  lwt = nullptr 
)
inlinenoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ systemErrorText()

template<typename ErrorNumber >
std::string ghc::filesystem::detail::systemErrorText ( ErrorNumber  code = 0)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toUtf8() [1/2]

template<typename charT >
std::string ghc::filesystem::detail::toUtf8 ( const charT *  unicodeString)
inline
Here is the call graph for this function:

◆ toUtf8() [2/2]

template<typename strT , typename std::enable_if< path::_is_basic_string< strT >::value &&(sizeof(typename strT::value_type)==1), int >::type size = 1>
std::string ghc::filesystem::detail::toUtf8 ( const strT &  unicodeString)
inline
Here is the caller graph for this function:

◆ validUtf8()

bool ghc::filesystem::detail::validUtf8 ( const std::string &  utf8String)
inline
Here is the call graph for this function: