Newer
Older
#ifndef _PARSE_PINYIN_H_
#define _PARSE_PINYIN_H_
#include <glib.h>
#include "zero-pinyin-service.h"
#ifdef __cplusplus
#include <vector>
/**
* parse preedit_str to groups of pinyin.
* caller should free each Pinyin and the vector after use.
*/
std::vector<Pinyin*>* parse_pinyin_cpp (const char* preedit_str, const guint max_pinyin=15);
extern "C"
{
#endif
/**
* parse preedit_str to groups of pinyin.
* caller should free each Pinyin and the GList after use.
*/
GList* parse_pinyin (const char* preedit_str, const guint max_pinyin);
#ifdef __cplusplus
}
#endif
#endif /* _PARSE_PINYIN_H_ */