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

class  String
 YSLib 标准字符串(使用 UCS-2 作为内部编码)。 更多...
 
class  TextFileBuffer
 

类型定义

using EncodingInfoItem = std::pair< Encoding, const ucs2_t * >
 编码信息项目。 更多...
 

函数

bool operator!= (const TextFileBuffer::iterator &x, const TextFileBuffer::iterator y) ynothrow
 
bool operator== (const TextFileBuffer::iterator &x, const TextFileBuffer::iterator &y) ynothrow
 
string CopySliceFrom (TextFileBuffer &buf, size_t pos, size_t len) ythrow(std
 

变量

yconstexpr EncodingInfoItem Encodings []
 编码信息。 更多...
 

类型定义说明

using YSLib::Text::EncodingInfoItem = typedef std::pair<Encoding, const ucs2_t*>

编码信息项目。

自从
build 307

在文件 ShellHelper.h95 行定义.

函数说明

string YSLib::Text::CopySliceFrom ( TextFileBuffer &  buf,
size_t  pos,
size_t  len 
)

在文件 textmgr.cpp258 行定义.

参考 YAssert , 以及 yunseq.

bool YSLib::Text::operator!= ( const TextFileBuffer::iterator &  x,
const TextFileBuffer::iterator  y 
)
inline

在文件 textmgr.h220 行定义.

bool YSLib::Text::operator== ( const TextFileBuffer::iterator &  x,
const TextFileBuffer::iterator &  y 
)

在文件 textmgr.cpp105 行定义.

参考 YAssert.

变量说明

yconstexpr EncodingInfoItem YSLib::Text::Encodings[]
初始值:
{{CharSet::UTF_8, u"UTF-8"},
{CharSet::GBK, u"GBK"}, {CharSet::UTF_16BE, u"UTF-16 Big Endian"},
{CharSet::UTF_16LE, u"UTF-16 Little Endian"},
{CharSet::UTF_32BE, u"UTF-32 Big Endian"},
{CharSet::UTF_32LE, u"UTF-16 Little Endian"}}
yconstexpr Encoding UTF_16LE(csUTF16LE)
yconstexpr Encoding UTF_16BE(csUTF16BE)
yconstexpr Encoding UTF_32BE(csUTF32BE)
yconstexpr Encoding UTF_32LE(csUTF32LE)
yconstexpr Encoding GBK(csGBK)
yconstexpr Encoding UTF_8(csUTF8)

编码信息。

自从
build 307

在文件 ShellHelper.h101 行定义.

参考自 YReader::FetchEncodingString() , 以及 YReader::ShlTextReader::SettingSession::SettingSession().