util.h.svn-base

来自「解码器是基于短语的统计机器翻译系统的核心模块」· SVN-BASE 代码 · 共 31 行

SVN-BASE
31
字号
#ifndef IRSTLM_UTIL_H#define IRSTLM_UTIL_H#include <string>#include <fstream>#include "gzfilebuf.h"std::string gettempfolder();void createtempfile(std::ofstream  &fileStream, std::string &filePath, std::ios_base::openmode flags);void removefile(const std::string &filePath);class inputfilestream : public std::istream{protected:	std::streambuf *m_streambuf;  bool _good;public:        inputfilestream(const std::string &filePath);	~inputfilestream();  bool good(){return _good;}	void close();};void *MMap(int	fd, int	access, off_t	offset, size_t	len, off_t	*gap);int Munmap(void	*p,size_t	len,int	sync);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?