YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YCLib/FileSystem.cpp 文件参考
#include "YCLib/YModules.h"
#include "CHRLib/YModules.h"
#include <YFM_YCLib_FileSystem>
#include <YFM_YCLib_NativeAPI>
#include <YFM_CHRLib_CharacterProcessing>
#include <cstring>
YCLib/FileSystem.cpp 的引用(Include)关系图:

浏览源代码.

命名空间

 platform
 默认平台命名空间。
 
 platform_ex
 平台扩展命名空间。
 

宏定义

#define YCL_FileSystem_ufunc_impl1(_n)
 
#define YCL_FileSystem_ufunc_impl2(_fn, _wfn)
 
#define YCL_FileSystem_ufunc_impl(_n, _fn, _wfn)
 

函数

YF_API int platform::uopen (const char *filename, int oflag) ynothrow
 以 UTF-8 文件名无缓冲打开文件。 更多...
 
YF_API int platform::uopen (const char *filename, int oflag, int pmode) ynothrow
 以 UTF-8 文件名无缓冲打开文件。 更多...
 
YF_API int platform::uopen (const char16_t *filename, int oflag) ynothrow
 以 UCS-2 文件名无缓冲打开文件。 更多...
 
YF_API int platform::uopen (const char16_t *filename, int oflag, int pmode) ynothrow
 以 UCS-2 文件名无缓冲打开文件。 更多...
 
YF_API std::FILE * platform::ufopen (const char *filename, const char *mode) ynothrow
 以 UTF-8 文件名打开文件。 更多...
 
YF_API std::FILE * platform::ufopen (const char16_t *filename, const char16_t *mode) ynothrow
 以 UCS-2 文件名打开文件。 更多...
 
YF_API bool platform::ufexists (const char *) ynothrow
 判断指定 UTF-8 文件名的文件是否存在。 更多...
 
YF_API bool platform::ufexists (const char16_t *) ynothrow
 判断指定 UCS-2 文件名的文件是否存在。 更多...
 
char16_t * platform::u16getcwd_n (char16_t *buf, std::size_t size) ynothrow
 
YF_API bool platform::IsAbsolute (const char *)
 判断指定路径字符串是否表示一个绝对路径。 更多...
 
YF_API std::size_t platform::GetRootNameLength (const char *)
 取指定路径的文件系统根节点名称的长度。 更多...
 
char16_t platform_ex::FS_IsRoot (const char16_t *)
 
YF_API bool platform::uchdir (const char *) ynothrow
 切换当前工作路径至指定的 UTF-8 字符串。 更多...
 
YF_API bool platform::umkdir (const char *) ynothrow
 按 UTF-8 路径以默认权限新建一个目录。 更多...
 
YF_API bool platform::urmdir (const char *) ynothrow
 按 UTF-8 路径删除一个空目录。 更多...
 
YF_API bool platform::uunlink (const char *) ynothrow
 按 UTF-8 路径删除一个非目录文件。 更多...
 
YF_API bool platform::uremove (const char *) ynothrow
 按 UTF-8 路径删除一个文件。 更多...
 
YF_API bool platform::truncate (std::FILE *, std::size_t) ynothrow
 截断文件至指定长度。 更多...
 
YF_API std::uint64_t platform::GetFileSizeOf (int)
 取文件的大小。 更多...
 
YF_API std::uint64_t platform::GetFileSizeOf (std::FILE *)
 

宏定义说明

#define YCL_FileSystem_ufunc_impl (   _n,
  _fn,
  _wfn 
)
值:
#define YCL_FileSystem_ufunc_impl2(_fn, _wfn)
#define YCL_FileSystem_ufunc_impl1(_n)
自从
build 476

在文件 YCLib/FileSystem.cpp401 行定义.

#define YCL_FileSystem_ufunc_impl1 (   _n)
值:
bool \
_n(const char* path) ynothrow \
{ \
yconstraint(path); \
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
Definition: ydef.h:514
#define yconstraint
约束:接口语义。
Definition: cassert.h:47
自从
build 476

在文件 YCLib/FileSystem.cpp376 行定义.

#define YCL_FileSystem_ufunc_impl2 (   _fn,
  _wfn 
)
值:
return _fn(path) == 0; \
}
自从
build 476

在文件 YCLib/FileSystem.cpp384 行定义.