zorba::fsEnumerations
Type Definitions
Variables
Functions
Enumerationstype type File type.
Type Definitionssize_typeoff_t size_type File size type.
Variablesdir_separatorchar const dir_separator
newlinechar const newline[]
path_separatorchar const path_separator
Functionsappendstd::enable_if< ZORBA_IS_STRING(PathStringType1), void >::type append(PathStringType1 &path1, char const *path2) Appends a path component onto another path ensuring that exactly one separator is used.
Parameters
Parameters
appendstd::enable_if< ZORBA_IS_STRING(PathStringType1)&&ZORBA_HAS_C_STR(PathStringType2), void >::type append(PathStringType1 &path1, PathStringType2 const &path2) Appends a path component onto another path.
Parameters
Parameters
base_namechar const * base_name(char const *path) Gets the base name of the given path name, i.e., the file name without the path leading up to it.
Parameters
ReturnsReturns the base name. Note that if path is just a file name, then returns path.base_namestd::enable_if< ZORBA_IS_STRING(PathStringType), PathStringType >::type base_name(PathStringType const &path) Gets the base name of the given path name, i.e., the file name without the path leading up to it.
Parameters
Parameters
ReturnsReturns the base name. If path is just a file name, returns path.curdirZORBA_DLL_PUBLIC std::string curdir() Gets the current directory.
ReturnsReturns said directory.Parameters
dir_namestd::string dir_name(char const *path) Gets the directory name of the given path name, i.e., the path up to but not including the last path component.
Parameters
ReturnsReturns the direcory path. If path is just a file name, returns '.'.dir_namestd::enable_if< ZORBA_IS_STRING(PathStringType), PathStringType >::type dir_name(PathStringType const &path) Gets the directory name of the given path name, i.e., the path up to but not including the last path component.
Parameters
Parameters
ReturnsReturns the direcory path. If path is just a file name, returns '.'.is_absolutebool is_absolute(char const *path) Checks whether the given path is an absolute path.
Parameters
ReturnsReturns true only if the path is absolute.is_absolutestd::enable_if< ZORBA_HAS_C_STR(PathStringType), bool >::type is_absolute(PathStringType const &path) Checks whether the given path is an absolute path.
Parameters
Parameters
ReturnsReturns true only if the path is absolute.make_absoluteMakes a relative path into an absolute path.
Parameters
Parameters
normalize_pathZORBA_DLL_PUBLIC std::string normalize_path(char const *path, char const *base=nullptr) Gets the normalized path of the given path. A normalized path is one that:
Parameters
ReturnsReturns the normalized path.Parameters
normalize_pathstd::enable_if< ZORBA_HAS_C_STR(PathStringType), std::string >::type normalize_path(PathStringType const &path) Gets the normalized path of the given path. A normalized path is one that:
Parameters
Parameters
ReturnsReturns the normalized path.Parameters
normalize_pathstd::enable_if< ZORBA_HAS_C_STR(PathStringType)&&ZORBA_HAS_C_STR(BaseStringType), std::string >::type normalize_path(PathStringType const &path, BaseStringType const &base) Gets the normalized path of the given path. A normalized path is one that:
Parameters
Parameters
ReturnsReturns the normalized path.Parameters
operator<<ZORBA_DLL_PUBLIC std::ostream & operator<<(std::ostream &o, type t) Emits the string representation of a file type to the given ostream.
Parameters
ReturnsReturns o. |