mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
38 lines
837 B
C++
38 lines
837 B
C++
/************************************
|
|
* file enc : utf8
|
|
* author : wuyanyi09@gmail.com
|
|
************************************/
|
|
|
|
#ifndef CPPCOMMON_ENCODING_H
|
|
#define CPPCOMMON_ENCODING_H
|
|
|
|
#include "str_functs.h"
|
|
#include "vec_functs.h"
|
|
|
|
namespace CPPCOMMON
|
|
{
|
|
using namespace std;
|
|
|
|
//const char* const UTF8ENC = "utf-8";
|
|
//const char* const GBKENC = "gbk";
|
|
|
|
//class UnicodeEncoding
|
|
//{
|
|
// private:
|
|
// string _encoding;
|
|
// vector<string> _encVec;
|
|
// public:
|
|
// UnicodeEncoding(const string& enc);
|
|
// ~UnicodeEncoding();
|
|
// public:
|
|
// bool setEncoding(const string& enc);
|
|
// string encode(const Unicode& unicode);
|
|
// string encode(UnicodeConstIterator begin, UnicodeConstIterator end);
|
|
// bool decode(const string& str, Unicode& unicode);
|
|
// public:
|
|
// size_t getWordLength(const string& str);
|
|
//};
|
|
}
|
|
|
|
#endif
|