Files
clients/MorphereAnalyzer/iconv_utils.h
admin 2e7d343f4a MorphereAnalyzer
git-svn-id: svn://192.168.0.12/source@76 8346c931-da38-4b9b-9d4c-e48b93cbd075
2015-04-17 02:44:11 +00:00

41 lines
696 B
C++

// MeCab -- Yet Another Part-of-Speech and Morphological Analyzer
//
//
// Copyright(C) 2001-2006 Taku Kudo <taku@chasen.org>
// Copyright(C) 2004-2006 Nippon Telegraph and Telephone Corporation
#ifndef MECAB_ICONV_H
#define MECAB_ICONV_H
#if defined HAVE_ICONV
#include <iconv.h>
#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
#include "windows.h"
#endif
namespace MeCab {
class Iconv {
private:
#ifdef HAVE_ICONV
iconv_t ic_;
#else
int ic_;
#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
DWORD from_cp_;
DWORD to_cp_;
#endif
public:
explicit Iconv();
virtual ~Iconv();
bool open(const char *from, const char *to);
bool convert(std::string *);
};
}
#endif