YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
FileSystem.cpp 文件参考

平台相关的文件系统接口。 更多...

#include "YCLib/FileSystem.h"
#include "YCLib/NativeAPI.h"
#include "CHRLib/chrproc.h"
#include <cstring>
FileSystem.cpp 的引用(Include)关系图:

浏览源代码.

命名空间

namespace  platform
 默认平台命名空间。
 
namespace  platform_ex
 

函数

int platform::uopen (const char *filename, int oflag) ynothrow
 以 UTF-8 文件名无缓冲打开文件。
 
int platform::uopen (const char *filename, int oflag, int pmode) ynothrow
 以 UTF-8 文件名无缓冲打开文件。
 
int platform::uopen (const char16_t *filename, int oflag) ynothrow
 以 UCS-2LE 文件名无缓冲打开文件。
 
int platform::uopen (const char16_t *filename, int oflag, int pmode) ynothrow
 以 UCS-2LE 文件名无缓冲打开文件。
 
std::FILE * platform::ufopen (const char *filename, const char *mode) ynothrow
 以 UTF-8 文件名打开文件。
 
std::FILE * platform::ufopen (const char16_t *filename, const char16_t *mode) ynothrow
 以 UCS-2LE 文件名打开文件。
 
bool platform::ufexists (const char *) ynothrow
 判断指定 UTF-8 文件名的文件是否存在。
 
bool platform::ufexists (const char16_t *) ynothrow
 判断指定 UCS-2 文件名的文件是否存在。
 
bool platform::direxists (const_path_t) ynothrow
 判断指定路径的目录是否存在。
 
bool platform::udirexists (const_path_t) ynothrow
 判断指定 UTF-8 路径的目录是否存在。
 
char * platform::getcwd_n (char *buf, std::size_t size) ynothrow
 当第一参数非空时取当前工作目录复制至指定缓冲区中。
 
char16_t * platform::u16getcwd_n (char16_t *buf, std::size_t size) ynothrow
 当第一参数非空时取当前工作目录( UCS2-LE 编码)复制至指定缓冲区中。
 
int platform::uchdir (const_path_t) ynothrow
 切换当前工作路径至指定的 UTF-8 字符串。
 
bool platform::mkdirs (const_path_t) ynothrow
 按路径新建一个或多个目录。
 
bool platform::truncate (std::FILE *, std::size_t) ynothrow
 截断文件至指定长度。
 
bool platform::IsAbsolute (const_path_t)
 判断指定路径字符串是否表示一个绝对路径。
 
std::size_t platform::GetRootNameLength (const_path_t)
 取指定路径的文件系统根节点名称的长度。
 

详细描述

平台相关的文件系统接口。

版本
r737
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 312
创建时间:
2012-05-30 22:41:35 +0800
修改时间:
2013-04-23 10:11 +0800
文本编码:
UTF-8
模块名称:
YCLib::FileSystem

在文件 FileSystem.cpp 中定义.