FirteX-高性能全文索引和检索平台

API Documentation


首页 | 名字空间列表 | 类继承关系 | 组合类型列表 | $(BL\录(B | 文件列表 | 名字空间成员 | 组合类型成员 | 文件成员

firtex::utility::CMisc类参考

#include <Misc.h>

所有成员的列表。

公有成员

 CMisc (void)
 ~CMisc (void)

静态公有成员

int64_t CMisc::currentTimeMillis ()
tchar * getBuffer (tstring &s, size_t len)
bool dirExists (const tchar *path)
size_t wctoutf8 (char *utf, const wchar_t wc)
size_t wcstoutf8 (char *utf, size_t ulen, const wchar_t *wcs, size_t wlen)
size_t utf8towc (wchar_t *wc, const char *utf, size_t ulen)
size_t utf8towcs (wchar_t *wcs, size_t wlen, const char *utf, size_t ulen)
size_t _wcstombs (char *mbs, size_t mlen, const wchar_t *wcs, size_t wlen)
size_t _mbstowcs (wchar_t *wcs, size_t wlen, const char *mbs, size_t mlen)


构造及析构函数文档

firtex::utility::CMisc::CMisc void   ) 
 

firtex::utility::CMisc::~CMisc void   ) 
 


成员函数文档

size_t firtex::utility::CMisc::_mbstowcs wchar_t *  wcs,
size_t  wlen,
const char *  mbs,
size_t  mlen
[static]
 

将多字节字符串转换成宽字节字符串

size_t firtex::utility::CMisc::_wcstombs char *  mbs,
size_t  mlen,
const wchar_t *  wcs,
size_t  wlen
[static]
 

将宽字符字符串转换成多字节字符字符串

int64_t firtex::utility::CMisc::CMisc::currentTimeMillis  )  [static]
 

获取当前时间

bool firtex::utility::CMisc::dirExists const tchar *  path  )  [static]
 

判断目录是否存在

tchar* firtex::utility::CMisc::getBuffer tstring &  s,
size_t  len
[static]
 

size_t firtex::utility::CMisc::utf8towc wchar_t *  wc,
const char *  utf,
size_t  ulen
[static]
 

将UTF-8字符转换成宽字符

参数:
wc 转换结果
utf UTF-8字节
ulen UTF-8字节长度
返回:
utf的实际转换长度

size_t firtex::utility::CMisc::utf8towcs wchar_t *  wcs,
size_t  wlen,
const char *  utf,
size_t  ulen
[static]
 

将UTF-8字符转换成宽字符

参数:
pwc 转换结果
p UTF-8字符串

size_t firtex::utility::CMisc::wcstoutf8 char *  utf,
size_t  ulen,
const wchar_t *  wcs,
size_t  wlen
[static]
 

将宽字符转换成UTF-8

参数:
result 转换结果
str 宽字符

size_t firtex::utility::CMisc::wctoutf8 char *  utf,
const wchar_t  wc
[static]
 

将宽字符转换成UTF-8

参数:
outbuf 转换结果
ch 单个宽字符


该类的文档由以下文件生成:

http://www.firtex.org http://www.sourceforge.net/projects/firtex