|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
平台相关的文件系统接口。 更多...
#include "YCLib/FileSystem.h"#include "YCLib/NativeAPI.h"#include "CHRLib/chrproc.h"#include <cstring>
命名空间 | |
| 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) |
| 取指定路径的文件系统根节点名称的长度。 | |
平台相关的文件系统接口。
在文件 FileSystem.cpp 中定义.