#ifndef _PINYIN_PARSER_H_
#define _PINYIN_PARSER_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
	int shengmu_i;
	int yunmu_i;
} PinyinIndex;

/**
 * parse a single pinyin from pinyin param, store the shengmu and yunmu index
 * in PinyinIndex pi.
 */
void parse(const char* pinyin, PinyinIndex* pi);

#ifdef __cplusplus
}
#endif

#endif /* _PINYIN_PARSER_H_ */
